All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface aioli.vtp.MatchResults

public interface MatchResults
An interface for pattern matching results.


Method Index

 o add(IPath)
Sets the value of a new extract postion.
 o add(Metavariable, int)
Sets the value of the metavariable.
 o add(Metavariable, String)
Sets the value of the metavariable.
 o add(Metavariable, Tree)
Sets the value of the metavariable.
 o clone()
Returns an Iterator on the results.
 o elements()
returns an Enumration of the elements.
 o get(int)
Returns the move to reach the extractNumberth extract position.
 o get(String)
Returns the tree value that the metavariable meta has matched.
 o getRootPatt()
 o getRootTree()
 o getValue(String)
Returns the value that the metavariable meta has matched.
 o isPresent(String)
Returns true if meta is already in the results, false otherwise.
 o remove(Metavariable)
Removes the metavariable of the results.
 o set(int, IPath)
Sets the value of a preexistent extract position.
 o setRootPatt(Tree)
 o setRootTree(Tree)

Methods

 o clone
 public abstract Object clone()
Returns an Iterator on the results.

Overrides:
clone in class Object
 o isPresent
 public abstract boolean isPresent(String meta)
Returns true if meta is already in the results, false otherwise.

 o elements
 public abstract Enumeration elements()
returns an Enumration of the elements.

 o get
 public abstract Tree get(String meta)
Returns the tree value that the metavariable meta has matched.

Parameters:
meta - The name of the metavariable.
Returns:
A tree or null.
 o getValue
 public abstract Object getValue(String meta)
Returns the value that the metavariable meta has matched.

Parameters:
meta - The name of the metavariable.
Returns:
An object or null.
 o get
 public abstract IPath get(int extractNumber)
Returns the move to reach the extractNumberth extract position.

Parameters:
extractNumber - The number of the extract pattern (they are numbered in a preorder traversal).
Returns:
A move or null, if this extract position doesn't exist.
 o add
 public abstract Tree add(Metavariable meta,
                          Tree tree)
Sets the value of the metavariable. Adds the metavariable if it is not present.

Parameters:
meta - The metavariable.
tree - The tree value.
Returns:
tree or null if the metavariable can't take that value.
 o add
 public abstract boolean add(Metavariable meta,
                             int i)
Sets the value of the metavariable. Adds the metavariable if it is not present. Checks if the value is compatible with the old value when present.

Parameters:
meta - The metavariable.
i - The integer value.
Returns:
true or false if the metavariable can't take that value.
 o add
 public abstract String add(Metavariable meta,
                            String str)
Sets the value of the metavariable. Adds the metavariable if it is not present. Checks if the value is compatible with the old value when present.

Parameters:
meta - The metavariable.
str - The String value.
Returns:
Str or null if the metavariable can't take that value.
 o remove
 public abstract Metavariable remove(Metavariable meta)
Removes the metavariable of the results.

Returns:
The old value or null if the metavariable is not present.
 o add
 public abstract int add(IPath move)
Sets the value of a new extract postion.

Parameters:
move - The move to the extract position.
Returns:
the number of the extract positon.
 o set
 public abstract int set(int n,
                         IPath move)
Sets the value of a preexistent extract position.

Parameters:
move - The move to the extract position.
Returns:
the number of the extract positon.
 o setRootTree
 public abstract void setRootTree(Tree tree)
 o getRootTree
 public abstract Tree getRootTree()
 o setRootPatt
 public abstract void setRootPatt(Tree tree)
 o getRootPatt
 public abstract Tree getRootPatt()

All Packages  Class Hierarchy  This Package  Previous  Next  Index