modesteditor.core.model
Class Model

java.lang.Object
  extended by modesteditor.core.model.Model
Direct Known Subclasses:
ModestAction, ModestException, ModestType, ModestVariable, Process

public abstract class Model
extends java.lang.Object

Superclass of all MoDeST models.


Field Summary
protected  int column
           
protected  int length
           
protected  int line
           
protected  java.lang.String name
           
protected  Process parent
          Parent process of the model, either a process or the root of the tree.
 
Constructor Summary
Model()
           
Model(java.lang.String name)
           
 
Method Summary
abstract  void accept(IModelVisitor visitor, java.lang.Object passAlongArgument)
           
 int getColumn()
           
 int getLength()
           
 int getLine()
           
 java.lang.String getName()
           
 Process getParent()
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected Process parent
Parent process of the model, either a process or the root of the tree.


name

protected java.lang.String name

length

protected int length

line

protected int line

column

protected int column
Constructor Detail

Model

public Model(java.lang.String name)

Model

public Model()
Method Detail

setName

public void setName(java.lang.String name)

getParent

public Process getParent()

accept

public abstract void accept(IModelVisitor visitor,
                            java.lang.Object passAlongArgument)

getName

public java.lang.String getName()

getLength

public int getLength()

getLine

public int getLine()

getColumn

public int getColumn()