public class FieldExpression extends Expression
Constructor and Description |
---|
FieldExpression(FieldNode field) |
Modifier and Type | Method and Description |
---|---|
FieldNode |
getField() |
java.lang.String |
getFieldName() |
java.lang.String |
getText() |
ClassNode |
getType() |
boolean |
isDynamicTyped() |
boolean |
isUseReferenceDirectly() |
void |
setType(ClassNode type) |
void |
setUseReferenceDirectly(boolean useRef) |
java.lang.String |
toString() |
Expression |
transformExpression(ExpressionTransformer transformer)
Return a copy of the expression calling the transformer on any nested expressions
|
void |
visit(GroovyCodeVisitor visitor) |
transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public FieldExpression(FieldNode field)
public void visit(GroovyCodeVisitor visitor)
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public java.lang.String getFieldName()
public FieldNode getField()
public boolean isDynamicTyped()
public void setType(ClassNode type)
setType
in class Expression
public ClassNode getType()
getType
in class Expression
public void setUseReferenceDirectly(boolean useRef)
public boolean isUseReferenceDirectly()
public java.lang.String toString()
toString
in class java.lang.Object