@Version("1.1.0")
Package org.apache.sling.scripting.sightly.compiler.commands
The
org.apache.sling.scripting.sightly.compiler.commands
package defines the API for
Command
processing.-
Interface Summary Interface Description Command ACommand
represents the type of instruction a certain HTL expression or block element should execute.CommandHandler TheCommandHandler
is the mechanism through which aCommandStream
can be processed synchronously, as the stream is written.CommandStream This interface defines a stream to whichCommand
s are pushed during the compilation of a HTL script by theSightlyCompiler
.CommandVisitor TheCommandVisitor
is the mechanism through which aCommand
can be processed. -
Class Summary Class Description AbstractCommandVisitor This class can be extended byCommandVisitor
implementations that don't provide support for all the availableCommand
s.Conditional ThisCommand
imposes a condition on the next rendering commands.Conditional.End Conditional.Start Loop ThisCommand
renders a sequence of commands repeatedly.Loop.End Loop.Start OutputVariable ThisCommand
renders a variable's value.OutText ThisCommand
renders a text fragment.Procedure ThisCommand
allows defining a HTL template - the only functional construct of the language.Procedure.Call Procedure.End Procedure.Start StatefulVisitor ThisCommandVisitor
allows storing states forCommand
evaluation.VariableBinding ThisCommand
marks the binding of a variable.VariableBinding.End VariableBinding.Global VariableBinding.Start