|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.satline.expr.Variable
public class Variable
Definition of a variable in an expression.
| Constructor Summary | |
|---|---|
Variable()
Default constructor. |
|
Variable(java.lang.String name)
|
|
Variable(java.lang.String name,
ExpressionType type)
Constructor from name. |
|
| Method Summary | ||
|---|---|---|
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object. |
|
java.lang.String |
getName()
Get variable name. |
|
ExpressionType |
getType()
|
|
|
greet(ExpressionWalker<E,F> visitor,
F arg)
Handle visit of ExpressionWalker. |
|
int |
hashCode()
|
|
void |
setName(java.lang.String name)
Set variable name. |
|
void |
setType(ExpressionType type)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Variable()
public Variable(java.lang.String name,
ExpressionType type)
name - - variable nametype - - variable typepublic Variable(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - - name to set.public ExpressionType getType()
public void setType(ExpressionType type)
type - The type to set.
public <E,F> E greet(ExpressionWalker<E,F> visitor,
F arg)
throws ExpressionException
greet in interface Expressionvisitor - - the ExpressionWalker visiting this objectarg - - implementation dependent argument
ExpressionExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - - object to compare with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||