|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ncl.cs.instantsoap.commandlineprocessor.variables.VariableOrConstant uk.ac.ncl.cs.instantsoap.commandlineprocessor.variables.Constant
public class Constant
A constant value. During a re-write, these should be replaced by their value.
The value must not be null when the constant is processed.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class uk.ac.ncl.cs.instantsoap.commandlineprocessor.variables.VariableOrConstant |
---|
VariableOrConstant.VariableOrConstantVisitor |
Constructor Summary | |
---|---|
Constant()
Create a new constant with no value. |
|
Constant(String value)
Create a new constant with the given value. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
String |
getValue()
Get the constant value. |
int |
hashCode()
|
void |
setValue(String value)
Set the constant value. |
String |
toString()
|
void |
visit(VariableOrConstant.VariableOrConstantVisitor visitor)
Visit this object, calling the handle method specific to the concrete-class. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Constant()
public Constant(String value)
value
- the constant String
value to useMethod Detail |
---|
public void visit(VariableOrConstant.VariableOrConstantVisitor visitor)
VariableOrConstant
visit
in class VariableOrConstant
visitor
- the VariableOrConstantVisitor
to processpublic String getValue()
String
public void setValue(String value)
the
- new String
constantpublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |