Package icyllis.arc3d.compiler.tree
Class FieldAccess
java.lang.Object
icyllis.arc3d.compiler.tree.Node
icyllis.arc3d.compiler.tree.Expression
icyllis.arc3d.compiler.tree.FieldAccess
An expression which selects a field from a struct/block, as in 'foo.bar'.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.compiler.tree.Node
Node.ElementKind, Node.ExpressionKind, Node.StatementKind, Node.SymbolKind
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(TreeVisitor visitor) Visit this AST with a given visitor.clone
(int position) static Expression
convert
(Context context, int position, Expression base, int namePosition, String name) Returns a field-access expression.getBase()
int
getKind()
boolean
static Expression
make
(int position, Expression base, int fieldIndex, boolean anonymousBlock) Returns a field-access expression.toString
(int parentPrecedence) Methods inherited from class icyllis.arc3d.compiler.tree.Expression
clone, getCoercionCost, getConstantValue, getType, isBooleanLiteral, isConstructorCall, isFloatLiteral, isIncomplete, isIntLiteral, isLiteral, toString
Methods inherited from class icyllis.arc3d.compiler.tree.Node
getEndOffset, getStartOffset
-
Method Details
-
convert
@Nullable public static Expression convert(@Nonnull Context context, int position, @Nonnull Expression base, int namePosition, @Nonnull String name) Returns a field-access expression. -
make
@Nonnull public static Expression make(int position, Expression base, int fieldIndex, boolean anonymousBlock) Returns a field-access expression. -
getKind
- Specified by:
getKind
in classExpression
- See Also:
-
accept
Description copied from class:Node
Visit this AST with a given visitor. -
getBase
-
getFieldIndex
public int getFieldIndex() -
isAnonymousBlock
public boolean isAnonymousBlock() -
clone
- Specified by:
clone
in classExpression
-
toString
- Specified by:
toString
in classExpression
-