public class Variable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
multi
Flag if it is a multi variable.
|
protected java.lang.String |
name
The variable name.
|
static Variable |
STATE
The predefined state variable.
|
protected boolean |
temporary
Flag indicating a temporary variable (not used in rhs).
|
protected OAVObjectType |
type
The object type.
|
Constructor and Description |
---|
Variable(java.lang.String name,
OAVObjectType type)
Create a new variable.
|
Variable(java.lang.String name,
OAVObjectType type,
boolean multi,
boolean temporary)
Create a new variable.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Test for equality.
|
java.lang.String |
getName()
Get the name.
|
OAVObjectType |
getType()
Get the type.
|
int |
hashCode()
Get the hash code.
|
boolean |
isMulti()
Test if it is a multi variable.
|
boolean |
isTemporary()
Test if variable is temporary.
|
void |
setType(OAVObjectType type)
Set the type.
|
java.lang.String |
toString()
Get the string representation.
|
public static final Variable STATE
protected java.lang.String name
protected OAVObjectType type
protected boolean multi
protected boolean temporary
public Variable(java.lang.String name, OAVObjectType type)
public Variable(java.lang.String name, OAVObjectType type, boolean multi, boolean temporary)
public java.lang.String getName()
public OAVObjectType getType()
public void setType(OAVObjectType type)
type
- The type to set.public boolean isMulti()
public boolean isTemporary()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object