Package sleep.engine.atoms
Class PLiteral
- java.lang.Object
-
- sleep.engine.Step
-
- sleep.engine.atoms.PLiteral
-
- All Implemented Interfaces:
java.io.Serializable
public class PLiteral extends Step
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGN_FRAGMENT
static int
STRING_FRAGMENT
static int
VAR_FRAGMENT
-
Constructor Summary
Constructors Constructor Description PLiteral(java.util.List f)
requires a list of parsed literal fragments to use when constructing the final string at runtime
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Scalar
evaluate(ScriptEnvironment e)
evaluate this atomic step.static sleep.engine.atoms.PLiteral.Fragment
fragment(int type, java.lang.Object element)
create a fragment for interpretation by this parsed literal stepjava.lang.String
toString(java.lang.String prefix)
returns a string representation of this atomic step-
Methods inherited from class sleep.engine.Step
getHighLineNumber, getLineNumber, getLowLineNumber, setInfo, toString
-
-
-
-
Field Detail
-
STRING_FRAGMENT
public static final int STRING_FRAGMENT
- See Also:
- Constant Field Values
-
ALIGN_FRAGMENT
public static final int ALIGN_FRAGMENT
- See Also:
- Constant Field Values
-
VAR_FRAGMENT
public static final int VAR_FRAGMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
toString
public java.lang.String toString(java.lang.String prefix)
Description copied from class:Step
returns a string representation of this atomic step
-
evaluate
public Scalar evaluate(ScriptEnvironment e)
Description copied from class:Step
evaluate this atomic step.
-
fragment
public static sleep.engine.atoms.PLiteral.Fragment fragment(int type, java.lang.Object element)
create a fragment for interpretation by this parsed literal step
-
-