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