Package org.jruby.ast

Examples of org.jruby.ast.CallNoArgNode


    }

    public Node getOperatorCallNode(Node firstNode, String operator) {
        checkExpression(firstNode);

        return new CallNoArgNode(firstNode.getPosition(), firstNode, operator);
    }
View Full Code Here


       
        if (receiver == null) receiver = NilImplicitNode.NIL;
       
        if (iter != null) return new CallNoArgBlockNode(position, receiver, (String) name.getValue(), iter);
       
        return new CallNoArgNode(position, receiver, (String) name.getValue());
    }
View Full Code Here

        switch (args.size()) {
            case 0:
                if (iter != null) return new CallNoArgBlockNode(union(receiver, args), receiver, (String) name.getValue(), args, (IterNode) iter);
                   
                return new CallNoArgNode(union(receiver, args), receiver, args, (String) name.getValue());
            case 1:
                if (iter != null) return new CallOneArgBlockNode(union(receiver, args), receiver, (String) name.getValue(), args, (IterNode) iter);
               
                return new CallOneArgNode(union(receiver, args), receiver, (String) name.getValue(), args);
            case 2:
View Full Code Here

    }

    public Node getOperatorCallNode(Node firstNode, String operator) {
        checkExpression(firstNode);

        return new CallNoArgNode(firstNode.getPosition(), firstNode, operator);
    }
View Full Code Here

       
        if (receiver == null) receiver = NilImplicitNode.NIL;
       
        if (iter != null) return new CallNoArgBlockNode(position, receiver, (String) name.getValue(), iter);
       
        return new CallNoArgNode(position, receiver, (String) name.getValue());
    }
View Full Code Here

        switch (args.size()) {
            case 0:
                if (iter != null) return new CallNoArgBlockNode(position(receiver, args), receiver, (String) name.getValue(), args, (IterNode) iter);
                   
                return new CallNoArgNode(position(receiver, args), receiver, args, (String) name.getValue());
            case 1:
                if (iter != null) return new CallOneArgBlockNode(position(receiver, args), receiver, (String) name.getValue(), args, (IterNode) iter);

                return new CallOneArgNode(position(receiver, args), receiver, (String) name.getValue(), args);
            case 2:
View Full Code Here

TOP

Related Classes of org.jruby.ast.CallNoArgNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.