modesteditor.core.model
Class ModestVariable

java.lang.Object
  extended by modesteditor.core.model.Model
      extended by modesteditor.core.model.ModestVariable

public class ModestVariable
extends Model

Model of a MoDeST variable.


Field Summary
 
Fields inherited from class modesteditor.core.model.Model
column, length, line, name, parent
 
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 modesteditor.core.model.Model
getColumn, getLength, getLine, getName, getParent, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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