/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; for (int i = 0; i < length; i++) // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; for (int i = 0; i < length; i++) // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; for (int i = 0; i < length; i++) // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ @Override public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding#createParameterizedMethod(org.eclipse.jdt.internal.compiler.lookup.MethodBinding) */ public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == Binding.NO_TYPE_VARIABLES || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return this.environment.createParameterizedGenericMethod(originalMethod, this); }
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; CompilerOptions options = this.environment.globalOptions; boolean useNullTypeAnnotations = options.isAnnotationBasedNullAnalysisEnabled && options.sourceLevel >= ClassFileConstants.JDK1_8; for (int i = 0; i < length; i++) { // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); if (useNullTypeAnnotations) parameterizedMethods[i] = NullAnnotationMatching.checkForContraditions(parameterizedMethods[i], null, null); } this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; boolean useNullTypeAnnotations = this.environment.usesNullTypeAnnotations(); for (int i = 0; i < length; i++) { // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); if (useNullTypeAnnotations) parameterizedMethods[i] = NullAnnotationMatching.checkForContradictions(parameterizedMethods[i], null, null); } this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; boolean useNullTypeAnnotations = this.environment.usesNullTypeAnnotations(); for (int i = 0; i < length; i++) { // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); if (useNullTypeAnnotations) parameterizedMethods[i] = NullAnnotationMatching.checkForContradictions(parameterizedMethods[i], null, null); } this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; boolean useNullTypeAnnotations = this.environment.usesNullTypeAnnotations(); for (int i = 0; i < length; i++) { // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); if (useNullTypeAnnotations) parameterizedMethods[i] = NullAnnotationMatching.checkForContradictions(parameterizedMethods[i], null, null); } this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; boolean useNullTypeAnnotations = this.environment.usesNullTypeAnnotations(); for (int i = 0; i < length; i++) { // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); if (useNullTypeAnnotations) parameterizedMethods[i] = NullAnnotationMatching.checkForContradictions(parameterizedMethods[i], null, null); } this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**
/** * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#methods() */ @Override public MethodBinding[] methods() { if ((this.tagBits & TagBits.AreMethodsComplete) != 0) return this.methods; try { MethodBinding[] originalMethods = this.type.methods(); int length = originalMethods.length; MethodBinding[] parameterizedMethods = new MethodBinding[length]; boolean useNullTypeAnnotations = this.environment.usesNullTypeAnnotations(); for (int i = 0; i < length; i++) { // substitute all methods, so as to get updated declaring class at least parameterizedMethods[i] = createParameterizedMethod(originalMethods[i]); if (useNullTypeAnnotations) parameterizedMethods[i] = NullAnnotationMatching.checkForContradictions(parameterizedMethods[i], null, null); } this.methods = parameterizedMethods; } finally { // if the original methods cannot be retrieved (ex. AbortCompilation), then assume we do not have any methods if (this.methods == null) this.methods = Binding.NO_METHODS; this.tagBits |= TagBits.AreMethodsComplete; } return this.methods; } /**