|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.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 use| Method Detail |
|---|
public void visit(VariableOrConstant.VariableOrConstantVisitor visitor)
VariableOrConstant
visit in class VariableOrConstantvisitor - the VariableOrConstantVisitor to processpublic String getValue()
Stringpublic void setValue(String value)
the - new String constantpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||