Uses of Interface
org.apache.sling.scripting.sightly.compiler.commands.CommandVisitor
Package
Description
The
org.apache.sling.scripting.sightly.compiler.commands
package defines the API for
Command
processing.-
Uses of CommandVisitor in org.apache.sling.scripting.sightly.compiler.commands
Modifier and TypeClassDescriptionclass
This class can be extended byCommandVisitor
implementations that don't provide support for all the availableCommand
s.final class
ThisCommandVisitor
allows storing states forCommand
evaluation.Modifier and TypeMethodDescriptionStatefulVisitor.StateControl.pop()
StatefulVisitor.StateControl.replace
(CommandVisitor visitor) Modifier and TypeMethodDescriptionvoid
Command.accept
(CommandVisitor visitor) Accept a visitor.void
Conditional.End.accept
(CommandVisitor visitor) void
Conditional.Start.accept
(CommandVisitor visitor) void
Loop.End.accept
(CommandVisitor visitor) void
Loop.Start.accept
(CommandVisitor visitor) void
OutputVariable.accept
(CommandVisitor visitor) void
OutText.accept
(CommandVisitor visitor) void
Procedure.Call.accept
(CommandVisitor visitor) void
Procedure.End.accept
(CommandVisitor visitor) void
Procedure.Start.accept
(CommandVisitor visitor) void
VariableBinding.End.accept
(CommandVisitor visitor) void
VariableBinding.Global.accept
(CommandVisitor visitor) void
VariableBinding.Start.accept
(CommandVisitor visitor) void
StatefulVisitor.initializeWith
(CommandVisitor initialState) void
StatefulVisitor.StateControl.push
(CommandVisitor visitor) StatefulVisitor.StateControl.replace
(CommandVisitor visitor) -
Uses of CommandVisitor in org.apache.sling.scripting.sightly.impl.compiler.debug
Modifier and TypeClassDescriptionfinal class
A visitor which checks a stream for correct closing of things -
Uses of CommandVisitor in org.apache.sling.scripting.sightly.impl.compiler.optimization
Modifier and TypeClassDescriptionclass
Extracts the variables used in a commandclass
Removes code under conditionals which are proven to fail.final class
This optimization handles variables initialized to map literals.final class
This optimization removes variables which are bound but never used in the command stream. -
Uses of CommandVisitor in org.apache.sling.scripting.sightly.impl.compiler.optimization.reduce
Modifier and TypeClassDescriptionfinal class
Optimization which evaluates constant expressions during compilation-time -
Uses of CommandVisitor in org.apache.sling.scripting.sightly.impl.compiler.util.stream
Modifier and TypeInterfaceDescriptioninterface
Command visitor which writes to an output stream.Modifier and TypeMethodDescriptionstatic void
Streams.connect
(CommandStream inStream, PushStream outStream, CommandVisitor visitor) Attach the visitor as a handle to the inStream and propagate the done signal from the inStream to the outStream -
Uses of CommandVisitor in org.apache.sling.scripting.sightly.impl.compiler.visitor
Modifier and TypeClassDescriptionclass
Ignore a nested range of commands.class
Variant ofIgnoreRange
to be used in stateful visitors.class
Command visitor which tracks variables in commands.class
Abstract visitor that allows to skip processing some commands.