modesteditor.core.model
Class ModestVariable
java.lang.Object
modesteditor.core.model.Model
modesteditor.core.model.ModestVariable
public class ModestVariable
- extends Model
Model of a MoDeST variable.
Constructor Summary |
ModestVariable(java.lang.String name,
int line,
int column)
Constructor which sets the type to int. |
ModestVariable(java.lang.String name,
int line,
int column,
java.lang.String type)
Constructor which sets the appropriate type. |
Method Summary |
void |
accept(IModelVisitor visitor,
java.lang.Object passAlongArgument)
|
java.lang.String |
getType()
Returns the type of the variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModestVariable
public ModestVariable(java.lang.String name,
int line,
int column)
- Constructor which sets the type to int.
Should not be used, since a variable has to be defined with a type.
- Parameters:
name
- offset
-
ModestVariable
public ModestVariable(java.lang.String name,
int line,
int column,
java.lang.String type)
- Constructor which sets the appropriate type.
- Parameters:
name
- offset
- type
-
accept
public void accept(IModelVisitor visitor,
java.lang.Object passAlongArgument)
- Specified by:
accept
in class Model
getType
public java.lang.String getType()
- Returns the type of the variable.
- Returns:
- type of the variable