public final class MapLiteral extends java.lang.Object implements ExpressionNode
Constructor and Description |
---|
MapLiteral(java.util.Map<java.lang.String,ExpressionNode> map)
Creates a map representation.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> visitor)
Accept a visitor to process this node.
|
boolean |
containsKey(java.lang.String name)
Checks if the map contains the property identified by the passed property name.
|
java.util.Map<java.lang.String,ExpressionNode> |
getMap()
Returns an unmodifiable view of the backing map.
|
ExpressionNode |
getValue(java.lang.String key)
Returns an
ExpressionNode from the backing map. |
java.lang.String |
toString() |
public MapLiteral(java.util.Map<java.lang.String,ExpressionNode> map)
map
- the backing ExpressionNode
mappublic java.util.Map<java.lang.String,ExpressionNode> getMap()
public ExpressionNode getValue(java.lang.String key)
ExpressionNode
from the backing map.key
- the key under which the node is storednull
otherwisepublic boolean containsKey(java.lang.String name)
name
- the property nametrue
if the map contains the property, false
otherwisepublic <T> T accept(NodeVisitor<T> visitor)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorpublic java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"