Package gcc.generator

Examples of gcc.generator.JCaseStatement


        return _switchExpr;
    }

    public JCaseStatement getCase( JExpression e )
    {
        JCaseStatement rc = null;
        int index = _caseStatements.indexOf( e );

        if (index >= 0)
        {
            rc = (JCaseStatement)_caseStatements.get( index );
View Full Code Here


        return rc;
    }

    public JCaseStatement newCase( JExpression e )
    {
        JCaseStatement rc = getCase( e );

        if (rc == null)
        {
            rc = new JCaseStatement( e );
            _caseStatements.add(rc);
        }

        return rc;
    }
View Full Code Here

        return rc;
    }

    public void addCaseStatement( JExpression e, JStatement s )
    {
        JCaseStatement cs = getCase( e );

        if (cs == null)
        {
            cs = newCase( e );
        }

        cs.addStatement( s );
    }
View Full Code Here

TOP

Related Classes of gcc.generator.JCaseStatement

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.