Package org.adjective.syntactic.parser.jj

Examples of org.adjective.syntactic.parser.jj.Token


    }

    public ASTPrimitiveType(final BaseType baseType)
    {
        this(JavaParserTreeConstants.JJTPRIMITIVETYPE);
        final Token token = new Token();
        switch (baseType)
        {
            case BOOLEAN:
                token.image = "boolean";
                token.kind = JavaParserConstants.BOOLEAN;
View Full Code Here


        return visitor.visit(this, data);
    }

    public AssignmentOperator getOperator()
    {
        final Token token = jjtGetFirstToken();
        switch (token.kind)
        {
            case JavaParserConstants.ASSIGN:
                return AssignmentOperator.ASSIGN;
            case JavaParserConstants.STARASSIGN:
View Full Code Here

        }
    }

    public IntegerValue getValue()
    {
        final Token token = jjtGetFirstToken();
        boolean isLong = false;
        String image = token.image;
        if (image.endsWith("l") || image.endsWith("L"))
        {
            isLong = true;
View Full Code Here

    public CharSequence getDebugInfo()
    {
        StringBuilder builder = new StringBuilder(toString());
        builder.append("(@");
        final Token token = jjtGetFirstToken();
        if (token == null)
        {
            builder.append("?)");
            return builder;
        }
View Full Code Here

        }

        @Override
        public Token next()
        {
            Token tok = _next;
            if (tok == null)
            {
                throw new NoSuchElementException();
            }
            if (_next == _last)
View Full Code Here

        }
    }

    protected Token makeToken(final int kind, final String image)
    {
        final Token token = new Token();
        token.image = image;
        token.kind = kind;
        return token;
    }
View Full Code Here

        return null;
    }

    private void printSpecial(final PrintStream out, final HasTokens node)
    {
        final Token token = node.jjtGetFirstToken();
        if (token == null)
        {
            return;
        }
        for (Token special = token.specialToken; special != null; special = special.next)
View Full Code Here

        return visitor.visit(this, data);
    }

    public UnaryOperator getOperator()
    {
        final Token token = jjtGetFirstToken();
        switch (token.kind)
        {
            case JavaParserConstants.PLUS:
                return UnaryOperator.POSITIVE;
            case JavaParserConstants.MINUS:
View Full Code Here

        return visitor.visit(this, data);
    }

    public BinaryOperator getOperator()
    {
        final Token token = jjtGetFirstToken();
        switch (token.kind)
        {
            case JavaParser.EQ:
                return BinaryOperator.EQUAL;
            case JavaParser.NE:
View Full Code Here

    public ASTMethodBody(final ASTBlock block)
    {
        this(JavaParserTreeConstants.JJTMETHODBODY);
        appendChild(block);
        Token token = block.jjtGetFirstToken();
        if (token == null)
        {
            token = makeToken(JavaParserConstants.LBRACE, "{");
        }
        jjtSetFirstToken(token);
View Full Code Here

TOP

Related Classes of org.adjective.syntactic.parser.jj.Token

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.