Uses of Interface
cloud.opencode.base.expression.ast.Node
Packages that use Node
Package
Description
Abstract Syntax Tree Package
抽象语法树包
Expression Compiler Package
表达式编译器包
Expression Evaluation Package
表达式求值包
Expression Parser Package
表达式解析器包
-
Uses of Node in cloud.opencode.base.expression.ast
Classes in cloud.opencode.base.expression.ast that implement NodeModifier and TypeClassDescriptionfinal recordBinary Operation Node 二元运算节点final recordCollection Filter Node 集合过滤节点final recordCollection Project Node 集合投影节点final recordFunction Call Node 函数调用节点final recordIdentifier Node 标识符节点final recordIndex Access Node 索引访问节点final recordList Literal Node 列表字面量节点final recordLiteral Node 字面量节点final recordMethod Call Node 方法调用节点final recordProperty Access Node 属性访问节点final recordTernary Operation Node 三元运算节点final recordUnary Operation Node 一元运算节点Methods in cloud.opencode.base.expression.ast that return NodeModifier and TypeMethodDescriptionTernaryOpNode.condition()Returns the value of theconditionrecord 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.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.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.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.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 BinaryOpNodeCreate binary operation node 创建二元运算节点static CollectionFilterNodeCreate filter node (default: all matching elements) 创建过滤节点(默认:所有匹配元素)static CollectionProjectNodeCreate projection node 创建投影节点static FunctionCallNodeCreate function call node with single argument 创建单参数函数调用节点static IndexAccessNodeCreate standard index access 创建标准索引访问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 创建一元运算节点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 MethodCallNodeCreate method call node 创建方法调用节点static MethodCallNodeCreate method call node with null-safe option 创建带空安全选项的方法调用节点Constructors in cloud.opencode.base.expression.ast with parameters of type NodeModifierConstructorDescriptionBinaryOpNode(String operator, Node left, Node right) Creates an instance of aBinaryOpNoderecord 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.IndexAccessNode(Node target, Node index, boolean nullSafe) Creates an instance of aIndexAccessNoderecord 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.MethodCallNode(Node target, String methodName, List<Node> arguments, boolean nullSafe) Creates an instance of aMethodCallNoderecord 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 带超时求值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