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

Constructor Index

 o IAtomValue(int)
Constructor for an integer atom value.

Method Index

 o clone()
 o metavariable()
Gives the value if it's a Metavariable.
 o metavariablep()
Returns true if the value is a metavariable, false otherwise.
 o num()
Gives the value if it's an int.
 o nump()
Returns true if the value is of the TYPE int, false otherwise.
 o string()
Gives the value if it's a String.
 o stringp()
Returns true if the value is of the TYPE String, false otherwise.
 o toString()
Converts the value to a String.
 o type()
Return the type of the atomvalue.

Constructors

 o IAtomValue
 public IAtomValue(int i)
Constructor for an integer atom value.

Parameters:
i - n int value.

Methods

 o clone
 public Object clone()
Overrides:
clone in class Object
 o num
 public int num()
Gives the value if it's an int.

Returns:
The value.
 o string
 public String string()
Gives the value if it's a String.

Returns:
An empty String "".
 o nump
 public boolean nump()
Returns true if the value is of the TYPE int, false otherwise.

Returns:
Always true.
 o stringp
 public boolean stringp()
Returns true if the value is of the TYPE String, false otherwise.

Returns:
Always false.
 o metavariablep
 public boolean metavariablep()
Returns true if the value is a metavariable, false otherwise.

Returns:
Always false.
 o metavariable
 public Metavariable metavariable()
Gives the value if it's a Metavariable.

Returns:
Always null.
 o type
 public int type()
Return the type of the atomvalue.

Returns:
Always AtomValue.INT.
 o 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