Examples of findSuperTypeOriginatingFrom()


Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.findSuperTypeOriginatingFrom()

      && field.isFinal()
      && field.type.dimensions() == 1
      && CharOperation.equals(TypeConstants.CharArray_JAVA_IO_OBJECTSTREAMFIELD, field.type.leafComponentType().readableName())) {
    ReferenceBinding referenceBinding = field.declaringClass;
    if (referenceBinding != null) {
      if (referenceBinding.findSuperTypeOriginatingFrom(TypeIds.T_JavaIoSerializable, false /*Serializable is not a class*/) != null) {
        return; // do not report unused serialVersionUID field for class that implements Serializable
      }
    }
  }
  if (excludeDueToAnnotation(fieldDecl.annotations, IProblem.UnusedPrivateField)) return;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.findSuperTypeOriginatingFrom()

          default :
            if (castType.isInterface()) {
              // ( INTERFACE ) INTERFACE
              ReferenceBinding interfaceType = (ReferenceBinding) expressionType;
              match = interfaceType.findSuperTypeOriginatingFrom(castType);
              if (match != null) {
                return checkUnsafeCast(scope, castType, interfaceType, match, false);
              }
              tagAsNeedCheckCast();
              match = castType.findSuperTypeOriginatingFrom(interfaceType);
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.findSuperTypeOriginatingFrom()

          default :
            if (castType.isInterface()) {
              // ( INTERFACE ) CLASS
              ReferenceBinding refExprType = (ReferenceBinding) expressionType;
              match = refExprType.findSuperTypeOriginatingFrom(castType);
              if (match != null) {
                return checkUnsafeCast(scope, castType, expressionType, match, false);
              }
              // unless final a subclass may implement the interface ==> no check at compile time
              if (refExprType.isFinal()) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.findSuperTypeOriginatingFrom()

          hasError = true;
          continue;
        }
        if (!priorType.isInterface())
          continue;
        if (TypeBinding.equalsEquals(type.findSuperTypeOriginatingFrom(priorType), priorType)) {
          intersectingTypes[j] = (ReferenceBinding) type;
          continue nextType;
        }
        if (TypeBinding.equalsEquals(priorType.findSuperTypeOriginatingFrom(type), type))
          continue nextType;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.findSuperTypeOriginatingFrom()

          scope.problemReporter().invalidTypeVariableAsException(exceptionType, this.typeReferences[i]);
          hasError = true;
          // fall thru to create the variable - avoids additional errors because the variable is missing
          break;
      }
      if (exceptionType.findSuperTypeOriginatingFrom(TypeIds.T_JavaLangThrowable, true) == null
          && exceptionType.isValidBinding()) {
        scope.problemReporter().cannotThrowType(this.typeReferences[i], exceptionType);
        hasError = true;
      }
      allExceptionTypes[i] = exceptionType;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.findSuperTypeOriginatingFrom()

          scope.problemReporter().invalidTypeVariableAsException(exceptionType, this.typeReferences[i]);
          hasError = true;
          // fall thru to create the variable - avoids additional errors because the variable is missing
          break;
      }
      if (exceptionType.findSuperTypeOriginatingFrom(TypeIds.T_JavaLangThrowable, true) == null
          && exceptionType.isValidBinding()) {
        scope.problemReporter().cannotThrowType(this.typeReferences[i], exceptionType);
        hasError = true;
      }
      allExceptionTypes[i] = exceptionType;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.