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
      }
    }
  }
  this.handle(
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.ReferenceBinding.findSuperTypeOriginatingFrom()

      return false;
   
    // Construct a binding to the equivalent of this (the overrider) as it would be inherited by 'type'.
    // Can only do this if 'type' is descended from the overrider.
    // Second clause of the AND is required to match a peculiar javac behavior.
    if (null == overriderContext.findSuperTypeOriginatingFrom(((MethodBinding)_binding).declaringClass) &&
        null == ((MethodBinding)_binding).declaringClass.findSuperTypeOriginatingFrom(overriderContext)) {
      return false;
    }
    MethodBinding overriderBinding = new MethodBinding((MethodBinding)_binding, overriderContext);
    if (overriderBinding.isPrivate()) {
View Full Code Here

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

      && field.isPrivate()
      && field.isFinal()
      && TypeBinding.LONG == field.type) {
    ReferenceBinding referenceBinding = field.declaringClass;
    if (referenceBinding != null) {
      if (referenceBinding.findSuperTypeOriginatingFrom(TypeIds.T_JavaIoSerializable, false /*Serializable is not a class*/) != null) {
        return; // do not report field hiding for serialVersionUID field for class that implements Serializable
      }
    }
  }
  if (CharOperation.equals(TypeConstants.SERIALPERSISTENTFIELDS, field.name)
View Full Code Here

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 field hiding for serialPersistenFields field for class that implements Serializable
      }
    }
  }
  boolean isLocal = hiddenVariable instanceof LocalVariableBinding;
View Full Code Here

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

      && field.isStatic()
      && field.isFinal()
      && TypeBinding.LONG == field.type) {
    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 (CharOperation.equals(TypeConstants.SERIALPERSISTENTFIELDS, field.name)
View Full Code Here

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
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.