public final class PropertyAccess extends Object implements ExpressionNode
obj.prop).| Constructor and Description |
|---|
PropertyAccess(ExpressionNode target,
ExpressionNode property)
Creates a property access node.
|
PropertyAccess(ExpressionNode target,
Iterable<String> properties)
Builds a chained property access node with the given target and the specified properties.
|
PropertyAccess(ExpressionNode target,
String property)
Creates a property access node.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> visitor)
Accept a visitor to process this node.
|
ExpressionNode |
getProperty()
Returns the expression node identifying the accessed property.
|
ExpressionNode |
getTarget()
The object being accessed.
|
String |
toString() |
public PropertyAccess(ExpressionNode target, ExpressionNode property)
target - the expression for the object being accessedproperty - the expression identifying the object's accessed propertypublic PropertyAccess(ExpressionNode target, String property)
target - the expression for the object being accessedproperty - the name of the accessed propertypublic PropertyAccess(ExpressionNode target, Iterable<String> properties)
target - the target nodeproperties - a non-empty list of property namesIllegalArgumentException - if the list of properties is emptypublic <T> T accept(NodeVisitor<T> visitor)
ExpressionNodeaccept in interface ExpressionNodeT - the type of the visitorvisitor - The visitorpublic ExpressionNode getTarget()
public ExpressionNode getProperty()
Copyright © 2017 The Apache Software Foundation. All rights reserved.