Class GetFieldExpression
java.lang.Object
org.openzen.zenscript.codemodel.expression.Expression
org.openzen.zenscript.codemodel.expression.GetFieldExpression
- All Implemented Interfaces:
IPartialExpression
-
Field Summary
FieldsFields inherited from class org.openzen.zenscript.codemodel.expression.Expression
NONE, position, thrownType, type -
Constructor Summary
ConstructorsConstructorDescriptionGetFieldExpression(CodePosition position, Expression target, FieldMemberRef field) -
Method Summary
Modifier and TypeMethodDescription<C,R> R accept(C context, ExpressionVisitorWithContext<C, R> visitor) <T> Taccept(ExpressionVisitor<T> visitor) assign(CodePosition position, TypeScope scope, Expression value) capture(CodePosition position, LambdaClosure closure) Retrieves the (primary) member this expression refers to, or null if there is no primary target.transform(ExpressionTransformer transformer) Methods inherited from class org.openzen.zenscript.codemodel.expression.Expression
aborts, binaryThrow, call, castExplicit, castImplicit, eval, evaluateEnumConstant, evaluateStringConstant, forEachStatement, getMember, getPossibleFunctionHeaders, getTypeArguments, multiThrow, predictCallTypes, transform, transform
-
Field Details
-
target
-
field
-
-
Constructor Details
-
Method Details
-
getAssignHints
- Specified by:
getAssignHintsin interfaceIPartialExpression- Overrides:
getAssignHintsin classExpression
-
accept
- Specified by:
acceptin classExpression
-
accept
- Specified by:
acceptin classExpression
-
transform
- Specified by:
transformin classExpression
-
getMember
Description copied from interface:IPartialExpressionRetrieves the (primary) member this expression refers to, or null if there is no primary target.- Returns:
-
normalize
- Specified by:
normalizein classExpression
-