All Packages Class Hierarchy This Package Previous Next Index
Class aioli.vtp.TreeMatchStruct
java.lang.Object
|
+----aioli.vtp.TreeMatchStruct
- public class TreeMatchStruct
- extends Object
-
add(String, int)
- Adds a new metavariable.
-
add(String, int, Tree)
- Adds a new metavariable.
-
add(String, String)
- Adds a new metavariable.
-
add(String, Tree)
- Adds a new metavariable.
-
get(String)
- Returns the tree value associated with the metavariable name.
-
getBackTrackStack()
- Returns the backtrack stack.
-
getResults()
- Returns the results of the match
-
setBackTrackStack(BackTrackStack)
- Sets the backtrack stack with a new value.
-
setResults(MatchResults)
- Sets the results with a new value.
-
toString()
- Return a String that represents the structure.
getResults
public MatchResults getResults()
- Returns the results of the match
get
public Tree get(String name)
- Returns the tree value associated with the metavariable name.
- Parameters:
- name - The name of the metavariable.
- Returns:
- a tree or null when the metavariable is not present, or when
the value is not a Tree.
add
public void add(String name,
int _class,
Tree tree)
- Adds a new metavariable.
- Parameters:
- name - The name of the metavariable.
- _class - The tree class of the metavariable.
- tree - The value of the metavariable.
add
public void add(String name,
String st)
- Adds a new metavariable.
- Parameters:
- name - The name of the metavariable.
- st - The value of the metavariable.
add
public void add(String name,
int i)
- Adds a new metavariable.
- Parameters:
- name - The name of the metavariable.
- i - The value of the metavariable.
add
public void add(String name,
Tree tree)
- Adds a new metavariable.
Default class is tree.
- Parameters:
- name - The name of the metavariable.
- tree - The value of the metavariable.
setResults
public void setResults(MatchResults res)
- Sets the results with a new value.
- Parameters:
- res - The new results.
getBackTrackStack
public BackTrackStack getBackTrackStack()
- Returns the backtrack stack.
setBackTrackStack
public void setBackTrackStack(BackTrackStack st)
- Sets the backtrack stack with a new value.
- Parameters:
- st - The new backtrack stack.
toString
public String toString()
- Return a String that represents the structure.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index