Package japa.parser.ast.expr

Examples of japa.parser.ast.expr.NameExpr


    }

    final public PackageDeclaration PackageDeclaration() throws ParseException {
        List annotations = null;
        AnnotationExpr ann;
        NameExpr name;
        int line;
        int column;
        label_3: while (true) {
            switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                case AT:
View Full Code Here


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

    final public ImportDeclaration ImportDeclaration() throws ParseException {
        NameExpr name;
        boolean isStatic = false;
        boolean isAsterisk = false;
        int line;
        int column;
        jj_consume_token(IMPORT);
View Full Code Here

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

    final public NameExpr Name() throws ParseException {
        NameExpr ret;
        jj_consume_token(IDENTIFIER);
        ret = new NameExpr(token.beginLine, token.beginColumn, token.endLine, token.endColumn, token.image);
        label_23: while (true) {
            if (jj_2_17(2)) {
                ;
            } else {
                break label_23;
            }
            jj_consume_token(DOT);
            jj_consume_token(IDENTIFIER);
            ret = new QualifiedNameExpr(ret.getBeginLine(), ret.getBeginColumn(), token.endLine, token.endColumn, ret, token.image);
        }
        {
            if (true) {
                return ret;
            }
View Full Code Here

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

    final public List NameList() throws ParseException {
        List ret = new LinkedList();
        NameExpr name;
        name = Name();
        ret.add(name);
        label_24: while (true) {
            switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
                case COMMA:
View Full Code Here

                                    break;
                                default:
                                    jj_la1[85] = jj_gen;
                                    ;
                            }
                            ret = hasArgs ? new MethodCallExpr(line, column, token.endLine, token.endColumn, null, null, name, args) : new NameExpr(line, column, token.endLine, token.endColumn, name);
                            break;
                        default:
                            jj_la1[87] = jj_gen;
                            jj_consume_token(-1);
                            throw new ParseException();
View Full Code Here

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

    final public NormalAnnotationExpr NormalAnnotation() throws ParseException {
        NameExpr name;
        List pairs = null;
        int line;
        int column;
        jj_consume_token(AT);
        line = token.beginLine;
View Full Code Here

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

    final public MarkerAnnotationExpr MarkerAnnotation() throws ParseException {
        NameExpr name;
        int line;
        int column;
        jj_consume_token(AT);
        line = token.beginLine;
        column = token.beginColumn;
View Full Code Here

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

    final public SingleMemberAnnotationExpr SingleMemberAnnotation() throws ParseException {
        NameExpr name;
        Expression memberVal;
        int line;
        int column;
        jj_consume_token(AT);
        line = token.beginLine;
View Full Code Here

     *            qualified name
     * @return instanceof {@link NameExpr}
     */
    public static NameExpr createNameExpr(String qualifiedName) {
        String[] split = qualifiedName.split("\\.");
        NameExpr ret = new NameExpr(split[0]);
        for (int i = 1; i < split.length; i++) {
            ret = new QualifiedNameExpr(ret, split[i]);
        }
        return ret;
    }
View Full Code Here

  }

  @Override
  public Node visit(PackageDeclaration _n, Object _arg) {
    List<AnnotationExpr> annotations = visit(_n.getAnnotations(), _arg);
    NameExpr name = cloneNodes(_n.getName(), _arg);
    Comment comment = cloneNodes(_n.getComment(), _arg);

    PackageDeclaration r = new PackageDeclaration(
        _n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn(),
        annotations, name
View Full Code Here

TOP

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

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.