Uses of Class
com.schibsted.spt.data.jslt.impl.LetExpression
Packages that use LetExpression
Package
Description
This package contains implementation-internal interfaces and classes.
The implementation of the JSLT parser.
-
Uses of LetExpression in com.schibsted.spt.data.jslt.impl
Fields in com.schibsted.spt.data.jslt.impl declared as LetExpressionModifier and TypeFieldDescriptionprivate LetExpression[]IfExpression.elseletsprivate LetExpressionLetInfo.letprivate LetExpression[]ExpressionImpl.letsprivate LetExpression[]ForExpression.letsprivate LetExpression[]FunctionDeclaration.letsprivate LetExpression[]ObjectComprehension.letsprivate LetExpression[]ObjectExpression.letsprivate LetExpression[]IfExpression.thenletsMethods in com.schibsted.spt.data.jslt.impl that return LetExpressionModifier and TypeMethodDescriptionstatic LetExpression[]OptimizeUtils.optimizeLets(LetExpression[] lets) Removes let expressions for variables that are simply assigned to literals, because VariableExpression will inline those literals and remove itself, so there's no need to evaluate the variable.Methods in com.schibsted.spt.data.jslt.impl with parameters of type LetExpressionModifier and TypeMethodDescriptionstatic voidNodeUtils.evalLets(Scope scope, com.fasterxml.jackson.databind.JsonNode input, LetExpression[] lets) static LetExpression[]OptimizeUtils.optimizeLets(LetExpression[] lets) Removes let expressions for variables that are simply assigned to literals, because VariableExpression will inline those literals and remove itself, so there's no need to evaluate the variable.ScopeManager.registerVariable(LetExpression let) Registers a variable.Constructors in com.schibsted.spt.data.jslt.impl with parameters of type LetExpressionModifierConstructorDescriptionExpressionImpl(LetExpression[] lets, Map<String, Function> functions, ExpressionNode actual) ForExpression(ExpressionNode valueExpr, LetExpression[] lets, ExpressionNode loopExpr, ExpressionNode ifExpr, Location location) FunctionDeclaration(String name, String[] parameters, LetExpression[] lets, ExpressionNode body) IfExpression(ExpressionNode test, LetExpression[] thenlets, ExpressionNode then, LetExpression[] elselets, ExpressionNode orelse, Location location) LetInfo(LetExpression let) ObjectComprehension(ExpressionNode loop, LetExpression[] lets, ExpressionNode key, ExpressionNode value, ExpressionNode ifExpr, Location location, JsonFilter filter) ObjectExpression(LetExpression[] lets, PairExpression[] children, MatcherExpression matcher, Location location, JsonFilter filter) -
Uses of LetExpression in com.schibsted.spt.data.jslt.parser
Methods in com.schibsted.spt.data.jslt.parser that return LetExpressionModifier and TypeMethodDescriptionprivate static LetExpression[]ParserImpl.buildLets(ParseContext ctx, SimpleNode parent)