ajax.expression
Class Constant
java.lang.Object
|
+--ajax.expression.Constant
- public class Constant
- extends java.lang.Object
Field Summary |
protected Type |
type
The Constant type |
protected java.lang.Object |
value
The constant value |
Method Summary |
Type |
getType()
Returns the Constant type |
java.lang.Object |
getValue()
Returns the value of this Constant. |
boolean |
isConstant()
Constants are indeed constants. |
java.lang.String |
toString()
Convert constant to human readable string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
protected Type type
- The Constant type
value
protected java.lang.Object value
- The constant value
Constant
public Constant()
- Empty Constructor
Constant
public Constant(java.lang.Object _value)
Constant
public Constant(float f)
Constant
public Constant(java.lang.Float f)
Constant
public Constant(int i)
Constant
public Constant(java.lang.Integer i)
Constant
public Constant(char c)
Constant
public Constant(java.lang.Character c)
Constant
public Constant(java.lang.String s)
Constant
public Constant(boolean b)
Constant
public Constant(java.lang.Boolean b)
getType
public Type getType()
- Returns the Constant type
toString
public java.lang.String toString()
- Convert constant to human readable string.
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representing the constant
getValue
public java.lang.Object getValue()
- Returns the value of this Constant.
- Returns:
- the value of this Constant.
isConstant
public boolean isConstant()
- Constants are indeed constants. This method
redefines the method isConstant from the superclass Term.
- Returns:
- true