Uses of Interface
cloud.opencode.base.expression.ast.Node
Packages that use Node
Package
Description
OpenCode Expression Engine Package
OpenCode 表达式引擎包
Abstract Syntax Tree Package
抽象语法树包
Expression Compiler Package
表达式编译器包
Expression Evaluation Package
表达式求值包
Expression Parser Package
表达式解析器包
-
Uses of Node in cloud.opencode.base.expression
Methods in cloud.opencode.base.expression with parameters of type NodeModifier and TypeMethodDescriptiondefault voidEvaluationListener.afterEvaluate(Node node, EvaluationContext context, Object result) Called after a node is successfully evaluated 节点成功求值后调用default voidEvaluationListener.beforeEvaluate(Node node, EvaluationContext context) Called before a node is evaluated 节点求值前调用Extract variable names from a pre-parsed AST node 从预解析的AST节点中提取变量名default voidEvaluationListener.onError(Node node, EvaluationContext context, Exception error) Called when an error occurs during node evaluation 节点求值过程中发生错误时调用 -
Uses of Node in cloud.opencode.base.expression.ast
Classes in cloud.opencode.base.expression.ast that implement NodeModifier and TypeClassDescriptionfinal recordRange Test Node 范围测试节点final recordBinary Operation Node 二元运算节点final recordBitwise Operation Node 位运算节点final recordCollection Filter Node 集合过滤节点final recordCollection Project Node 集合投影节点final recordElvis/Null-Coalescing Operation Node Elvis/空值合并运算节点final recordFunction Call Node 函数调用节点final recordIdentifier Node 标识符节点final recordIndex Access Node 索引访问节点final recordMembership Test Node 成员测试节点final recordLambda Expression Node Lambda 表达式节点final recordList Literal Node 列表字面量节点final recordLiteral Node 字面量节点final recordMap Literal Node Map 字面量节点final recordMethod Call Node 方法调用节点final recordProperty Access Node 属性访问节点final recordString Interpolation Node 字符串插值节点final recordTernary Operation Node 三元运算节点final recordUnary Operation Node 一元运算节点Methods in cloud.opencode.base.expression.ast that return NodeModifier and TypeMethodDescriptionLambdaNode.body()Returns the value of thebodyrecord component.InNode.collection()Returns the value of thecollectionrecord component.TernaryOpNode.condition()Returns the value of theconditionrecord component.ElvisNode.defaultValue()Returns the value of thedefaultValuerecord component.TernaryOpNode.falseValue()Returns the value of thefalseValuerecord component.IndexAccessNode.index()Returns the value of theindexrecord component.BinaryOpNode.left()Returns the value of theleftrecord component.BitwiseOpNode.left()Returns the value of theleftrecord component.BetweenNode.lower()Returns the value of thelowerrecord component.UnaryOpNode.operand()Returns the value of theoperandrecord component.CollectionFilterNode.predicate()Returns the value of thepredicaterecord component.CollectionProjectNode.projection()Returns the value of theprojectionrecord component.BinaryOpNode.right()Returns the value of therightrecord component.BitwiseOpNode.right()Returns the value of therightrecord component.CollectionFilterNode.target()Returns the value of thetargetrecord component.CollectionProjectNode.target()Returns the value of thetargetrecord component.IndexAccessNode.target()Returns the value of thetargetrecord component.MethodCallNode.target()Returns the value of thetargetrecord component.PropertyAccessNode.target()Returns the value of thetargetrecord component.TernaryOpNode.trueValue()Returns the value of thetrueValuerecord component.BetweenNode.upper()Returns the value of theupperrecord component.BetweenNode.value()Returns the value of thevaluerecord component.ElvisNode.value()Returns the value of thevaluerecord component.InNode.value()Returns the value of thevaluerecord component.Methods in cloud.opencode.base.expression.ast that return types with arguments of type NodeModifier and TypeMethodDescriptionFunctionCallNode.arguments()Returns the value of theargumentsrecord component.MethodCallNode.arguments()Returns the value of theargumentsrecord component.ListLiteralNode.elements()Returns the value of theelementsrecord component.MapLiteralNode.entries()Returns the value of theentriesrecord component.MapLiteralNode.entries()Returns the value of theentriesrecord component.StringInterpolationNode.parts()Returns the value of thepartsrecord component.Methods in cloud.opencode.base.expression.ast with parameters of type NodeModifier and TypeMethodDescriptionstatic CollectionFilterNodeCreate filter node for all matching elements 创建选择所有匹配元素的过滤节点static CollectionFilterNodeCreate filter node for first matching element 创建选择第一个匹配元素的过滤节点static CollectionFilterNodeCreate filter node for last matching element 创建选择最后一个匹配元素的过滤节点static IndexAccessNodeCreate null-safe index access 创建空安全索引访问static MethodCallNodeCreate null-safe method call node 创建空安全方法调用节点static PropertyAccessNodeCreate null-safe property access 创建空安全属性访问static BetweenNodeCreate range test node 创建范围测试节点static BinaryOpNodeCreate binary operation node 创建二元运算节点static BitwiseOpNodeCreate binary bitwise operation node 创建二元位运算节点static CollectionFilterNodeCreate filter node (default: all matching elements) 创建过滤节点(默认:所有匹配元素)static CollectionProjectNodeCreate projection node 创建投影节点static ElvisNodeCreate elvis operation node 创建 elvis 运算节点static FunctionCallNodeCreate function call node with single argument 创建单参数函数调用节点static IndexAccessNodeCreate standard index access 创建标准索引访问static InNodeCreate membership test node 创建成员测试节点static LambdaNodeCreate lambda expression node 创建 Lambda 表达式节点static ListLiteralNodeCreate list literal node from varargs 从可变参数创建列表字面量节点static MethodCallNodeCreate method call node 创建方法调用节点static MethodCallNodeCreate method call node with null-safe option 创建带空安全选项的方法调用节点static PropertyAccessNodeCreate standard property access 创建标准属性访问static PropertyAccessNodeCreate property access with null-safe option 创建带空安全选项的属性访问static TernaryOpNodeCreate ternary operation node 创建三元运算节点static UnaryOpNodeCreate unary operation node 创建一元运算节点static BitwiseOpNodeCreate unary bitwise NOT node 创建一元位取反节点Method parameters in cloud.opencode.base.expression.ast with type arguments of type NodeModifier and TypeMethodDescriptionstatic MethodCallNodeCreate null-safe method call node 创建空安全方法调用节点static FunctionCallNodeCreate function call node 创建函数调用节点static ListLiteralNodeCreate list literal node 创建列表字面量节点static MapLiteralNodeCreate map literal node 创建 Map 字面量节点static MapLiteralNodeCreate map literal node 创建 Map 字面量节点static MethodCallNodeCreate method call node 创建方法调用节点static MethodCallNodeCreate method call node with null-safe option 创建带空安全选项的方法调用节点static StringInterpolationNodeCreate string interpolation node 创建字符串插值节点Constructors in cloud.opencode.base.expression.ast with parameters of type NodeModifierConstructorDescriptionBetweenNode(Node value, Node lower, Node upper) Creates an instance of aBetweenNoderecord class.BinaryOpNode(String operator, Node left, Node right) Creates an instance of aBinaryOpNoderecord class.BitwiseOpNode(String operator, Node left, Node right) Creates an instance of aBitwiseOpNoderecord class.CollectionFilterNode(Node target, Node predicate, CollectionFilterNode.FilterMode mode) Creates an instance of aCollectionFilterNoderecord class.CollectionProjectNode(Node target, Node projection) Creates an instance of aCollectionProjectNoderecord class.Creates an instance of aElvisNoderecord class.IndexAccessNode(Node target, Node index, boolean nullSafe) Creates an instance of aIndexAccessNoderecord class.Creates an instance of aInNoderecord class.LambdaNode(String parameter, Node body) Creates an instance of aLambdaNoderecord class.MethodCallNode(Node target, String methodName, List<Node> arguments, boolean nullSafe) Creates an instance of aMethodCallNoderecord class.PropertyAccessNode(Node target, String property, boolean nullSafe) Creates an instance of aPropertyAccessNoderecord class.TernaryOpNode(Node condition, Node trueValue, Node falseValue) Creates an instance of aTernaryOpNoderecord class.UnaryOpNode(String operator, Node operand) Creates an instance of aUnaryOpNoderecord class.Constructor parameters in cloud.opencode.base.expression.ast with type arguments of type NodeModifierConstructorDescriptionFunctionCallNode(String functionName, List<Node> arguments) Creates an instance of aFunctionCallNoderecord class.ListLiteralNode(List<Node> elements) Creates an instance of aListLiteralNoderecord class.MapLiteralNode(List<Map.Entry<Node, Node>> entries) Creates an instance of aMapLiteralNoderecord class.MapLiteralNode(List<Map.Entry<Node, Node>> entries) Creates an instance of aMapLiteralNoderecord class.MethodCallNode(Node target, String methodName, List<Node> arguments, boolean nullSafe) Creates an instance of aMethodCallNoderecord class.StringInterpolationNode(List<Node> parts) Creates an instance of aStringInterpolationNoderecord class. -
Uses of Node in cloud.opencode.base.expression.compiler
Methods in cloud.opencode.base.expression.compiler that return NodeModifier and TypeMethodDescriptionOptimizer.foldConstants(Node node) Constant Folding 常量折叠CompiledExpression.getAst()Get the AST root node 获取AST根节点Optimize an AST node 优化 AST 节点Optimizer.optimizeShortCircuit(Node node) Short-Circuit Optimization 短路优化Methods in cloud.opencode.base.expression.compiler with parameters of type NodeModifier and TypeMethodDescriptionOptimizer.foldConstants(Node node) Constant Folding 常量折叠Optimize an AST node 优化 AST 节点Optimizer.optimizeShortCircuit(Node node) Short-Circuit Optimization 短路优化 -
Uses of Node in cloud.opencode.base.expression.eval
Methods in cloud.opencode.base.expression.eval with parameters of type NodeModifier and TypeMethodDescriptiondefault booleanEvaluator.canEvaluate(Node node) Check if this evaluator can evaluate the given node 检查此求值器是否可以求值给定节点static ObjectAstEvaluator.eval(Node node, EvaluationContext context) Static method to evaluate expression 静态方法求值表达式AstEvaluator.evaluate(Node node, EvaluationContext context) Evaluator.evaluate(Node node, EvaluationContext context) Evaluate an AST node 求值 AST 节点default <T> TEvaluator.evaluate(Node node, EvaluationContext context, Class<T> targetType) Evaluate an AST node with type conversion 求值 AST 节点并转换类型booleanAstEvaluator.evaluateAsBoolean(Node node, EvaluationContext context) Evaluate node and expect boolean result 求值节点并期望布尔结果AstEvaluator.evaluateAsNumber(Node node, EvaluationContext context) Evaluate node and expect number result 求值节点并期望数字结果AstEvaluator.evaluateAsString(Node node, EvaluationContext context) Evaluate node and expect string result 求值节点并期望字符串结果AstEvaluator.evaluateWithTimeout(Node node, EvaluationContext context, long timeoutMs) Evaluate with timeout (post-hoc detection) 带超时求值(事后检测)Method parameters in cloud.opencode.base.expression.eval with type arguments of type NodeModifier and TypeMethodDescriptionAstEvaluator.evaluateAll(List<Node> nodes, EvaluationContext context) Evaluate a list of nodes 求值节点列表 -
Uses of Node in cloud.opencode.base.expression.parser
Methods in cloud.opencode.base.expression.parser that return Node