All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface aioli.vtp.Metavariable

public interface Metavariable
extends Serializable
Defines the notion of metavariable used in pattern expressions.
It's composed of:


Method Index

 o clone()
Returns a copy of the metavariable.
 o getConstraint()
Returns the constraint associated with the metvariable or null if no constraint is present.
 o getMetaClass()
Gives the class of the metavariable.
 o name()
Returns the name of the metavariable.
 o setConstraint(Constraint)
Sets the constraint of the metavariable.
 o setMetaClass(int)
Sets the Class of the metavariable.
 o toString()
Converts the value to a String.
 o verify(int)
Checks if the class is compatible with the atomic value.
 o verify(String)
Checks if the class is compatible with the atomic value.
 o verify(Tree)
Checks if the constraint is verified on the tree.

Methods

 o setMetaClass
 public abstract void setMetaClass(int cl)
Sets the Class of the metavariable.

Parameters:
cl - The class of the metavariable.
See Also:
MetavariableClass
 o getMetaClass
 public abstract int getMetaClass()
Gives the class of the metavariable.

Returns:
The class of the metavariable.
See Also:
MetavariableClass
 o clone
 public abstract Object clone()
Returns a copy of the metavariable.

Overrides:
clone in class Object
 o name
 public abstract String name()
Returns the name of the metavariable.

 o setConstraint
 public abstract void setConstraint(Constraint constraint)
Sets the constraint of the metavariable.

Parameters:
constraint - The constraint.
 o getConstraint
 public abstract Constraint getConstraint()
Returns the constraint associated with the metvariable or null if no constraint is present.

 o verify
 public abstract boolean verify(Tree tree)
Checks if the constraint is verified on the tree.

Parameters:
tree - The tree we want to check the constraint on.
Returns:
true if the constraint is verified, false otherwise.
 o verify
 public abstract boolean verify(String atr)
Checks if the class is compatible with the atomic value.

Parameters:
str - The String we want to check the constraint on.
Returns:
true if the class is verified, false otherwise.
 o verify
 public abstract boolean verify(int i)
Checks if the class is compatible with the atomic value.

Parameters:
i - The integer we want to check the constraint on.
Returns:
true if the class is verified, false otherwise.
 o toString
 public abstract String toString()
Converts the value to a String.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index