public class PropertyExpression extends Expression
Constructor and Description |
---|
PropertyExpression(Expression objectExpression,
Expression property) |
PropertyExpression(Expression objectExpression,
Expression property,
boolean safe) |
PropertyExpression(Expression objectExpression,
String property) |
Modifier and Type | Method and Description |
---|---|
Expression |
getObjectExpression() |
Expression |
getProperty() |
String |
getPropertyAsString() |
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) |
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, 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 String getPropertyAsString()
public boolean isSafe()
public boolean isSpreadSafe()
public void setSpreadSafe(boolean value)
public void setStatic(boolean aStatic)
public boolean isImplicitThis()
public void setImplicitThis(boolean it)