All Packages Class Hierarchy This Package Previous Next Index
Interface aioli.vtp.MatchResults
- public interface MatchResults
An interface for pattern matching results.
-
add(IPath)
- Sets the value of a new extract postion.
-
add(Metavariable, int)
- Sets the value of the metavariable.
-
add(Metavariable, String)
- Sets the value of the metavariable.
-
add(Metavariable, Tree)
- Sets the value of the metavariable.
-
clone()
- Returns an Iterator on the results.
-
elements()
- returns an Enumration of the elements.
-
get(int)
- Returns the move to reach the extractNumberth extract
position.
-
get(String)
- Returns the tree value that the metavariable meta has matched.
-
getRootPatt()
-
-
getRootTree()
-
-
getValue(String)
- Returns the value that the metavariable meta has matched.
-
isPresent(String)
- Returns true if meta is already in the results, false otherwise.
-
remove(Metavariable)
- Removes the metavariable of the results.
-
set(int, IPath)
- Sets the value of a preexistent extract position.
-
setRootPatt(Tree)
-
-
setRootTree(Tree)
-
clone
public abstract Object clone()
- Returns an Iterator on the results.
- Overrides:
- clone in class Object
isPresent
public abstract boolean isPresent(String meta)
- Returns true if meta is already in the results, false otherwise.
elements
public abstract Enumeration elements()
- returns an Enumration of the elements.
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.
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.
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.
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.
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.
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.
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.
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.
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.
setRootTree
public abstract void setRootTree(Tree tree)
getRootTree
public abstract Tree getRootTree()
setRootPatt
public abstract void setRootPatt(Tree tree)
getRootPatt
public abstract Tree getRootPatt()
All Packages Class Hierarchy This Package Previous Next Index