sjm.examples.pretty
Class PrettySequenceAssembler
java.lang.Object
|
+--sjm.parse.Assembler
|
+--sjm.examples.pretty.PrettySequenceAssembler
- public class PrettySequenceAssembler
- extends Assembler
Replace a given number of nodes on the stack with a new
composite that holds the popped nodes as its children.
|
Constructor Summary |
PrettySequenceAssembler(java.lang.String name,
int numberNodes)
Construct an assembler that will replace a given number of
nodes on the stack with a new composite that holds the
popped nodes as its children. |
|
Method Summary |
void |
workOn(Assembly a)
Replace a given number of nodes on the stack with a new
composite that holds the popped nodes as its children. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
name
protected java.lang.String name
numberNodes
protected int numberNodes
PrettySequenceAssembler
public PrettySequenceAssembler(java.lang.String name,
int numberNodes)
- Construct an assembler that will replace a given number of
nodes on the stack with a new composite that holds the
popped nodes as its children.
workOn
public void workOn(Assembly a)
- Replace a given number of nodes on the stack with a new
composite that holds the popped nodes as its children.
- Overrides:
- workOn in class Assembler
- Parameters:
Assembly - the assembly to work on