public final class SOMParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SOMParser.SomResultInfo
Describes one returned value from the SOM parser.
|
| Constructor and Description |
|---|
SOMParser()
Constructs a new SOMParser.
|
SOMParser(DependencyTracker dependencyTracker) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
resolve(Node startNode,
String somExpression,
List<SOMParser.SomResultInfo> result)
Resolves a SOM expression to the list of Obj that the SOM expression represents.
|
boolean |
resolve(Node startNode,
String somExpression,
List<SOMParser.SomResultInfo> result,
BooleanHolder isAssociation)
Resolves a SOM expression to the list of Obj that the SOM expression represents.
|
boolean |
resolve(Node startNode,
String somExpression,
Object[] objectParameters,
List<SOMParser.SomResultInfo> result,
BooleanHolder isAssociation) |
void |
setDependencyTracker(DependencyTracker dependencyTracker)
Sets the DependencyTracker for the parser
|
void |
setOptions(boolean bPeek,
boolean bLastInstance,
boolean bNoProperties)
Set the options for the parser
|
public SOMParser(DependencyTracker dependencyTracker)
public SOMParser()
public boolean resolve(Node startNode, String somExpression, List<SOMParser.SomResultInfo> result)
startNode - the Node to start at (the current node)somExpression - the SOM expression to be resolved.result - a List of SomResultInfo that will be populated with the result
of evaluating the SOM expression.true if any nodes were added to the result.public boolean resolve(Node startNode, String somExpression, List<SOMParser.SomResultInfo> result, BooleanHolder isAssociation)
startNode - the Node to start at (the current node)somExpression - the SOM expression to be resolved.result - a List of SomResultInfo that will be populated with the result
of evaluating the SOM expression.isAssociation - (out) will be set to true if the nodes returned include an associationtrue if any nodes were added to the result.public boolean resolve(Node startNode, String somExpression, Object[] objectParameters, List<SOMParser.SomResultInfo> result, BooleanHolder isAssociation)
public void setOptions(boolean bPeek,
boolean bLastInstance,
boolean bNoProperties)
bPeek - -
if true do not create any default children. Defaults to falsebLastInstance - -
if true "*" is used return only the last instance. Defaults to
falsebNoProperties - -
if true no properties (such as x.name) are returned. Note that
if name were a child node, it would be returned. Defaults to
falsepublic void setDependencyTracker(DependencyTracker dependencyTracker)
dependencyTracker - the dependency tracker for the next call to resolveCopyright © 2010 - 2020 Adobe. All Rights Reserved