Top Description Fields Constructors Methods
org.codehaus.groovy.ast.expr

public Class FieldExpression

extends Expression
Class Inheritance
Imports
org.codehaus.groovy.ast.ClassNode, .FieldNode, .GroovyCodeVisitor

Represents a field access such as the expression "this.foo".

Field Summary

Modifier and TypeField and Description
private final FieldNode
private boolean
Inherited from org.codehaus.groovy.ast.expr.Expression:
EMPTY_ARRAY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public FieldNode
public String
public String
public ClassNode
public boolean
public boolean
public void
public void
setUseReferenceDirectly(final boolean useRef)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public Expression
transformExpression(final ExpressionTransformer transformer)

Implements abstract org.codehaus.groovy.ast.expr.Expression.transformExpression.

Return a copy of the expression calling the transformer on any nested expressions
public void
Inherited from org.codehaus.groovy.ast.expr.Expression:
transformExpressionstransformExpressions

Field Detail

fieldback to summary
private final FieldNode field
useRefback to summary
private boolean useRef

Constructor Detail

FieldExpressionback to summary
public FieldExpression(final FieldNode field)

Method Detail

getFieldback to summary
public FieldNode getField()
getFieldNameback to summary
public String getFieldName()
getTextback to summary
public String getText()

Overrides org.codehaus.groovy.ast.ASTNode.getText.

Annotations
@Override
getTypeback to summary
public ClassNode getType()

Overrides org.codehaus.groovy.ast.expr.Expression.getType.

Annotations
@Override
isDynamicTypedback to summary
public boolean isDynamicTyped()
isUseReferenceDirectlyback to summary
public boolean isUseReferenceDirectly()
setTypeback to summary
public void setType(final ClassNode type)

Overrides org.codehaus.groovy.ast.expr.Expression.setType.

Annotations
@Override
setUseReferenceDirectlyback to summary
public void setUseReferenceDirectly(final boolean useRef)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
transformExpressionback to summary
public Expression transformExpression(final ExpressionTransformer transformer)

Implements abstract org.codehaus.groovy.ast.expr.Expression.transformExpression.

Doc from org.codehaus.groovy.ast.expr.Expression.transformExpression.

Return a copy of the expression calling the transformer on any nested expressions

Annotations
@Override
visitback to summary
public void visit(final GroovyCodeVisitor visitor)

Overrides org.codehaus.groovy.ast.ASTNode.visit.

Annotations
@Override