W3cubDocs

/Groovy 3.0

[Java] Class AttributeExpression

  • org.codehaus.groovy.ast.expr.AttributeExpression
public class AttributeExpression
extends PropertyExpression

Represents an attribute access (accessing the field of a class) such as the expression "foo.@bar".

Constructor Detail

public AttributeExpression(Expression objectExpression, Expression property)

public AttributeExpression(Expression objectExpression, Expression property, boolean safe)

Method Detail

@Override public String getText()

@Override public Expression transformExpression(ExpressionTransformer transformer)

@Override public void visit(GroovyCodeVisitor visitor)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/ast/expr/AttributeExpression.html