Package org.eclipse.jdt.internal.compiler.codegen

Examples of org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel


    // there is no exception table, so we need to offset by 2 the current offset and move
    // on the attribute generation
    this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
    this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = exceptionLabels[i];
      if (exceptionLabel != null) {
        int iRange = 0, maxRange = exceptionLabel.getCount();
        if ((maxRange & 1) != 0) {
          this.codeStream.methodDeclaration.scope.problemReporter().abortDueToInternalError(
              Messages.bind(Messages.abort_invalidExceptionAttribute, new String(this.codeStream.methodDeclaration.selector)),
              this.codeStream.methodDeclaration);
        }
View Full Code Here


    // there is no exception table, so we need to offset by 2 the current offset and move
    // on the attribute generation
    this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
    this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = exceptionLabels[i];
      if (exceptionLabel != null) {
        int iRange = 0, maxRange = exceptionLabel.getCount();
        if ((maxRange & 1) != 0) {
          this.codeStream.methodDeclaration.scope.problemReporter().abortDueToInternalError(
              Messages.bind(Messages.abort_invalidExceptionAttribute, new String(this.codeStream.methodDeclaration.selector)),
              this.codeStream.methodDeclaration);
        }
View Full Code Here

      // there is no exception table, so we need to offset by 2 the current offset and move
      // on the attribute generation
      this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
      this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
      for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
        ExceptionLabel exceptionLabel = exceptionLabels[i];
        if (exceptionLabel != null) {
          int iRange = 0, maxRange = exceptionLabel.getCount();
          if ((maxRange & 1) != 0) {
            this.referenceBinding.scope.problemReporter().abortDueToInternalError(
                Messages.bind(Messages.abort_invalidExceptionAttribute, new String(binding.selector),
                    this.referenceBinding.scope.problemReporter().referenceContext));
          }
View Full Code Here

    // there is no exception table, so we need to offset by 2 the current offset and move
    // on the attribute generation
    this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
    this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = exceptionLabels[i];
      if (exceptionLabel != null) {
        int iRange = 0, maxRange = exceptionLabel.getCount();
        if ((maxRange & 1) != 0) {
          if (this.codeStream.methodDeclaration != null) {
            this.codeStream.methodDeclaration.scope.problemReporter().abortDueToInternalError(
                Messages.bind(Messages.abort_invalidExceptionAttribute, new String(this.codeStream.methodDeclaration.selector)),
                this.codeStream.methodDeclaration);
View Full Code Here

      declaration.getAllAnnotationContexts(targetType, localVariable, allTypeAnnotationContexts);
    }
   
    ExceptionLabel[] exceptionLabels = this.codeStream.exceptionLabels;
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = exceptionLabels[i];
      if (exceptionLabel.exceptionTypeReference != null && (exceptionLabel.exceptionTypeReference.bits & ASTNode.HasTypeAnnotations) != 0) {
        exceptionLabel.exceptionTypeReference.getAllAnnotationContexts(AnnotationTargetTypeConstants.EXCEPTION_PARAMETER, i, allTypeAnnotationContexts, exceptionLabel.se7Annotations);
      }
    }
   
View Full Code Here

    // there is no exception table, so we need to offset by 2 the current offset and move
    // on the attribute generation
    this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
    this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = exceptionLabels[i];
      if (exceptionLabel != null) {
        int iRange = 0, maxRange = exceptionLabel.getCount();
        if ((maxRange & 1) != 0) {
          this.codeStream.methodDeclaration.scope.problemReporter().abortDueToInternalError(
              Messages.bind(Messages.abort_invalidExceptionAttribute, new String(this.codeStream.methodDeclaration.selector)),
              this.codeStream.methodDeclaration);
        }
View Full Code Here

      // there is no exception table, so we need to offset by 2 the current offset and move
      // on the attribute generation
      this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
      this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
      for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
        ExceptionLabel exceptionLabel = exceptionLabels[i];
        if (exceptionLabel != null) {
          int iRange = 0, maxRange = exceptionLabel.getCount();
          if ((maxRange & 1) != 0) {
            this.referenceBinding.scope.problemReporter().abortDueToInternalError(
                Messages.bind(Messages.abort_invalidExceptionAttribute, new String(binding.selector),
                    this.referenceBinding.scope.problemReporter().referenceContext));
          }
View Full Code Here

    }
    frame.pc = -1;
    add(frames, frame.duplicate());
    addRealJumpTarget(realJumpTarget, -1);
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = this.codeStream.exceptionLabels[i];
      if (exceptionLabel != null) {
        addRealJumpTarget(realJumpTarget, exceptionLabel.position);
      }
    }
    while (true) {
View Full Code Here

    // there is no exception table, so we need to offset by 2 the current offset and move
    // on the attribute generation
    this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
    this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = exceptionLabels[i];
      if (exceptionLabel != null) {
        int iRange = 0, maxRange = exceptionLabel.count;
        if ((maxRange & 1) != 0) {
          this.codeStream.methodDeclaration.scope.problemReporter().abortDueToInternalError(
              Messages.bind(Messages.abort_invalidExceptionAttribute, new String(this.codeStream.methodDeclaration.selector)),
View Full Code Here

    // there is no exception table, so we need to offset by 2 the current offset and move
    // on the attribute generation
    this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8);
    this.contents[localContentsOffset++] = (byte) exceptionHandlersCount;
    for (int i = 0, max = this.codeStream.exceptionLabelsCounter; i < max; i++) {
      ExceptionLabel exceptionLabel = exceptionLabels[i];
      if (exceptionLabel != null) {
        int iRange = 0, maxRange = exceptionLabel.count;
        if ((maxRange & 1) != 0) {
          this.codeStream.methodDeclaration.scope.problemReporter().abortDueToInternalError(
              Messages.bind(Messages.abort_invalidExceptionAttribute, new String(this.codeStream.methodDeclaration.selector)),
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.codegen.ExceptionLabel

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.