CommandVisitor implementations that don't provide support for all the available Commands.CommandHandler to the stream.ExpressionNode elements.Atom defines an ExpressionNode that can be translated to simple text, like identifiers or primitive constants
(strings, booleans and numbers).BackendCompiler can be hooked in into the SightlyCompiler in order to transpile HTL Commands into other
JVM supported languages.BinaryOperation.BinaryOperation.collection to a comma separated values String representation.Command represents the type of instruction a certain HTL expression or block element should execute.CommandHandler is the mechanism through which a CommandStream can be processed synchronously, as the stream is
written.Commands are pushed during the compilation of a HTL script by the SightlyCompiler.CommandVisitor is the mechanism through which a Command can be processed.SightlyCompiler.SightlyCompiler will process during the call of the compile methods.CompilationUnit.SightlyCompiler will produce when compiling a script.Command imposes a condition on the next rendering commands.PropertyAccess node.Identifier node.StringConstant node.BinaryOperation node.BooleanConstant node.NumericConstant node.UnaryOperation node.TernaryOperator node.RuntimeCall node.MapLiteral node.ArrayLiteral node.NullLiteral node.baseName
get + BaseName
is + BaseName
RuntimeCall function that will process string
formatting.RuntimeCall function that will process string
formatting.iterator, this method will return a Collection.List of commands that were written into this stream.CommandStream for evaluating / replaying the Commands after the compile operation.object, this method will return the value of the public field identified by fieldName.object (i.e.List containing the array's elements.Reader from which the compiler will read the script to compile.ExpressionNode from the backing map.RuntimeCall function that will process
i18n.RuntimeCall function that will process
i18n.RuntimeCall function that will perform
script execution delegation.RuntimeCall function that will perform
script execution delegation.object, this method will invoke the public method without parameters identified by methodName and
return the invocation's result.name is tracked by this tracker or not.true if the method is not one of the Object's class declared methods, with the exception of
Object.toString().object is an instance of a primitive class.RuntimeCall function that will process
join operations on arrays.RuntimeCall function that will process
join operations on arrays.Command renders a sequence of commands repeatedly.NodeVisitor represents the mechanism through which ExpressionNode entities are processed.Number representation.ObjectModel.Command that was just written into the stream to which this handler was attached.org.apache.sling.scripting.sightly.compiler package defines the API exposed by the
SightlyCompiler.org.apache.sling.scripting.sightly.compiler.backend defines the API that can be used by HTL Backend Compilers, used to
compile HTL Commands into executable code for other languages.org.apache.sling.scripting.sightly.compiler.commands package defines the API for
Command processing.org.apache.sling.scripting.sightly.compiler.expression package defines the API for
Expression processing.org.apache.sling.scripting.sightly.compiler.expression.nodes package exposes the various
ExpressionNode types.Command renders a variable's value.Command renders a text fragment.Set that stores all the supported primitive classes.Command allows defining a HTL template - the only functional construct of the language.target object, this method attempts to resolve and return the value of the passed property.RuntimeCall function that will perform
resource inclusion in the rendering process.RuntimeCall function that will perform
resource inclusion in the rendering process.RuntimeCall is a special expression which provides access to utility functions from the runtime.RuntimeCall based on a functionName and an array of arguments.RuntimeCall based on a functionName and a list of arguments.RuntimeCall
starting with version 1.2.0 of the org.apache.sling.scripting.sightly.compiler.expression.nodes API.SightlyCompiler interprets a HTL script and transforms it internally into a CommandStream.SightlyCompiler during various processing operations.CommandVisitor allows storing states for Command evaluation.object to a boolean value, applying the following rules:
if the object is null the returned value is false
if the object is a Number the method will return false only if the number's value is 0
if the String representation of the object is equal irrespective of its casing to "true", the method will
return true
if the object is a Collection or a Map, the method will return true only if the collection /
map is not empty
if the object is an array, the method will return true only if the array is not empty
object to a collection, according to the following rules:
if the object is null an empty collection will be returned
if the object is an array a list transformation of the array will be returned
if the object is a Collection the object itself will be returned
if the object is an instance of a Map the map's key set will be returned (see Map.keySet())
if the object is an instance of an Enumeration a list transformation will be returned
if the object is an instance of an Iterator or Iterable the result of ObjectModel.fromIterator(Iterator)
will be returned
if the object is an instance of a String or Number a Collection containing only this
object will be returned
any other case not covered by the previous rules will result in an empty Collection
object to a numeric value.object to a String.UnaryOperation.RuntimeCall function that will provide
URI manipulation support.RuntimeCall function that will provide
URI manipulation support.RuntimeCall function that will provide
the support for loading Use-API objects.RuntimeCall function that will provide
the support for loading Use-API objects.Command marks the binding of a variable.Conditional.Start command.Conditional.End command.VariableBinding.Start command.VariableBinding.End command.VariableBinding.Global command.OutputVariable command.OutText command.Loop.Start command.Loop.End command.Procedure.Start command.Procedure.End command.Procedure.Call command.SightlyCompiler with the provided options added to the list of known expression options.BinaryOperation that contains information about the node's parent expression.RuntimeCall function that will provide
XSS escaping and filtering support.RuntimeCall function that will provide
XSS escaping and filtering support.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.