|
||||||||||
| 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.Variable
public class Variable
A variable. During re-write, this will be replaced with a concrete value.
During rewrite, the name property must not be null.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class uk.ac.ncl.cs.instantsoap.commandlineprocessor.variables.VariableOrConstant |
|---|
VariableOrConstant.VariableOrConstantVisitor |
| Constructor Summary | |
|---|---|
Variable()
Create a new variable with a null name. |
|
Variable(String name)
Create a new variable with the given name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
String |
getName()
Get the name of this variable. |
int |
hashCode()
|
void |
setName(String name)
Set the name of this variable. |
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 Variable()
public Variable(String name)
the - name of this variable| Method Detail |
|---|
public void visit(VariableOrConstant.VariableOrConstantVisitor visitor)
VariableOrConstant
visit in class VariableOrConstantvisitor - the VariableOrConstantVisitor to processpublic String getName()
public void setName(String name)
name - the name Stringpublic 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 | |||||||||