All Packages Class Hierarchy This Package Previous Next Index
Class aioli.vtp.IAtomValue
java.lang.Object
|
+----aioli.vtp.IAtomValue
- public class IAtomValue
- extends Object
- implements AtomValue. , Cloneable
A class that implements an integer atom value.
- See Also:
- AtomValue
-
IAtomValue(int)
- Constructor for an integer atom value.
-
clone()
-
-
metavariable()
- Gives the value if it's a Metavariable.
-
metavariablep()
- Returns true if the value is a metavariable, false otherwise.
-
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.
IAtomValue
public IAtomValue(int i)
- Constructor for an integer atom value.
- Parameters:
- i - n int value.
clone
public Object clone()
- Overrides:
- clone in class Object
num
public int num()
- Gives the value if it's an int.
- Returns:
- The value.
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 true.
stringp
public boolean stringp()
- Returns true if the value is of the TYPE String, false otherwise.
- Returns:
- Always false.
metavariablep
public boolean metavariablep()
- Returns true if the value is a metavariable, false otherwise.
- Returns:
- Always false.
metavariable
public Metavariable metavariable()
- Gives the value if it's a Metavariable.
- Returns:
- Always null.
type
public int type()
- Return the type of the atomvalue.
- Returns:
- Always AtomValue.INT.
toString
public String toString()
- Converts the value to a String.
- Returns:
- A String.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index