sleep.engine
Class Step

java.lang.Object
  extended by sleep.engine.Step
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Assign, AssignT, Bind, BindFilter, BindPredicate, Call, CreateClosure, CreateFrame, Decide, Get, Goto, Index, Iterate, ObjectAccess, ObjectNew, Operate, PLiteral, PopTry, Return, SValue, Try

public abstract class Step
extends java.lang.Object
implements java.io.Serializable

The root of all atomic steps.

   SLEEP - Simple Language for Environment Extension Purposes
 .-------------------.
 | sleep.engine.Step |________________________________________________________
 |                                                                            |
   Author: Raphael Mudge (rsmudge@mtu.edu)
           http://www.hick.org/~raffi/

   Description: This class is the root of all atomic steps.  Atomic steps are
       the individual entities that scripts are broken down into. 

   Documentation:

   Changelog:

 This software is distributed under the artistic license, see license.txt
     for more information. *

 |____________________________________________________________________________| 

See Also:
Serialized Form

Field Summary
protected  int line
          the script line number that this step was generated from
 Step next
          Steps act as a simple self contained linked list
 
Constructor Summary
Step()
           
 
Method Summary
 Scalar evaluate(ScriptEnvironment e)
          evaluate this atomic step.
 int getHighLineNumber()
          returns the last line number that this step is associated with (assuming it is associated with multiple lines
 int getLineNumber()
          returns the line number this step is associated with
 int getLowLineNumber()
          returns the first line number that this step is associated with (assuming it is associated with multiple lines
 void setInfo(int _line)
          convience method for the code generator to set the line number.
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String prefix)
          returns a string representation of this atomic step
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

line

protected int line
the script line number that this step was generated from


next

public Step next
Steps act as a simple self contained linked list

Constructor Detail

Step

public Step()
Method Detail

toString

public java.lang.String toString(java.lang.String prefix)
returns a string representation of this atomic step


setInfo

public void setInfo(int _line)
convience method for the code generator to set the line number.


getHighLineNumber

public int getHighLineNumber()
returns the last line number that this step is associated with (assuming it is associated with multiple lines


getLowLineNumber

public int getLowLineNumber()
returns the first line number that this step is associated with (assuming it is associated with multiple lines


getLineNumber

public int getLineNumber()
returns the line number this step is associated with


evaluate

public Scalar evaluate(ScriptEnvironment e)
evaluate this atomic step.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object