public final class StatefulVisitor extends java.lang.Object implements CommandVisitor
CommandVisitor
allows storing states for Command
evaluation.Modifier and Type | Class and Description |
---|---|
class |
StatefulVisitor.StateControl |
Constructor and Description |
---|
StatefulVisitor() |
Modifier and Type | Method and Description |
---|---|
StatefulVisitor.StateControl |
getControl() |
void |
initializeWith(CommandVisitor initialState) |
void |
visit(Conditional.End conditionalEnd)
Process a
Conditional.End command. |
void |
visit(Conditional.Start conditionalStart)
Process a
Conditional.Start command. |
void |
visit(Loop.End loopEnd)
Process a
Loop.End command. |
void |
visit(Loop.Start loopStart)
Process a
Loop.Start command. |
void |
visit(OutputVariable outputVariable)
Process a
OutputVariable command. |
void |
visit(OutText outText)
Process a
OutText command. |
void |
visit(Procedure.Call procedureCall)
Process a
Procedure.Call command. |
void |
visit(Procedure.End endProcedure)
Process a
Procedure.End command. |
void |
visit(Procedure.Start startProcedure)
Process a
Procedure.Start command. |
void |
visit(VariableBinding.End variableBindingEnd)
Process a
VariableBinding.End command. |
void |
visit(VariableBinding.Global globalAssignment)
Process a
VariableBinding.Global command. |
void |
visit(VariableBinding.Start variableBindingStart)
Process a
VariableBinding.Start command. |
public StatefulVisitor.StateControl getControl()
public void initializeWith(CommandVisitor initialState)
public void visit(Conditional.Start conditionalStart)
CommandVisitor
Conditional.Start
command.visit
in interface CommandVisitor
conditionalStart
- the commandpublic void visit(Conditional.End conditionalEnd)
CommandVisitor
Conditional.End
command.visit
in interface CommandVisitor
conditionalEnd
- the commandpublic void visit(VariableBinding.Start variableBindingStart)
CommandVisitor
VariableBinding.Start
command.visit
in interface CommandVisitor
variableBindingStart
- the commandpublic void visit(VariableBinding.End variableBindingEnd)
CommandVisitor
VariableBinding.End
command.visit
in interface CommandVisitor
variableBindingEnd
- the commandpublic void visit(VariableBinding.Global globalAssignment)
CommandVisitor
VariableBinding.Global
command.visit
in interface CommandVisitor
globalAssignment
- the commandpublic void visit(OutputVariable outputVariable)
CommandVisitor
OutputVariable
command.visit
in interface CommandVisitor
outputVariable
- the commandpublic void visit(OutText outText)
CommandVisitor
OutText
command.visit
in interface CommandVisitor
outText
- the commandpublic void visit(Loop.Start loopStart)
CommandVisitor
Loop.Start
command.visit
in interface CommandVisitor
loopStart
- the commandpublic void visit(Loop.End loopEnd)
CommandVisitor
Loop.End
command.visit
in interface CommandVisitor
loopEnd
- the commandpublic void visit(Procedure.Start startProcedure)
CommandVisitor
Procedure.Start
command.visit
in interface CommandVisitor
startProcedure
- the commandpublic void visit(Procedure.End endProcedure)
CommandVisitor
Procedure.End
command.visit
in interface CommandVisitor
endProcedure
- the commandpublic void visit(Procedure.Call procedureCall)
CommandVisitor
Procedure.Call
command.visit
in interface CommandVisitor
procedureCall
- the command"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"