public BaseNode rewriteToUnaryEqInExpr(BaseNode node) { if (node instanceof ListNode || node instanceof RangeNode) { return ASTBuilderFactory.newUnaryTestNode( node.getParserRuleContext(), "in", node); } else { return ASTBuilderFactory.newUnaryTestNode( node.getParserRuleContext(), "=", node); } }
private BaseNode rewriteToUnaryTestExpr(BaseNode node) { return ASTBuilderFactory.newUnaryTestNode( node.getParserRuleContext(), "test", node); }
@Override public BaseNode visitPositiveUnaryTestIneq(FEEL_1_1Parser.PositiveUnaryTestIneqContext ctx) { BaseNode value = visit( ctx.endpoint() ); String op = ctx.op.getText(); return ASTBuilderFactory.newUnaryTestNode( ctx, op, value ); }
public UnaryTestListNode(ParserRuleContext ctx, List<BaseNode> elements, State state) { super(ctx); this.elements = elements; this.state = state; if (isNegated()) { notNode = ASTBuilderFactory.newUnaryTestNode(ctx, "not", ASTBuilderFactory.newListNode(ctx, elements)); } }
return ASTBuilderFactory.newUnaryTestNode( ctx, "not", params ); } else if( param instanceof BooleanNode ) { return ASTBuilderFactory.newFunctionInvocationNode( ctx, name, params ); return ASTBuilderFactory.newFunctionInvocationNode(ctx, name, params); } else if( param instanceof RangeNode ) { return ASTBuilderFactory.newUnaryTestNode( ctx, "not", params ); } else if( param instanceof DashNode ) { return ASTBuilderFactory.newUnaryTestNode( ctx, "not", params ); } else { return ASTBuilderFactory.newUnaryTestNode( ctx, "not", params ); return ASTBuilderFactory.newUnaryTestNode( ctx, "not", params );