All Packages Class Hierarchy This Package Previous Next Index
Class aioli.vtp.MetaAtomValue
java.lang.Object
|
+----aioli.vtp.MetaAtomValue
- public class MetaAtomValue
- extends Object
- implements AtomValue. , Cloneable
Represents metavariable atomic value.
-
MetaAtomValue(Metavariable)
- Builds a new MetaAtomValue.
-
clone()
-
-
metavariable()
- Gives the value if it's a Metavariable.
-
metavariablep()
- Returns true if the value is a Metavariable.
-
num()
- Gives the value if it's an int.
-
nump()
- Returns true if the value is of the TYPE int, false otherwise.
-
string()
- Gives the value if it's a String.
-
stringp()
- Returns true if the value is of the TYPE String, false otherwise.
-
toString()
- Converts the value to a String.
-
type()
- Return the type of the atomvalue.
MetaAtomValue
public MetaAtomValue(Metavariable metavar)
- Builds a new MetaAtomValue.
- Parameters:
- metavar - The metavariable.
clone
public Object clone()
- Overrides:
- clone in class Object
num
public int num()
- Gives the value if it's an int.
- Returns:
- Always 0 (it's not an int).
string
public String string()
- Gives the value if it's a String.
- Returns:
- An empty String "".
nump
public boolean nump()
- Returns true if the value is of the TYPE int, false otherwise.
- Returns:
- Always false.
stringp
public boolean stringp()
- Returns true if the value is of the TYPE String, false otherwise.
- Returns:
- Always false.
type
public int type()
- Return the type of the atomvalue.
- Returns:
- Always AtomValue.METAVAR.
toString
public String toString()
- Converts the value to a String.
- Returns:
- A String.
- Overrides:
- toString in class Object
metavariablep
public boolean metavariablep()
- Returns true if the value is a Metavariable.
- Returns:
- Always true.
metavariable
public Metavariable metavariable()
- Gives the value if it's a Metavariable.
All Packages Class Hierarchy This Package Previous Next Index