All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class aioli.vtp.TreeMatchStruct

java.lang.Object
   |
   +----aioli.vtp.TreeMatchStruct

public class TreeMatchStruct
extends Object

Method Index

 o add(String, int)
Adds a new metavariable.
 o add(String, int, Tree)
Adds a new metavariable.
 o add(String, String)
Adds a new metavariable.
 o add(String, Tree)
Adds a new metavariable.
 o get(String)
Returns the tree value associated with the metavariable name.
 o getBackTrackStack()
Returns the backtrack stack.
 o getResults()
Returns the results of the match
 o setBackTrackStack(BackTrackStack)
Sets the backtrack stack with a new value.
 o setResults(MatchResults)
Sets the results with a new value.
 o toString()
Return a String that represents the structure.

Methods

 o getResults
 public MatchResults getResults()
Returns the results of the match

 o 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.
 o 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.
 o 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.
 o 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.
 o 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.
 o setResults
 public void setResults(MatchResults res)
Sets the results with a new value.

Parameters:
res - The new results.
 o getBackTrackStack
 public BackTrackStack getBackTrackStack()
Returns the backtrack stack.

 o setBackTrackStack
 public void setBackTrackStack(BackTrackStack st)
Sets the backtrack stack with a new value.

Parameters:
st - The new backtrack stack.
 o 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