Package org.eclipse.jdt.internal.compiler.lookup

Examples of org.eclipse.jdt.internal.compiler.lookup.CatchParameterBinding


  if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_7 && location instanceof ThrowStatement) {
    Expression throwExpression = ((ThrowStatement)location).exception;
    LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding();
    if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361
        && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) {
      CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding;
      checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
      return;
    }
  }
  while (traversedContext != null) {
    SubRoutineStatement sub;
View Full Code Here


  if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_7 && location instanceof ThrowStatement) {
    Expression throwExpression = ((ThrowStatement)location).exception;
    LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding();
    if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361
        && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) {
      CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding;
      checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
      return;
    }
  }
  while (traversedContext != null) {
    SubRoutineStatement sub;
View Full Code Here

    this.isNeeded[cacheIndex] |= bitMask;
  }
  this.isReached[cacheIndex] |= bitMask;
  int catchBlock = this.exceptionToCatchBlockMap != null? this.exceptionToCatchBlockMap[index] : index;
  if (caughtException != null && this.catchArguments != null && this.catchArguments.length > 0 && !wasAlreadyDefinitelyCaught) {
    CatchParameterBinding catchParameter = (CatchParameterBinding) this.catchArguments[catchBlock].binding;
    catchParameter.setPreciseType(caughtException);
  }
  this.initsOnExceptions[catchBlock] =
    (this.initsOnExceptions[catchBlock].tagBits & FlowInfo.UNREACHABLE) == 0 ?
      this.initsOnExceptions[catchBlock].mergedWith(flowInfo):
      flowInfo.unconditionalCopy();
View Full Code Here

  if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_7 && location instanceof ThrowStatement) {
    Expression throwExpression = ((ThrowStatement)location).exception;
    LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding();
    if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361
        && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) {
      CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding;
      checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
      return;
    }
  }
  while (traversedContext != null) {
    SubRoutineStatement sub;
View Full Code Here

  if (scope.compilerOptions().sourceLevel >= ClassFileConstants.JDK1_7 && location instanceof ThrowStatement) {
    Expression throwExpression = ((ThrowStatement)location).exception;
    LocalVariableBinding throwArgBinding = throwExpression.localVariableBinding();
    if (throwExpression instanceof SingleNameReference // https://bugs.eclipse.org/bugs/show_bug.cgi?id=350361
        && throwArgBinding instanceof CatchParameterBinding && throwArgBinding.isEffectivelyFinal()) {
      CatchParameterBinding parameter = (CatchParameterBinding) throwArgBinding;
      checkExceptionHandlers(parameter.getPreciseTypes(), location, flowInfo, scope);
      return;
    }
  }
  while (traversedContext != null) {
    SubRoutineStatement sub;
View Full Code Here

    this.isNeeded[cacheIndex] |= bitMask;
  }
  this.isReached[cacheIndex] |= bitMask;
  int catchBlock = this.exceptionToCatchBlockMap != null? this.exceptionToCatchBlockMap[index] : index;
  if (caughtException != null && this.catchArguments != null && this.catchArguments.length > 0 && !wasAlreadyDefinitelyCaught) {
    CatchParameterBinding catchParameter = (CatchParameterBinding) this.catchArguments[catchBlock].binding;
    catchParameter.setPreciseType(caughtException);
  }
  this.initsOnExceptions[catchBlock] =
    (this.initsOnExceptions[catchBlock].tagBits & FlowInfo.UNREACHABLE) == 0 ?
      this.initsOnExceptions[catchBlock].mergedWith(flowInfo):
      flowInfo.unconditionalCopy();
View Full Code Here

    this.isNeeded[cacheIndex] |= bitMask;
  }
  this.isReached[cacheIndex] |= bitMask;
  int catchBlock = this.exceptionToCatchBlockMap != null? this.exceptionToCatchBlockMap[index] : index;
  if (caughtException != null && this.catchArguments != null && this.catchArguments.length > 0 && !wasAlreadyDefinitelyCaught) {
    CatchParameterBinding catchParameter = (CatchParameterBinding) this.catchArguments[catchBlock].binding;
    catchParameter.setPreciseType(caughtException);
  }
  this.initsOnExceptions[catchBlock] =
    (this.initsOnExceptions[catchBlock].tagBits & FlowInfo.UNREACHABLE) == 0 ?
      this.initsOnExceptions[catchBlock].mergedWith(flowInfo):
      flowInfo.unconditionalCopy();
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.lookup.CatchParameterBinding

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.