sleep.engine.atoms
Class PLiteral
java.lang.Object
sleep.engine.Step
sleep.engine.atoms.PLiteral
- All Implemented Interfaces:
- Serializable
public class PLiteral
- extends Step
- See Also:
- Serialized Form
Constructor Summary |
PLiteral(List f)
requires a list of parsed literal fragments to use when constructing the final string at runtime |
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(List f)
- requires a list of parsed literal fragments to use when constructing the final string at runtime
toString
public String toString(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,
Object element)
- create a fragment for interpretation by this parsed literal step