|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.expr.NumberConstant
public abstract class NumberConstant
Base class for all numeric constant expressions.
| Field Summary | |
|---|---|
protected Number |
value
Numeric value. |
| Constructor Summary | |
|---|---|
protected |
NumberConstant()
Default constructor |
protected |
NumberConstant(Number value)
Constructor using value |
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
Compares this object against the specified object. |
|
|
greet(ExpressionWalker<E,F> visitor,
F arg)
Handle visit of ExpressionWalker. |
|
int |
hashCode()
|
|
void |
setValue(Number value)
Set constant value. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Number value
| Constructor Detail |
|---|
protected NumberConstant()
protected NumberConstant(Number value)
value - constant value| Method Detail |
|---|
public void setValue(Number value)
value - constant value.
public <E,F> E greet(ExpressionWalker<E,F> visitor,
F arg)
throws ExpressionException
Expression
greet in interface Expressionvisitor - the ExpressionWalker visiting this objectarg - implementation dependent argument
ExpressionExceptionpublic String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||