Package com.dragome.compiler.ast

Examples of com.dragome.compiler.ast.SwitchCase


    switchStmt.getExpression().visit(this);
    println(") {");
    ASTNode node= switchStmt.getFirstChild();
    while (node != null)
    {
      SwitchCase sc= (SwitchCase) node;
      sc.visit(this);
      node= node.getNextSibling();
    }
    indentln("}");
  }
View Full Code Here


    switchStmt.setExpression(header.switchExpression);

    for (int i= 0; i < caseGroups.size(); i++)
    {
      Node scNode= caseGroups.get(i);
      SwitchCase switchCase= new SwitchCase(scNode.getInitialPc());
      switchCase.setExpressions(caseGroupExpressions.get(i));
      switchStmt.appendChild(switchCase);

      graph.rollOut(scNode, switchCase);
    }
View Full Code Here

TOP

Related Classes of com.dragome.compiler.ast.SwitchCase

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.