Package sleep.engine
Class Step
- java.lang.Object
-
- 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 class Step extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Step()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 linesint
getLineNumber()
returns the line number this step is associated withint
getLowLineNumber()
returns the first line number that this step is associated with (assuming it is associated with multiple linesvoid
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
-
-
-
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
-
-
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 classjava.lang.Object
-
-