- All Superinterfaces:
SimpleTyped,Typed
- All Known Subinterfaces:
Assignable,Const,FieldVar,InstanceFieldVar,LocalVar,ParamVar,StaticFieldVar,This,Var
An expression.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Assignableelem(int index) Returns an assignable for an element of this array.Returns an assignable for an element of this array.default AssignableReturns an assignable for an element of this array.Returns an assignable for a field of this object.field(FieldDesc desc, GenericType genericType) Returns an assignable for a field of this object.default InstanceFieldVarfield(ClassDesc owner, String name, GenericType type) Returns an assignable for a field of this object.default InstanceFieldVarReturns an assignable for a field of this object.Returns the generic expression type (notnull).booleanReturnstrueif this value has a generic type, orfalseif it does not have one.length()Returns the length of this array.static StaticFieldVarstaticField(FieldDesc desc) Returns an assignable for a static field.static StaticFieldVarstaticField(FieldDesc desc, GenericType genericType) Returns an assignable for a static field.type()Returns the expression type (notnull).Methods inherited from interface io.quarkus.gizmo2.SimpleTyped
isPrimitive, isVoid, slotSize, typeKind
-
Method Details
-
type
ClassDesc type()Returns the expression type (notnull).- Specified by:
typein interfaceSimpleTyped- Specified by:
typein interfaceTyped- Returns:
- the expression type (not
null)
-
genericType
GenericType genericType()Returns the generic expression type (notnull). IfhasGenericType()returnsfalse, the returned type will be a wrapper aroundtype().- Returns:
- the generic expression type (not
null)
-
hasGenericType
boolean hasGenericType()Returnstrueif this value has a generic type, orfalseif it does not have one.- Returns:
trueif this value has a generic type, orfalseif it does not have one
-
elem
Returns an assignable for an element of this array.- Parameters:
index- the array index (must not benull)- Returns:
- an assignable for an element of this array
-
elem
Returns an assignable for an element of this array.- Parameters:
index- the array index (must not benull)- Returns:
- an assignable for an element of this array
-
elem
Returns an assignable for an element of this array.- Parameters:
index- the array index- Returns:
- an assignable for an element of this array
-
length
Expr length()Returns the length of this array.- Returns:
- the length of this array
-
field
Returns an assignable for a field of this object.- Parameters:
desc- the field descriptor (must not benull)- Returns:
- an assignable for a field of this object
-
field
Returns an assignable for a field of this object.- Parameters:
desc- the field descriptor (must not benull)genericType- the field's expected generic type (must not benull)- Returns:
- an assignable for a field of this object
-
field
Returns an assignable for a field of this object.- Parameters:
owner- the descriptor of the owner of this field (must not benull)name- the name of the field (must not benull)type- the descriptor for the type of the field (must not benull)- Returns:
- an assignable for a field of this object
-
field
Returns an assignable for a field of this object.- Parameters:
owner- the descriptor of the owner of this field (must not benull)name- the name of the field (must not benull)type- the generic type of the field (must not benull)- Returns:
- an assignable for a field of this object
-
staticField
Returns an assignable for a static field.- Parameters:
desc- the field descriptor (must not benull)- Returns:
- an assignable for a static field
-
staticField
Returns an assignable for a static field.- Parameters:
desc- the field descriptor (must not benull)genericType- the field's expected generic type (must not benull)- Returns:
- an assignable for a static field
-