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:
- a name,
- a class
- and a constraint
-
clone()
- Returns a copy of the metavariable.
-
getConstraint()
- Returns the constraint associated with the metvariable or null
if no constraint is present.
-
getMetaClass()
- Gives the class of the metavariable.
-
name()
- Returns the name of the metavariable.
-
setConstraint(Constraint)
- Sets the constraint of the metavariable.
-
setMetaClass(int)
- Sets the Class of the metavariable.
-
toString()
- Converts the value to a String.
-
verify(int)
- Checks if the class is compatible with the atomic value.
-
verify(String)
- Checks if the class is compatible with the atomic value.
-
verify(Tree)
- Checks if the constraint is verified on the tree.
setMetaClass
public abstract void setMetaClass(int cl)
- Sets the Class of the metavariable.
- Parameters:
- cl - The class of the metavariable.
- See Also:
- MetavariableClass
getMetaClass
public abstract int getMetaClass()
- Gives the class of the metavariable.
- Returns:
- The class of the metavariable.
- See Also:
- MetavariableClass
clone
public abstract Object clone()
- Returns a copy of the metavariable.
- Overrides:
- clone in class Object
name
public abstract String name()
- Returns the name of the metavariable.
setConstraint
public abstract void setConstraint(Constraint constraint)
- Sets the constraint of the metavariable.
- Parameters:
- constraint - The constraint.
getConstraint
public abstract Constraint getConstraint()
- Returns the constraint associated with the metvariable or null
if no constraint is present.
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.
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.
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.
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