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.commandspackage defines the API forCommandprocessing.org.apache.sling.scripting.sightly.compiler.expression Theorg.apache.sling.scripting.sightly.compiler.expressionpackage defines the API forExpressionprocessing.org.apache.sling.scripting.sightly.compiler.expression.nodes Theorg.apache.sling.scripting.sightly.compiler.expression.nodespackage exposes the variousExpressionNodetypes.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 ExpressionNodeVariableBinding.Global. getExpression()ExpressionNodeVariableBinding.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 ExpressionNodeExpression. getRoot()Get the root node of this expression.ExpressionNodeExpression. 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 ExpressionExpression. 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 interfaceAtomAnAtomdefines anExpressionNodethat 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 classArrayLiteralSyntactical structure for an array of items.classBinaryOperationA {code BinaryOperation} defines an expression where a binary operator is applied (e.g.classBooleanConstantDefines a Boolean constant (e.g.classIdentifierDefines a single variable.classMapLiteralDefines a syntactical construction representing a map.classNullLiteralDefines the null literal.classNumericConstantDefines a numeric constant expression (e.g.classPropertyAccessDefines an expression in which an object is queried for a specific property (e.g.classRuntimeCallARuntimeCallis a special expression which provides access to utility functions from the runtime.classStringConstantDefines a simple string constant (e.g.classTernaryOperatorDefines the HTL ternary operator (e.g.classUnaryOperationDefines a unary operation (e.g.Methods in org.apache.sling.scripting.sightly.compiler.expression.nodes that return ExpressionNode Modifier and Type Method Description ExpressionNodeTernaryOperator. getCondition()Returns the condition of this operator.ExpressionNodeTernaryOperator. getElseBranch()Returns the "else" branch.ExpressionNodeBinaryOperation. getLeftOperand()Returns the left operand.ExpressionNodePropertyAccess. getProperty()Returns the expression node identifying the accessed property.ExpressionNodeBinaryOperation. getRightOperand()Returns the right operand.ExpressionNodePropertyAccess. getTarget()The object being accessed.ExpressionNodeUnaryOperation. getTarget()Returns the target to which the operation is applied.ExpressionNodeTernaryOperator. getThenBranch()Returns the "then" branch.ExpressionNodeMapLiteral. getValue(String key)Returns anExpressionNodefrom 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 unmodifiableListcontaining 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 aRuntimeCallbased on afunctionNameand 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 ofExpressionNodeelements.MapLiteral(Map<String,ExpressionNode> map)Creates a map representation.RuntimeCall(String functionName, List<ExpressionNode> arguments)Creates aRuntimeCallbased on afunctionNameand 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 ExpressionNodeEvalResult. getNode()Methods in org.apache.sling.scripting.sightly.impl.compiler.optimization.reduce with parameters of type ExpressionNode Modifier and Type Method Description static EvalResultEvalResult. nonConstant(ExpressionNode node)static EvalResultExpressionReducer. 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 ExpressionNodeNodeTransformer. 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 ExpressionAbstractFilter. apply(Expression expression, Map<String,ExpressionNode> options)protected ExpressionFormatFilter. apply(Expression expression, Map<String,ExpressionNode> options)protected ExpressionI18nFilter. apply(Expression expression, Map<String,ExpressionNode> options)protected ExpressionJoinFilter. apply(Expression expression, Map<String,ExpressionNode> options)protected ExpressionURIManipulationFilter. apply(Expression expression, Map<String,ExpressionNode> options)protected ExpressionXSSFilter. 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 ExpressionNodeSightlyParser.AndBinaryOpContext. nodeExpressionNodeSightlyParser.ComparisonTermContext. nodeExpressionNodeSightlyParser.ExprNodeContext. nodeExpressionNodeSightlyParser.FactorContext. nodeExpressionNodeSightlyParser.FieldContext. nodeExpressionNodeSightlyParser.InBinaryOpContext. nodeExpressionNodeSightlyParser.OrBinaryOpContext. nodeExpressionNodeSightlyParser.SimpleContext. nodeExpressionNodeSightlyParser.TermContext. nodeExpressionNodeSightlyParser.OptionContext. valueFields 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. optionsList<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_ELEMENTSMethods in org.apache.sling.scripting.sightly.impl.plugin with parameters of type ExpressionNode Modifier and Type Method Description voidAggregatePluginInvoke. beforeAttributeValue(PushStream stream, String attributeName, ExpressionNode attributeValue)voidDefaultPluginInvoke. beforeAttributeValue(PushStream stream, String attributeName, ExpressionNode attributeValue)voidPluginInvoke. beforeAttributeValue(PushStream stream, String attributeName, ExpressionNode attributeValue)
-