public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction // if (enclosingType != null && enclosingType.isGenericType()) { // RuntimeException e = new RuntimeException("PARAM TYPE with GENERIC ENCLOSING"); // e.printStackTrace(); // throw e; // } // if (!(type instanceof UnresolvedReferenceBinding) && type.typeVariables() == Binding.NO_TYPE_VARIABLES) { // System.out.println(); // } initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); } this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction // if (enclosingType != null && enclosingType.isGenericType()) { // RuntimeException e = new RuntimeException("PARAM TYPE with GENERIC ENCLOSING"); // e.printStackTrace(); // throw e; // } // if (!(type instanceof UnresolvedReferenceBinding) && type.typeVariables() == Binding.NO_TYPE_VARIABLES) { // System.out.println(); // } initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); } this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction // if (enclosingType != null && enclosingType.isGenericType()) { // RuntimeException e = new RuntimeException("PARAM TYPE with GENERIC ENCLOSING"); // e.printStackTrace(); // throw e; // } // if (!(type instanceof UnresolvedReferenceBinding) && type.typeVariables() == Binding.NO_TYPE_VARIABLES) { // System.out.println(); // } initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); } this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { //$IDENTITY-COMPARISON$ this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { //$IDENTITY-COMPARISON$ this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { //$IDENTITY-COMPARISON$ this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { //$IDENTITY-COMPARISON$ this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { //$IDENTITY-COMPARISON$ this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { //$IDENTITY-COMPARISON$ this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { //$IDENTITY-COMPARISON$ this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { //$IDENTITY-COMPARISON$ this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { //$IDENTITY-COMPARISON$ this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { //$IDENTITY-COMPARISON$ this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { //$IDENTITY-COMPARISON$ this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { //$IDENTITY-COMPARISON$ this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
@Override public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) { boolean update = false; if (this.type == unresolvedType) { //$IDENTITY-COMPARISON$ this.type = resolvedType; // cannot be raw since being parameterized below update = true; ReferenceBinding enclosing = resolvedType.enclosingType(); if (enclosing != null) { this.enclosingType = (ReferenceBinding) env.convertUnresolvedBinaryToRawType(enclosing); // needed when binding unresolved member type } } if (this.arguments != null) { for (int i = 0, l = this.arguments.length; i < l; i++) { if (this.arguments[i] == unresolvedType) { //$IDENTITY-COMPARISON$ this.arguments[i] = env.convertUnresolvedBinaryToRawType(resolvedType); update = true; } } } if (update) initialize(this.type, this.arguments); }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction if (!type.hasEnclosingInstanceContext() && arguments == null && !(this instanceof RawTypeBinding)) throw new IllegalStateException(); initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() this.typeBits = type.typeBits; }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() this.typeBits = type.typeBits; }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() this.typeBits = type.typeBits; }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction if (type.isStatic() && arguments == null && !(this instanceof RawTypeBinding)) throw new IllegalStateException(); initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() this.typeBits = type.typeBits; }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() }
public ParameterizedTypeBinding(ReferenceBinding type, TypeBinding[] arguments, ReferenceBinding enclosingType, LookupEnvironment environment){ this.environment = environment; this.enclosingType = enclosingType; // never unresolved, never lazy per construction initialize(type, arguments); if (type instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) type).addWrapper(this, environment); if (arguments != null) { for (int i = 0, l = arguments.length; i < l; i++) { if (arguments[i] instanceof UnresolvedReferenceBinding) ((UnresolvedReferenceBinding) arguments[i]).addWrapper(this, environment); if (arguments[i].hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; } } if (enclosingType != null && enclosingType.hasNullTypeAnnotations()) this.tagBits |= TagBits.HasNullTypeAnnotation; this.tagBits |= TagBits.HasUnresolvedTypeVariables; // cleared in resolve() this.typeBits = type.typeBits; }