sleep.engine

Class Step

Implemented Interfaces:
Serializable
Known Direct Subclasses:
Assign, AssignT, Bind, BindFilter, BindPredicate, Call, CreateClosure, CreateFrame, Decide, Get, Goto, Index, Iterate, ObjectAccess, ObjectNew, Operate, PLiteral, Return, SValue

public 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 int
line
the script line number that this step was generated from
Step
next
Steps act as a simple self contained linked list

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.
String
toString()
String
toString(String prefix)
returns a string representation of this atomic step

Field Details

line

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

Step next
Steps act as a simple self contained linked list

Method Details

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()

toString

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