Package net.sf.jcontracts.antlr

Examples of net.sf.jcontracts.antlr.Token


    }

    public final String parameterDeclaration() throws ParserException
    {
        String result = null;
        Token id = null;
        try
        {
            if (la_1 == JavaTokenTypes.LITERAL_final)
            {
                match(JavaTokenTypes.LITERAL_final);
            }
            String t = typeSpec();
            id = LT(1);
            match(JavaTokenTypes.IDENT);
            while (la_1 == JavaTokenTypes.LBRACK)
            {
                match(JavaTokenTypes.LBRACK);
                match(JavaTokenTypes.RBRACK);
            }
            if (guessing == 0)
            {
                result = t + " " + id.getText();
            }
        }
        catch (ParserException ex)
        {
            if (guessing == 0)
View Full Code Here


        }
    }

    public final ExtendedToken statement() throws ParserException
    {
        Token cc = null;
        ExtendedToken et = (ExtendedToken) LT(1);
        TypeMetaclass outer_scope = getOuterScope();
        String outer_name = outer_scope.getName() + ".";
        Class cl = null;
        try
View Full Code Here

        return result;
    }

    public final void typeDefinition() throws ParserException
    {
        Token cc = null;
        Class cl = null;
        Interface ifa = null;
        Vector mods = null;
        try
        {
View Full Code Here

        }
    }

    public final Variable variableDeclarator() throws ParserException
    {
        Token id = null;
        Variable v = null;
        try
        {
            id = LT(1);
            match(JavaTokenTypes.IDENT);
            while (la_1 == JavaTokenTypes.LBRACK)
            {
                match(JavaTokenTypes.LBRACK);
                match(JavaTokenTypes.RBRACK);
            }
            if (la_1 == JavaTokenTypes.ASSIGN)
            {
                match(JavaTokenTypes.ASSIGN);
                initializer();
            }
            if (guessing == 0)
            {
                v = getMetaclassFactory().newVariable(id.getText(), id.getLine());
            }
        }
        catch (ParserException ex)
        {
            if (guessing == 0)
View Full Code Here

        return result;
    }

    public final void mASSIGN(boolean mustCreateToken) throws ScannerException
    {
        Token token = null;
        int begin = text.length();
        match('=');
        if (mustCreateToken)
        {
            token = makeToken(JavaTokenTypes.ASSIGN);
            token.setText(new String(text.getBuffer(), begin, text.length() - begin));
        }
        returnToken_ = token;
    }
View Full Code Here

        returnToken_ = token;
    }

    public final void mBAND(boolean mustCreateToken) throws ScannerException
    {
        Token token = null;
        int begin = text.length();
        match('&');
        if (mustCreateToken)
        {
            token = makeToken(JavaTokenTypes.BAND);
            token.setText(new String(text.getBuffer(), begin, text.length() - begin));
        }
        returnToken_ = token;
    }
View Full Code Here

        returnToken_ = token;
    }

    public final void mBAND_ASSIGN(boolean mustCreateToken) throws ScannerException
    {
        Token token = null;
        int begin = text.length();
        match("&=");
        if (mustCreateToken)
        {
            token = makeToken(JavaTokenTypes.BAND_ASSIGN);
            token.setText(new String(text.getBuffer(), begin, text.length() - begin));
        }
        returnToken_ = token;
    }
View Full Code Here

        returnToken_ = token;
    }

    public final void mBNOT(boolean mustCreateToken) throws ScannerException
    {
        Token token = null;
        int begin = text.length();
        match('~');
        if (mustCreateToken)
        {
            token = makeToken(JavaTokenTypes.BNOT);
            token.setText(new String(text.getBuffer(), begin, text.length() - begin));
        }
        returnToken_ = token;
    }
View Full Code Here

        returnToken_ = token;
    }

    public final void mBOR(boolean mustCreateToken) throws ScannerException
    {
        Token token = null;
        int begin = text.length();
        match('|');
        if (mustCreateToken)
        {
            token = makeToken(JavaTokenTypes.BOR);
            token.setText(new String(text.getBuffer(), begin, text.length() - begin));
        }
        returnToken_ = token;
    }
View Full Code Here

        returnToken_ = token;
    }

    public final void mBOR_ASSIGN(boolean mustCreateToken) throws ScannerException
    {
        Token token = null;
        int begin = text.length();
        match("|=");
        if (mustCreateToken)
        {
            token = makeToken(JavaTokenTypes.BOR_ASSIGN);
            token.setText(new String(text.getBuffer(), begin, text.length() - begin));
        }
        returnToken_ = token;
    }
View Full Code Here

TOP

Related Classes of net.sf.jcontracts.antlr.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.