Class AttributeExpression
java.lang.Object
org.codehaus.groovy.ast.ASTNode
org.codehaus.groovy.ast.AnnotatedNode
org.codehaus.groovy.ast.expr.Expression
org.codehaus.groovy.ast.expr.PropertyExpression
org.codehaus.groovy.ast.expr.AttributeExpression
Represents an attribute access (accessing the field of a class) such as the expression "foo.@bar".
- Version:
- $Revision$
- Author:
- James Strachan
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeExpression(Expression objectExpression, Expression property) AttributeExpression(Expression objectExpression, Expression property, boolean safe) -
Method Summary
Modifier and TypeMethodDescriptiontransformExpression(ExpressionTransformer transformer) Return a copy of the expression calling the transformer on any nested expressionsvoidvisit(GroovyCodeVisitor visitor) Methods inherited from class PropertyExpression
getObjectExpression, getProperty, getPropertyAsString, getText, isDynamic, isImplicitThis, isSafe, isSpreadSafe, isStatic, setImplicitThis, setObjectExpression, setSpreadSafe, setStatic, toStringMethods inherited from class Expression
getType, setType, transformExpressions, transformExpressionsMethods inherited from class AnnotatedNode
addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic
-
Constructor Details
-
AttributeExpression
-
AttributeExpression
-
-
Method Details
-
visit
- Overrides:
visitin classPropertyExpression
-
transformExpression
Description copied from class:ExpressionReturn a copy of the expression calling the transformer on any nested expressions- Overrides:
transformExpressionin classPropertyExpression- Parameters:
transformer-
-