sleep.engine

Class Step

public abstract class Step extends Object implements 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. *

 |____________________________________________________________________________| 
Field Summary
protected intline
the script line number that this step was generated from
Stepnext
Steps act as a simple self contained linked list
Method Summary
Scalarevaluate(ScriptEnvironment e)
evaluate this atomic step.
intgetHighLineNumber()
returns the last line number that this step is associated with (assuming it is associated with multiple lines
intgetLineNumber()
returns the line number this step is associated with
intgetLowLineNumber()
returns the first line number that this step is associated with (assuming it is associated with multiple lines
voidsetInfo(int _line)
convience method for the code generator to set the line number.
StringtoString(String prefix)
returns a string representation of this atomic step
StringtoString()

Field Detail

line

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

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

Method Detail

evaluate

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

getHighLineNumber

public int getHighLineNumber()
returns the last 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

getLowLineNumber

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

setInfo

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

toString

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

toString

public String toString()