Uses of Interface
org.apache.sling.scripting.sightly.compiler.expression.ExpressionNode
Packages that use ExpressionNode
Package
Description
The
org.apache.sling.scripting.sightly.compiler.commands
package defines the API for
Command
processing.The
org.apache.sling.scripting.sightly.compiler.expression
package defines the API for
Expression
processing.The
org.apache.sling.scripting.sightly.compiler.expression.nodes
package exposes the various
ExpressionNode
types.-
Uses of ExpressionNode in org.apache.sling.scripting.sightly.compiler.commands
Methods in org.apache.sling.scripting.sightly.compiler.commands that return ExpressionNodeModifier and TypeMethodDescriptionVariableBinding.Global.getExpression()
VariableBinding.Start.getExpression()
Constructors in org.apache.sling.scripting.sightly.compiler.commands with parameters of type ExpressionNodeModifierConstructorDescriptionGlobal
(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 ExpressionNodeModifier and TypeMethodDescriptionExpression.getRoot()
Get the root node of this expression.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 ExpressionNodeMethods in org.apache.sling.scripting.sightly.compiler.expression with parameters of type ExpressionNodeModifier and TypeMethodDescriptionExpression.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 ExpressionNodeModifierConstructorDescriptionExpression
(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 ExpressionNodeModifierConstructorDescriptionExpression
(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.nodesModifier and TypeInterfaceDescriptioninterface
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 ExpressionNodeModifier and TypeClassDescriptionfinal class
Syntactical structure for an array of items.final class
A {code BinaryOperation} defines an expression where a binary operator is applied (e.g.final class
Defines a Boolean constant (e.g.final class
Defines a single variable.final class
Defines a syntactical construction representing a map.final class
Defines the null literal.final class
Defines a numeric constant expression (e.g. "42.1").final class
Defines an expression in which an object is queried for a specific property (e.g.final class
ARuntimeCall
is a special expression which provides access to utility functions from the runtime.final class
Defines a simple string constant (e.g.final class
Defines the HTL ternary operator (e.g.final class
Defines a unary operation (e.g.Methods in org.apache.sling.scripting.sightly.compiler.expression.nodes that return ExpressionNodeModifier and TypeMethodDescriptionTernaryOperator.getCondition()
Returns the condition of this operator.TernaryOperator.getElseBranch()
Returns the "else" branch.BinaryOperation.getLeftOperand()
Returns the left operand.PropertyAccess.getProperty()
Returns the expression node identifying the accessed property.BinaryOperation.getRightOperand()
Returns the right operand.PropertyAccess.getTarget()
The object being accessed.UnaryOperation.getTarget()
Returns the target to which the operation is applied.TernaryOperator.getThenBranch()
Returns the "then" branch.Returns anExpressionNode
from the backing map.Methods in org.apache.sling.scripting.sightly.compiler.expression.nodes that return types with arguments of type ExpressionNodeModifier and TypeMethodDescriptionRuntimeCall.getArguments()
Get the nodes of the argument calls.ArrayLiteral.getItems()
Returns an unmodifiableList
containing the array's elements.MapLiteral.getMap()
Returns an unmodifiable view of the backing map.Constructors in org.apache.sling.scripting.sightly.compiler.expression.nodes with parameters of type ExpressionNodeModifierConstructorDescriptionBinaryOperation
(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 ExpressionNodeModifierConstructorDescriptionArrayLiteral
(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 -
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 ExpressionNodeMethods in org.apache.sling.scripting.sightly.impl.compiler.optimization.reduce with parameters of type ExpressionNodeModifier and TypeMethodDescriptionstatic 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 that return ExpressionNodeModifier and TypeMethodDescriptionNodeTransformer.evaluate
(ArrayLiteral arrayLiteral) NodeTransformer.evaluate
(BinaryOperation binaryOperation) NodeTransformer.evaluate
(BooleanConstant booleanConstant) NodeTransformer.evaluate
(Identifier identifier) NodeTransformer.evaluate
(MapLiteral mapLiteral) NodeTransformer.evaluate
(NullLiteral nullLiteral) NodeTransformer.evaluate
(NumericConstant numericConstant) NodeTransformer.evaluate
(PropertyAccess propertyAccess) NodeTransformer.evaluate
(RuntimeCall runtimeCall) NodeTransformer.evaluate
(StringConstant text) NodeTransformer.evaluate
(TernaryOperator ternaryOperator) NodeTransformer.evaluate
(UnaryOperation unaryOperation) final ExpressionNode
NodeTransformer.transform
(ExpressionNode node) Methods in org.apache.sling.scripting.sightly.impl.compiler.util.expression with parameters of type ExpressionNodeModifier and TypeMethodDescriptionfinal 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 ExpressionNodeModifier and TypeMethodDescriptionprotected 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 ExpressionNodeModifier and TypeFieldDescriptionSightlyParser.AndBinaryOpContext.node
SightlyParser.ComparisonTermContext.node
SightlyParser.ExprNodeContext.node
SightlyParser.FactorContext.node
SightlyParser.FieldContext.node
SightlyParser.InBinaryOpContext.node
SightlyParser.OrBinaryOpContext.node
SightlyParser.SimpleContext.node
SightlyParser.TermContext.node
SightlyParser.OptionContext.value
Fields in org.apache.sling.scripting.sightly.impl.parser.expr.generated with type parameters of type ExpressionNode -
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 ExpressionNodeMethods in org.apache.sling.scripting.sightly.impl.plugin with parameters of type ExpressionNodeModifier and TypeMethodDescriptionvoid
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) -
Uses of ExpressionNode in org.apache.sling.scripting.sightly.java.compiler.impl.operator
Methods in org.apache.sling.scripting.sightly.java.compiler.impl.operator that return ExpressionNodeConstructors in org.apache.sling.scripting.sightly.java.compiler.impl.operator with parameters of type ExpressionNodeModifierConstructorDescriptionTypedNode
(ExpressionNode node, org.apache.sling.scripting.sightly.java.compiler.impl.Type type)