Package japa.parser.ast.expr

Examples of japa.parser.ast.expr.Expression


        }
        throw new Error("Missing return statement in function");
    }

    final public Expression PreDecrementExpression() throws ParseException {
        Expression ret;
        int line;
        int column;
        jj_consume_token(DECR);
        line = token.beginLine;
        column = token.beginColumn;
View Full Code Here


        }
        throw new Error("Missing return statement in function");
    }

    final public Expression UnaryExpressionNotPlusMinus() throws ParseException {
        Expression ret;
        UnaryExpr.Operator op;
        int line = 0;
        int column = 0;
        switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
            case BANG:
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression PostfixExpression() throws ParseException {
        Expression ret;
        UnaryExpr.Operator op;
        ret = PrimaryExpression();
        if (jj_2_23(2)) {
            switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                case INCR:
                    jj_consume_token(INCR);
                    op = UnaryExpr.Operator.posIncrement;
                    break;
                case DECR:
                    jj_consume_token(DECR);
                    op = UnaryExpr.Operator.posDecrement;
                    break;
                default:
                    jj_la1[81] = jj_gen;
                    jj_consume_token(-1);
                    throw new ParseException();
            }
            ret = new UnaryExpr(ret.getBeginLine(), ret.getBeginColumn(), token.endLine, token.endColumn, ret, op);
        } else {
            ;
        }
        {
            if (true) {
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression CastExpression() throws ParseException {
        Expression ret;
        Type type;
        int line;
        int column;
        jj_consume_token(LPAREN);
        line = token.beginLine;
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression PrimaryExpression() throws ParseException {
        Expression ret;
        Expression inner;
        ret = PrimaryPrefix();
        label_35: while (true) {
            if (jj_2_25(2)) {
                ;
            } else {
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression PrimaryExpressionWithoutSuperSuffix() throws ParseException {
        Expression ret;
        Expression inner;
        ret = PrimaryPrefix();
        label_36: while (true) {
            if (jj_2_26(2147483647)) {
                ;
            } else {
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression PrimaryPrefix() throws ParseException {
        Expression ret;
        String name;
        List typeArgs = null;
        List args = null;
        boolean hasArgs = false;
        Type type;
        int line;
        int column;
        switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
            case FALSE:
            case NULL:
            case TRUE:
            case LONG_LITERAL:
            case INTEGER_LITERAL:
            case FLOATING_POINT_LITERAL:
            case CHARACTER_LITERAL:
            case STRING_LITERAL:
                ret = Literal();
                break;
            case THIS:
                jj_consume_token(THIS);
                ret = new ThisExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, null);
                break;
            case SUPER:
                jj_consume_token(SUPER);
                ret = new SuperExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, null);
                jj_consume_token(DOT);
                switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                    case LT:
                        typeArgs = TypeArguments();
                        typeArgs.remove(0);
                        break;
                    default:
                        jj_la1[83] = jj_gen;
                        ;
                }
                jj_consume_token(IDENTIFIER);
                name = token.image;
                switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                    case LPAREN:
                        args = Arguments();
                        hasArgs = true;
                        break;
                    default:
                        jj_la1[84] = jj_gen;
                        ;
                }
                ret = hasArgs ? new MethodCallExpr(ret.getBeginLine(), ret.getBeginColumn(), token.endLine, token.endColumn, ret, typeArgs, name, args) : new FieldAccessExpr(ret.getBeginLine(), ret.getBeginColumn(), token.endLine, token.endColumn, ret, null, name);
                break;
            case LPAREN:
                jj_consume_token(LPAREN);
                line = token.beginLine;
                column = token.beginColumn;
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression PrimarySuffix(Expression scope) throws ParseException {
        Expression ret;
        if (jj_2_28(2)) {
            ret = PrimarySuffixWithoutSuper(scope);
        } else {
            switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                case DOT:
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression PrimarySuffixWithoutSuper(Expression scope) throws ParseException {
        Expression ret;
        List typeArgs = null;
        List args = null;
        boolean hasArgs = false;
        String name;
        switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
View Full Code Here

        }
        throw new Error("Missing return statement in function");
    }

    final public Expression Literal() throws ParseException {
        Expression ret;
        switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
            case INTEGER_LITERAL:
                jj_consume_token(INTEGER_LITERAL);
                ret = new IntegerLiteralExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, token.image);
                break;
View Full Code Here

TOP

Related Classes of japa.parser.ast.expr.Expression

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.