public ReferenceBinding[] syntheticEnclosingInstanceTypes() { if (isStatic()) return null; ReferenceBinding enclosingType = enclosingType(); if (enclosingType == null) return null; return new ReferenceBinding[] {enclosingType}; }
private static boolean isMemberTypeOfRaw(TypeBinding originalType, ReferenceBinding substitutedEnclosing) { // 4.8: // "a raw type is defined to be one of: // ... // * A non-static member type of a raw type R that is not // inherited from a superclass or superinterface of R." // Due to staticness, e.g., Map.Entry<String,Object> is *not* considered as a raw type return (substitutedEnclosing != null && substitutedEnclosing.isRawType()) && ((originalType instanceof ReferenceBinding) && !((ReferenceBinding)originalType).isStatic()); }
/** * @return the enclosingInstancesSlotSize */ public int getEnclosingInstancesSlotSize() { if (isStatic()) return 0; return enclosingType() == null ? 0 : 1; }
private static boolean isMemberTypeOfRaw(TypeBinding originalType, ReferenceBinding substitutedEnclosing) { // 4.8: // "a raw type is defined to be one of: // ... // * A non-static member type of a raw type R that is not // inherited from a superclass or superinterface of R." // Due to staticness, e.g., Map.Entry<String,Object> is *not* considered as a raw type return (substitutedEnclosing != null && substitutedEnclosing.isRawType()) && ((originalType instanceof ReferenceBinding) && !((ReferenceBinding)originalType).isStatic()); }
/** * @return the enclosingInstancesSlotSize */ public int getEnclosingInstancesSlotSize() { if (isStatic()) return 0; return enclosingType() == null ? 0 : 1; }
public ReferenceBinding[] syntheticEnclosingInstanceTypes() { if (isStatic()) return null; ReferenceBinding enclosingType = enclosingType(); if (enclosingType == null) return null; return new ReferenceBinding[] {enclosingType}; } public SyntheticArgumentBinding[] syntheticOuterLocalVariables() {
private static boolean isMemberTypeOfRaw(TypeBinding originalType, ReferenceBinding substitutedEnclosing) { // 4.8: // "a raw type is defined to be one of: // ... // * A non-static member type of a raw type R that is not // inherited from a superclass or superinterface of R." // Due to staticness, e.g., Map.Entry<String,Object> is *not* considered as a raw type return (substitutedEnclosing != null && substitutedEnclosing.isRawType()) && ((originalType instanceof ReferenceBinding) && !((ReferenceBinding)originalType).isStatic()); }
public ReferenceBinding[] syntheticEnclosingInstanceTypes() { if (isStatic()) return null; ReferenceBinding enclosingType = enclosingType(); if (enclosingType == null) return null; return new ReferenceBinding[] {enclosingType}; }
private static boolean isMemberTypeOfRaw(TypeBinding originalType, ReferenceBinding substitutedEnclosing) { // 4.8: // "a raw type is defined to be one of: // ... // * A non-static member type of a raw type R that is not // inherited from a superclass or superinterface of R." // Due to staticness, e.g., Map.Entry<String,Object> is *not* considered as a raw type return (substitutedEnclosing != null && substitutedEnclosing.isRawType()) && ((originalType instanceof ReferenceBinding) && !((ReferenceBinding)originalType).isStatic()); }
public ReferenceBinding[] syntheticEnclosingInstanceTypes() { if (isStatic()) return null; ReferenceBinding enclosingType = enclosingType(); if (enclosingType == null) return null; return new ReferenceBinding[] {enclosingType}; }
public ReferenceBinding[] syntheticEnclosingInstanceTypes() { if (isStatic()) return null; ReferenceBinding enclosingType = enclosingType(); if (enclosingType == null) return null; return new ReferenceBinding[] {enclosingType}; }
/** * @return the enclosingInstancesSlotSize */ public int getEnclosingInstancesSlotSize() { if (isStatic()) return 0; return enclosingType() == null ? 0 : 1; }
/** * @return the enclosingInstancesSlotSize */ public int getEnclosingInstancesSlotSize() { if (isStatic()) return 0; return enclosingType() == null ? 0 : 1; }
/** * @return the enclosingInstancesSlotSize */ public int getEnclosingInstancesSlotSize() { if (isStatic()) return 0; return enclosingType() == null ? 0 : 1; }
public ReferenceBinding[] syntheticEnclosingInstanceTypes() { if (isStatic()) return null; ReferenceBinding enclosingType = enclosingType(); if (enclosingType == null) return null; return new ReferenceBinding[] {enclosingType}; } public SyntheticArgumentBinding[] syntheticOuterLocalVariables() {
int findCompatibleEnclosing(ReferenceBinding enclosingType, TypeBinding type, BlockScope scope) { int depth = 0; this.currentCompatibleType = enclosingType; while (this.currentCompatibleType != null && TypeBinding.notEquals(this.currentCompatibleType, type)) { depth++; this.currentCompatibleType = this.currentCompatibleType.isStatic() ? null : this.currentCompatibleType.enclosingType(); } return depth; }
protected static void rejectAnnotationsOnStaticMemberQualififer(Scope scope, ReferenceBinding currentType, Annotation[] qualifierAnnot) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=385137 if (currentType.isMemberType() && currentType.isStatic() && qualifierAnnot != null && qualifierAnnot.length > 0) { scope.problemReporter().illegalTypeAnnotationsInStaticMemberAccess(qualifierAnnot[0], qualifierAnnot[qualifierAnnot.length - 1]); } }
protected static void rejectAnnotationsOnStaticMemberQualififer(Scope scope, ReferenceBinding currentType, Annotation[] qualifierAnnot) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=385137 if (currentType.isMemberType() && currentType.isStatic() && qualifierAnnot != null && qualifierAnnot.length > 0) { scope.problemReporter().illegalTypeAnnotationsInStaticMemberAccess(qualifierAnnot[0], qualifierAnnot[qualifierAnnot.length - 1]); } }
protected static void rejectAnnotationsOnStaticMemberQualififer(Scope scope, ReferenceBinding currentType, Annotation[] qualifierAnnot) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=385137 if (currentType.isMemberType() && currentType.isStatic() && qualifierAnnot != null && qualifierAnnot.length > 0) { scope.problemReporter().illegalTypeAnnotationsInStaticMemberAccess(qualifierAnnot[0], qualifierAnnot[qualifierAnnot.length - 1]); } }
protected static void rejectAnnotationsOnStaticMemberQualififer(Scope scope, ReferenceBinding currentType, Annotation[] qualifierAnnot) { // https://bugs.eclipse.org/bugs/show_bug.cgi?id=385137 if (currentType.isMemberType() && currentType.isStatic() && qualifierAnnot != null && qualifierAnnot.length > 0) { scope.problemReporter().illegalTypeAnnotationsInStaticMemberAccess(qualifierAnnot[0], qualifierAnnot[qualifierAnnot.length - 1]); } }