|
Building Parsers with Java | ||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Packages that use Command | |
| sjm.examples.sling | |
| sjm.imperative | |
| Uses of Command in sjm.examples.sling |
| Subclasses of Command in sjm.examples.sling | |
class |
AddFunctionCommand
This command, when executed, evaluates a renderable function and adds it to a renderable collection. |
class |
AssignFunctionCommand
This command, when executed, evaluates a function and sets it as the value of a variable. |
| Fields in sjm.examples.sling declared as Command | |
protected Command |
SlingMediator.command
|
| Methods in sjm.examples.sling that return Command | |
protected Command |
SlingMediator.parse(java.lang.String program)
|
| Uses of Command in sjm.imperative |
| Subclasses of Command in sjm.imperative | |
class |
AssignmentCommand
This class holds an sjm.engine.Evaluation
object, and executes it upon receiving an execute
command. |
class |
CommandSequence
This class contains a sequence of other commands. |
class |
ForCommand
This command mimics a normal "for" loop, such as: |
class |
IfCommand
This command mimics a normal "if" statement, such as: |
class |
NullCommand
This command does nothing, which can simplify coding in some cases. |
class |
PrintlnCommand
This command, when executed, prints out the value of a term provided in the constructor. |
class |
ReadCommand
This command, when executed, reads in a string and assigns it to a supplied variable. |
class |
WhileCommand
This command mimics a normal "while" loop, executing a command in a loop, so long as some condition holds true. |
| Fields in sjm.imperative declared as Command | |
protected Command |
WhileCommand.command
|
protected Command |
IfCommand.ifCommand
|
protected Command |
IfCommand.elseCommand
|
protected Command |
ForCommand.setupCommand
|
protected Command |
ForCommand.endCommand
|
protected Command |
ForCommand.bodyCommand
|
| Methods in sjm.imperative with parameters of type Command | |
void |
CommandSequence.addCommand(Command c)
Add a command to the sequence of commands to which this object will cascade an execute command. |
| Constructors in sjm.imperative with parameters of type Command | |
WhileCommand.WhileCommand(BooleanTerm condition,
Command command)
Construct a "while" command from the given condition and command. |
|
IfCommand.IfCommand(BooleanTerm condition,
Command ifCommand)
Construct an "if" command from the given condition and command. |
|
IfCommand.IfCommand(BooleanTerm condition,
Command ifCommand,
Command elseCommand)
Construct an "if" command from the given condition and command. |
|
ForCommand.ForCommand(Variable v,
double from,
double to,
double step,
Command bodyCommand)
Construct a "for" command that iterates the supplied variable over the doubles from the "from" parameter to the "to" parameter, stepping by the "step" parameter. |
|
ForCommand.ForCommand(Variable v,
int from,
int to,
Command bodyCommand)
Construct a "for" command that iterates the supplied variable over the integers from the "from" parameter to the "to" parameter. |
|
ForCommand.ForCommand(Command setupCommand,
BooleanTerm condition,
Command endCommand,
Command bodyCommand)
Construct a "for" command from the given setup command, condition, endCommand, and bodyCommand. |
|
|
by Steve Metsker | ||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||