public final class Occurrence extends Object
| Modifier and Type | Method and Description |
|---|---|
Map<String,Collection<? extends TreePath>> |
getMultiVariables()
For patterns with free variables, contains mapping of multi-variable
names to the tree nodes that were bound to the variable.
|
TreePath |
getOccurrenceRoot()
The tree node that represents the occurrence.
|
Map<String,TreePath> |
getVariables()
For patterns with free variables, contains mapping of single-variable
names to the tree node that was bound to the variable.
|
Map<String,String> |
getVariables2Names()
For patterns with free variables, contains mapping of variable
names to a name that was bound to the variable.
|
Map<Element,Element> |
getVariablesRemapToElement()
For patterns which allow variable remap, contains mapping of the element
in the pattern to the corresponding element in this occurrence.
|
Map<Element,TreePath> |
getVariablesRemapToTrees()
For patterns which allow variable remap to trees, contains mapping of the element
in the pattern to the corresponding tree node in this occurrence.
|
public TreePath getOccurrenceRoot()
Pattern.createSimplePattern(java.lang.Iterable),
returns the TreePath corresponding to the first part (TODO: verify!).public Map<String,TreePath> getVariables()
public Map<String,Collection<? extends TreePath>> getMultiVariables()
public Map<String,String> getVariables2Names()
public Map<Element,Element> getVariablesRemapToElement()
public Map<Element,TreePath> getVariablesRemapToTrees()
Built on May 24 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.