public final class PropertyAccess extends java.lang.Object implements ExpressionNode
obj.prop
).Constructor and Description |
---|
PropertyAccess(ExpressionNode target,
ExpressionNode property)
Creates a property access node.
|
PropertyAccess(ExpressionNode target,
java.lang.Iterable<java.lang.String> properties)
Builds a chained property access node with the given target and the specified properties.
|
PropertyAccess(ExpressionNode target,
java.lang.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.
|
java.lang.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, java.lang.String property)
target
- the expression for the object being accessedproperty
- the name of the accessed propertypublic PropertyAccess(ExpressionNode target, java.lang.Iterable<java.lang.String> properties)
target
- the target nodeproperties
- a non-empty list of property namesjava.lang.IllegalArgumentException
- if the list of properties is emptypublic <T> T accept(NodeVisitor<T> visitor)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorpublic ExpressionNode getTarget()
public ExpressionNode getProperty()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved