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
Constructor Summary |
PLiteral(java.util.List f)
requires a list of parsed literal fragments to use when constructing the final string at runtime |
Method Summary |
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 step |
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 |
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
PLiteral
public PLiteral(java.util.List f)
- requires a list of parsed literal fragments to use when constructing the final string at runtime
toString
public java.lang.String toString(java.lang.String prefix)
- Description copied from class:
Step
- returns a string representation of this atomic step
- Overrides:
toString
in class Step
evaluate
public Scalar evaluate(ScriptEnvironment e)
- Description copied from class:
Step
- evaluate this atomic step.
- Overrides:
evaluate
in class 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