Package org.eclipse.jdt.internal.compiler.ast

Examples of org.eclipse.jdt.internal.compiler.ast.CaseStatement


}
protected void consumeCaseLabel() {
  // SwitchLabel ::= 'case' ConstantExpression ':'
  this.expressionLengthPtr--;
  Expression expression = this.expressionStack[this.expressionPtr--];
  CaseStatement caseStatement = new CaseStatement(expression, expression.sourceEnd, this.intStack[this.intPtr--]);
  // Look for $fall-through$ tag in leading comment for case statement
  if (hasLeadingTagComment(FALL_THROUGH_TAG, caseStatement.sourceStart)) {
    caseStatement.bits |= ASTNode.DocumentedFallthrough;
  }
  pushOnAstStack(caseStatement);
View Full Code Here


protected void consumeCreateInitializer() {
  pushOnAstStack(new Initializer(null, 0));
}
protected void consumeDefaultLabel() {
  // SwitchLabel ::= 'default' ':'
  CaseStatement defaultStatement = new CaseStatement(null, this.intStack[this.intPtr--], this.intStack[this.intPtr--]);
  // Look for $fall-through$ and $CASES-OMITTED$ tags in leading comment for case statement
  if (hasLeadingTagComment(FALL_THROUGH_TAG, defaultStatement.sourceStart)) {
    defaultStatement.bits |= ASTNode.DocumentedFallthrough;
  }
  if (hasLeadingTagComment(CASES_OMITTED_TAG, defaultStatement.sourceStart)) {
View Full Code Here

                switchStatement.statements,
                0,
                length);
            }
          }
          CaseStatement caseStatement = new CaseStatement(expression, expression.sourceStart, expression.sourceEnd);
          if(switchStatement.statements == null) {
            switchStatement.statements = new Statement[]{caseStatement};
          } else {
            switchStatement.statements[switchStatement.statements.length - 1] = caseStatement;
          }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.ast.CaseStatement

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.