Package antlr.collections

Examples of antlr.collections.AST


    }

    public final void parameterDef(AST _t) throws RecognitionException
    {

        AST parameterDef_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t392 = _t;
            AST tmp66_AST_in = (AST) _t;
            match( _t,
                   PARAMETER_DEF );
            _t = _t.getFirstChild();
            modifiers( _t );
            _t = _retTree;
            typeSpec( _t );
            _t = _retTree;
            AST tmp67_AST_in = (AST) _t;
            match( _t,
                   IDENT );
            _t = _t.getNextSibling();
            _t = __t392;
            _t = _t.getNextSibling();
View Full Code Here


    }

    public final void objectinitializer(AST _t) throws RecognitionException
    {

        AST objectinitializer_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t394 = _t;
            AST tmp68_AST_in = (AST) _t;
            match( _t,
                   INSTANCE_INIT );
            _t = _t.getFirstChild();
            slist( _t );
            _t = _retTree;
View Full Code Here

    }

    public final void initializer(AST _t) throws RecognitionException
    {

        AST initializer_AST_in = (AST) _t;

        try
        { // for error handling
            if ( _t == null ) _t = ASTNULL;
            switch ( _t.getType() )
View Full Code Here

    }

    public final void expression(AST _t) throws RecognitionException
    {

        AST expression_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t468 = _t;
            AST tmp69_AST_in = (AST) _t;
            match( _t,
                   EXPR );
            _t = _t.getFirstChild();
            expr( _t );
            _t = _retTree;
View Full Code Here

    }

    public final void arrayInitializer(AST _t) throws RecognitionException
    {

        AST arrayInitializer_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t400 = _t;
            AST tmp70_AST_in = (AST) _t;
            match( _t,
                   ARRAY_INIT );
            _t = _t.getFirstChild();
            {
                _loop402 : do
View Full Code Here

    }

    public final void throwsClause(AST _t) throws RecognitionException
    {

        AST throwsClause_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t409 = _t;
            AST tmp71_AST_in = (AST) _t;
            match( _t,
                   LITERAL_throws );
            _t = _t.getFirstChild();
            {
                _loop411 : do
View Full Code Here

    }

    public final void ctorCall(AST _t) throws RecognitionException
    {

        AST ctorCall_AST_in = (AST) _t;

        try
        { // for error handling
            if ( _t == null ) _t = ASTNULL;
            switch ( _t.getType() )
            {
                case CTOR_CALL :
                {
                    AST __t524 = _t;
                    AST tmp72_AST_in = (AST) _t;
                    match( _t,
                           CTOR_CALL );
                    _t = _t.getFirstChild();
                    elist( _t );
                    _t = _retTree;
                    _t = __t524;
                    _t = _t.getNextSibling();
                    break;
                }
                case SUPER_CTOR_CALL :
                {
                    AST __t525 = _t;
                    AST tmp73_AST_in = (AST) _t;
                    match( _t,
                           SUPER_CTOR_CALL );
                    _t = _t.getFirstChild();
                    {
                        if ( _t == null ) _t = ASTNULL;
View Full Code Here

    }

    public final void stat(AST _t) throws RecognitionException
    {

        AST stat_AST_in = (AST) _t;

        try
        { // for error handling
            if ( _t == null ) _t = ASTNULL;
            switch ( _t.getType() )
            {
                case CLASS_DEF :
                case INTERFACE_DEF :
                {
                    typeDefinition( _t );
                    _t = _retTree;
                    break;
                }
                case VARIABLE_DEF :
                {
                    variableDef( _t );
                    _t = _retTree;
                    break;
                }
                case EXPR :
                {
                    expression( _t );
                    _t = _retTree;
                    break;
                }
                case LABELED_STAT :
                {
                    AST __t427 = _t;
                    AST tmp74_AST_in = (AST) _t;
                    match( _t,
                           LABELED_STAT );
                    _t = _t.getFirstChild();
                    AST tmp75_AST_in = (AST) _t;
                    match( _t,
                           IDENT );
                    _t = _t.getNextSibling();
                    stat( _t );
                    _t = _retTree;
                    _t = __t427;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_if :
                {
                    AST __t428 = _t;
                    AST tmp76_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_if );
                    _t = _t.getFirstChild();
                    expression( _t );
                    _t = _retTree;
                    stat( _t );
                    _t = _retTree;
                    {
                        if ( _t == null ) _t = ASTNULL;
                        switch ( _t.getType() )
                        {
                            case SLIST :
                            case VARIABLE_DEF :
                            case CLASS_DEF :
                            case INTERFACE_DEF :
                            case LABELED_STAT :
                            case EXPR :
                            case EMPTY_STAT :
                            case LITERAL_synchronized :
                            case LITERAL_if :
                            case LITERAL_for :
                            case LITERAL_while :
                            case LITERAL_do :
                            case LITERAL_break :
                            case LITERAL_continue :
                            case LITERAL_return :
                            case LITERAL_switch :
                            case LITERAL_throw :
                            case LITERAL_try :
                            {
                                stat( _t );
                                _t = _retTree;
                                break;
                            }
                            case 3 :
                            {
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t428;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_for :
                {
                    AST __t430 = _t;
                    AST tmp77_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_for );
                    _t = _t.getFirstChild();
                    AST __t431 = _t;
                    AST tmp78_AST_in = (AST) _t;
                    match( _t,
                           FOR_INIT );
                    _t = _t.getFirstChild();
                    {
                        if ( _t == null ) _t = ASTNULL;
                        switch ( _t.getType() )
                        {
                            case VARIABLE_DEF :
                            {
                                variableDef( _t );
                                _t = _retTree;
                                break;
                            }
                            case ELIST :
                            {
                                elist( _t );
                                _t = _retTree;
                                break;
                            }
                            case 3 :
                            {
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t431;
                    _t = _t.getNextSibling();
                    AST __t433 = _t;
                    AST tmp79_AST_in = (AST) _t;
                    match( _t,
                           FOR_CONDITION );
                    _t = _t.getFirstChild();
                    {
                        if ( _t == null ) _t = ASTNULL;
                        switch ( _t.getType() )
                        {
                            case EXPR :
                            {
                                expression( _t );
                                _t = _retTree;
                                break;
                            }
                            case 3 :
                            {
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t433;
                    _t = _t.getNextSibling();
                    AST __t435 = _t;
                    AST tmp80_AST_in = (AST) _t;
                    match( _t,
                           FOR_ITERATOR );
                    _t = _t.getFirstChild();
                    {
                        if ( _t == null ) _t = ASTNULL;
                        switch ( _t.getType() )
                        {
                            case ELIST :
                            {
                                elist( _t );
                                _t = _retTree;
                                break;
                            }
                            case 3 :
                            {
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t435;
                    _t = _t.getNextSibling();
                    stat( _t );
                    _t = _retTree;
                    _t = __t430;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_while :
                {
                    AST __t437 = _t;
                    AST tmp81_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_while );
                    _t = _t.getFirstChild();
                    expression( _t );
                    _t = _retTree;
                    stat( _t );
                    _t = _retTree;
                    _t = __t437;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_do :
                {
                    AST __t438 = _t;
                    AST tmp82_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_do );
                    _t = _t.getFirstChild();
                    stat( _t );
                    _t = _retTree;
                    expression( _t );
                    _t = _retTree;
                    _t = __t438;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_break :
                {
                    AST __t439 = _t;
                    AST tmp83_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_break );
                    _t = _t.getFirstChild();
                    {
                        if ( _t == null ) _t = ASTNULL;
                        switch ( _t.getType() )
                        {
                            case IDENT :
                            {
                                AST tmp84_AST_in = (AST) _t;
                                match( _t,
                                       IDENT );
                                _t = _t.getNextSibling();
                                break;
                            }
                            case 3 :
                            {
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t439;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_continue :
                {
                    AST __t441 = _t;
                    AST tmp85_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_continue );
                    _t = _t.getFirstChild();
                    {
                        if ( _t == null ) _t = ASTNULL;
                        switch ( _t.getType() )
                        {
                            case IDENT :
                            {
                                AST tmp86_AST_in = (AST) _t;
                                match( _t,
                                       IDENT );
                                _t = _t.getNextSibling();
                                break;
                            }
                            case 3 :
                            {
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t441;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_return :
                {
                    AST __t443 = _t;
                    AST tmp87_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_return );
                    _t = _t.getFirstChild();
                    {
                        if ( _t == null ) _t = ASTNULL;
                        switch ( _t.getType() )
                        {
                            case EXPR :
                            {
                                expression( _t );
                                _t = _retTree;
                                break;
                            }
                            case 3 :
                            {
                                break;
                            }
                            default :
                            {
                                throw new NoViableAltException( _t );
                            }
                        }
                    }
                    _t = __t443;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_switch :
                {
                    AST __t445 = _t;
                    AST tmp88_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_switch );
                    _t = _t.getFirstChild();
                    expression( _t );
                    _t = _retTree;
                    {
                        _loop447 : do
                        {
                            if ( _t == null ) _t = ASTNULL;
                            if ( (_t.getType() == CASE_GROUP) )
                            {
                                caseGroup( _t );
                                _t = _retTree;
                            }
                            else
                            {
                                break _loop447;
                            }

                        }
                        while ( true );
                    }
                    _t = __t445;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_throw :
                {
                    AST __t448 = _t;
                    AST tmp89_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_throw );
                    _t = _t.getFirstChild();
                    expression( _t );
                    _t = _retTree;
                    _t = __t448;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_synchronized :
                {
                    AST __t449 = _t;
                    AST tmp90_AST_in = (AST) _t;
                    match( _t,
                           LITERAL_synchronized );
                    _t = _t.getFirstChild();
                    expression( _t );
                    _t = _retTree;
                    stat( _t );
                    _t = _retTree;
                    _t = __t449;
                    _t = _t.getNextSibling();
                    break;
                }
                case LITERAL_try :
                {
                    tryBlock( _t );
                    _t = _retTree;
                    break;
                }
                case SLIST :
                {
                    slist( _t );
                    _t = _retTree;
                    break;
                }
                case EMPTY_STAT :
                {
                    AST tmp91_AST_in = (AST) _t;
                    match( _t,
                           EMPTY_STAT );
                    _t = _t.getNextSibling();
                    break;
                }
View Full Code Here

    }

    public final void elist(AST _t) throws RecognitionException
    {

        AST elist_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t464 = _t;
            AST tmp92_AST_in = (AST) _t;
            match( _t,
                   ELIST );
            _t = _t.getFirstChild();
            {
                _loop466 : do
View Full Code Here

    }

    public final void caseGroup(AST _t) throws RecognitionException
    {

        AST caseGroup_AST_in = (AST) _t;

        try
        { // for error handling
            AST __t451 = _t;
            AST tmp93_AST_in = (AST) _t;
            match( _t,
                   CASE_GROUP );
            _t = _t.getFirstChild();
            {
                int _cnt454 = 0;
                _loop454 : do
                {
                    if ( _t == null ) _t = ASTNULL;
                    switch ( _t.getType() )
                    {
                        case LITERAL_case :
                        {
                            AST __t453 = _t;
                            AST tmp94_AST_in = (AST) _t;
                            match( _t,
                                   LITERAL_case );
                            _t = _t.getFirstChild();
                            expression( _t );
                            _t = _retTree;
                            _t = __t453;
                            _t = _t.getNextSibling();
                            break;
                        }
                        case LITERAL_default :
                        {
                            AST tmp95_AST_in = (AST) _t;
                            match( _t,
                                   LITERAL_default );
                            _t = _t.getNextSibling();
                            break;
                        }
View Full Code Here

TOP

Related Classes of antlr.collections.AST

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.