public class PropertyExpression extends Expression
Constructor and Description |
---|
PropertyExpression(Expression objectExpression,
Expression property) |
PropertyExpression(Expression objectExpression,
Expression property,
boolean safe) |
PropertyExpression(Expression objectExpression,
java.lang.String property) |
Modifier and Type | Method and Description |
---|---|
Expression |
getObjectExpression() |
Expression |
getProperty() |
java.lang.String |
getPropertyAsString() |
java.lang.String |
getText() |
boolean |
isDynamic() |
boolean |
isImplicitThis() |
boolean |
isSafe() |
boolean |
isSpreadSafe() |
boolean |
isStatic() |
void |
setImplicitThis(boolean it) |
void |
setObjectExpression(Expression exp) |
void |
setSpreadSafe(boolean value) |
void |
setStatic(boolean aStatic) |
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) |
getType, setType, transformExpressions, transformExpressions
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getNodeMetaData, getNodeMetaData, putNodeMetaData, removeNodeMetaData, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setNodeMetaData, setSourcePosition
public PropertyExpression(Expression objectExpression, java.lang.String property)
public PropertyExpression(Expression objectExpression, Expression property)
public PropertyExpression(Expression objectExpression, Expression property, boolean safe)
public boolean isStatic()
public void visit(GroovyCodeVisitor visitor)
public boolean isDynamic()
public Expression transformExpression(ExpressionTransformer transformer)
Expression
transformExpression
in class Expression
public Expression getObjectExpression()
public void setObjectExpression(Expression exp)
public Expression getProperty()
public java.lang.String getPropertyAsString()
public boolean isSafe()
public boolean isSpreadSafe()
public void setSpreadSafe(boolean value)
public java.lang.String toString()
toString
in class java.lang.Object
public void setStatic(boolean aStatic)
public boolean isImplicitThis()
public void setImplicitThis(boolean it)