Uses of Interface
org.apache.sling.scripting.sightly.compiler.expression.ExpressionNode
-
Packages that use ExpressionNode Package Description org.apache.sling.scripting.sightly.compiler.commands Theorg.apache.sling.scripting.sightly.compiler.commands
package defines the API forCommand
processing.org.apache.sling.scripting.sightly.compiler.expression Theorg.apache.sling.scripting.sightly.compiler.expression
package defines the API forExpression
processing.org.apache.sling.scripting.sightly.compiler.expression.nodes Theorg.apache.sling.scripting.sightly.compiler.expression.nodes
package exposes the variousExpressionNode
types.org.apache.sling.scripting.sightly.impl.compiler.optimization org.apache.sling.scripting.sightly.impl.compiler.optimization.reduce org.apache.sling.scripting.sightly.impl.compiler.util.expression org.apache.sling.scripting.sightly.impl.filter org.apache.sling.scripting.sightly.impl.parser.expr.generated org.apache.sling.scripting.sightly.impl.plugin -
-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.compiler.commands
Methods in org.apache.sling.scripting.sightly.compiler.commands that return ExpressionNode Modifier and Type Method Description ExpressionNode
VariableBinding.Global. getExpression()
ExpressionNode
VariableBinding.Start. getExpression()
Constructors in org.apache.sling.scripting.sightly.compiler.commands with parameters of type ExpressionNode Constructor Description Global(String variableName, ExpressionNode expressionNode)
Start(String variableName, ExpressionNode expression)
-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.compiler.expression
Methods in org.apache.sling.scripting.sightly.compiler.expression that return ExpressionNode Modifier and Type Method Description ExpressionNode
Expression. getRoot()
Get the root node of this expression.ExpressionNode
Expression. removeOption(String option)
Removes the given option from this expression.Methods in org.apache.sling.scripting.sightly.compiler.expression that return types with arguments of type ExpressionNode Modifier and Type Method Description Map<String,ExpressionNode>
Expression. getOptions()
Get the options for this expression.Methods in org.apache.sling.scripting.sightly.compiler.expression with parameters of type ExpressionNode Modifier and Type Method Description Expression
Expression. withNode(ExpressionNode node)
Return a copy, but with the specified node as root.Constructors in org.apache.sling.scripting.sightly.compiler.expression with parameters of type ExpressionNode Constructor Description Expression(ExpressionNode root)
Create an expression with just a root node.Expression(ExpressionNode root, Map<String,ExpressionNode> options)
Create an expression with a root node and options.Expression(ExpressionNode root, Map<String,ExpressionNode> options, String rawText)
Create an expression with a root node and options.Constructor parameters in org.apache.sling.scripting.sightly.compiler.expression with type arguments of type ExpressionNode Constructor Description Expression(ExpressionNode root, Map<String,ExpressionNode> options)
Create an expression with a root node and options.Expression(ExpressionNode root, Map<String,ExpressionNode> options, String rawText)
Create an expression with a root node and options. -
Uses of ExpressionNode in org.apache.sling.scripting.sightly.compiler.expression.nodes
Subinterfaces of ExpressionNode in org.apache.sling.scripting.sightly.compiler.expression.nodes Modifier and Type Interface Description interface
Atom
AnAtom
defines anExpressionNode
that can be translated to simple text, like identifiers or primitive constants (strings, booleans and numbers).Classes in org.apache.sling.scripting.sightly.compiler.expression.nodes that implement ExpressionNode Modifier and Type Class Description class
ArrayLiteral
Syntactical structure for an array of items.class
BinaryOperation
A {code BinaryOperation} defines an expression where a binary operator is applied (e.g.class
BooleanConstant
Defines a Boolean constant (e.g.class
Identifier
Defines a single variable.class
MapLiteral
Defines a syntactical construction representing a map.class
NullLiteral
Defines the null literal.class
NumericConstant
Defines a numeric constant expression (e.g.class
PropertyAccess
Defines an expression in which an object is queried for a specific property (e.g.class
RuntimeCall
ARuntimeCall
is a special expression which provides access to utility functions from the runtime.class
StringConstant
Defines a simple string constant (e.g.class
TernaryOperator
Defines the HTL ternary operator (e.g.class
UnaryOperation
Defines a unary operation (e.g.Methods in org.apache.sling.scripting.sightly.compiler.expression.nodes that return ExpressionNode Modifier and Type Method Description ExpressionNode
TernaryOperator. getCondition()
Returns the condition of this operator.ExpressionNode
TernaryOperator. getElseBranch()
Returns the "else" branch.ExpressionNode
BinaryOperation. getLeftOperand()
Returns the left operand.ExpressionNode
PropertyAccess. getProperty()
Returns the expression node identifying the accessed property.ExpressionNode
BinaryOperation. getRightOperand()
Returns the right operand.ExpressionNode
PropertyAccess. getTarget()
The object being accessed.ExpressionNode
UnaryOperation. getTarget()
Returns the target to which the operation is applied.ExpressionNode
TernaryOperator. getThenBranch()
Returns the "then" branch.ExpressionNode
MapLiteral. getValue(String key)
Returns anExpressionNode
from the backing map.Methods in org.apache.sling.scripting.sightly.compiler.expression.nodes that return types with arguments of type ExpressionNode Modifier and Type Method Description List<ExpressionNode>
RuntimeCall. getArguments()
Get the nodes of the argument calls.List<ExpressionNode>
ArrayLiteral. getItems()
Returns an unmodifiableList
containing the array's elements.Map<String,ExpressionNode>
MapLiteral. getMap()
Returns an unmodifiable view of the backing map.Constructors in org.apache.sling.scripting.sightly.compiler.expression.nodes with parameters of type ExpressionNode Constructor Description BinaryOperation(BinaryOperator operator, ExpressionNode leftOperand, ExpressionNode rightOperand)
Creates aBinaryOperation
.BinaryOperation(BinaryOperator operator, ExpressionNode leftOperand, ExpressionNode rightOperand, Expression parentExpression)
Creates aBinaryOperation
.PropertyAccess(ExpressionNode target, Iterable<String> properties)
Builds a chained property access node with the given target and the specified properties.PropertyAccess(ExpressionNode target, String property)
Creates a property access node.PropertyAccess(ExpressionNode target, ExpressionNode property)
Creates a property access node.RuntimeCall(String functionName, ExpressionNode... arguments)
Creates aRuntimeCall
based on afunctionName
and an array ofarguments
.TernaryOperator(ExpressionNode condition, ExpressionNode thenBranch, ExpressionNode elseBranch)
Creates the operator.UnaryOperation(UnaryOperator operator, ExpressionNode target)
Creates aUnaryOperation
.Constructor parameters in org.apache.sling.scripting.sightly.compiler.expression.nodes with type arguments of type ExpressionNode Constructor Description ArrayLiteral(List<ExpressionNode> items)
Creates an array from a list ofExpressionNode
elements.MapLiteral(Map<String,ExpressionNode> map)
Creates a map representation.RuntimeCall(String functionName, List<ExpressionNode> arguments)
Creates aRuntimeCall
based on afunctionName
and a list ofarguments
. -
Uses of ExpressionNode in org.apache.sling.scripting.sightly.impl.compiler.optimization
Methods in org.apache.sling.scripting.sightly.impl.compiler.optimization with parameters of type ExpressionNode Modifier and Type Method Description static Set<String>
VariableFinder. findVariables(ExpressionNode node)
-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.impl.compiler.optimization.reduce
Methods in org.apache.sling.scripting.sightly.impl.compiler.optimization.reduce that return ExpressionNode Modifier and Type Method Description ExpressionNode
EvalResult. getNode()
Methods in org.apache.sling.scripting.sightly.impl.compiler.optimization.reduce with parameters of type ExpressionNode Modifier and Type Method Description static EvalResult
EvalResult. nonConstant(ExpressionNode node)
static EvalResult
ExpressionReducer. reduce(ExpressionNode node, VariableTracker<EvalResult> tracker)
-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.impl.compiler.util.expression
Methods in org.apache.sling.scripting.sightly.impl.compiler.util.expression with parameters of type ExpressionNode Modifier and Type Method Description ExpressionNode
NodeTransformer. transform(ExpressionNode node)
-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.impl.filter
Method parameters in org.apache.sling.scripting.sightly.impl.filter with type arguments of type ExpressionNode Modifier and Type Method Description protected abstract Expression
AbstractFilter. apply(Expression expression, Map<String,ExpressionNode> options)
protected Expression
FormatFilter. apply(Expression expression, Map<String,ExpressionNode> options)
protected Expression
I18nFilter. apply(Expression expression, Map<String,ExpressionNode> options)
protected Expression
JoinFilter. apply(Expression expression, Map<String,ExpressionNode> options)
protected Expression
URIManipulationFilter. apply(Expression expression, Map<String,ExpressionNode> options)
protected Expression
XSSFilter. apply(Expression expression, Map<String,ExpressionNode> options)
-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.impl.parser.expr.generated
Fields in org.apache.sling.scripting.sightly.impl.parser.expr.generated declared as ExpressionNode Modifier and Type Field Description ExpressionNode
SightlyParser.AndBinaryOpContext. node
ExpressionNode
SightlyParser.ComparisonTermContext. node
ExpressionNode
SightlyParser.ExprNodeContext. node
ExpressionNode
SightlyParser.FactorContext. node
ExpressionNode
SightlyParser.FieldContext. node
ExpressionNode
SightlyParser.InBinaryOpContext. node
ExpressionNode
SightlyParser.OrBinaryOpContext. node
ExpressionNode
SightlyParser.SimpleContext. node
ExpressionNode
SightlyParser.TermContext. node
ExpressionNode
SightlyParser.OptionContext. value
Fields in org.apache.sling.scripting.sightly.impl.parser.expr.generated with type parameters of type ExpressionNode Modifier and Type Field Description Map<String,ExpressionNode>
SightlyParser.OptionListContext. options
List<ExpressionNode>
SightlyParser.ValueListContext. values
-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.impl.plugin
Fields in org.apache.sling.scripting.sightly.impl.plugin with type parameters of type ExpressionNode Modifier and Type Field Description static Set<ExpressionNode>
ElementPlugin. VOID_ELEMENTS
Methods in org.apache.sling.scripting.sightly.impl.plugin with parameters of type ExpressionNode Modifier and Type Method Description void
AggregatePluginInvoke. beforeAttributeValue(PushStream stream, String attributeName, ExpressionNode attributeValue)
void
DefaultPluginInvoke. beforeAttributeValue(PushStream stream, String attributeName, ExpressionNode attributeValue)
void
PluginInvoke. beforeAttributeValue(PushStream stream, String attributeName, ExpressionNode attributeValue)
-