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.


Constructor Index

 o MetaAtomValue(Metavariable)
Builds a new MetaAtomValue.

Method Index

 o clone()
 o metavariable()
Gives the value if it's a Metavariable.
 o metavariablep()
Returns true if the value is a Metavariable.
 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 MetaAtomValue
 public MetaAtomValue(Metavariable metavar)
Builds a new MetaAtomValue.

Parameters:
metavar - The metavariable.

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:
Always 0 (it's not an int).
 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 false.
 o stringp
 public boolean stringp()
Returns true if the value is of the TYPE String, false otherwise.

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

Returns:
Always AtomValue.METAVAR.
 o toString
 public String toString()
Converts the value to a String.

Returns:
A String.
Overrides:
toString in class Object
 o metavariablep
 public boolean metavariablep()
Returns true if the value is a Metavariable.

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


All Packages  Class Hierarchy  This Package  Previous  Next  Index