public void consumeRawType() { if (this.typeBinding == null) return; this.typeBinding = this.environment.convertToRawType(this.typeBinding, false /*do not force conversion of enclosing types*/); } public void consumeSecondaryType(char[] simpleTypeName) {
public void consumeRawType() { if (this.typeBinding == null) return; this.typeBinding = this.environment.convertToRawType(this.typeBinding, false /*do not force conversion of enclosing types*/); } public void consumeSecondaryType(char[] simpleTypeName) {
public void consumeRawType() { if (this.typeBinding == null) return; this.typeBinding = this.environment.convertToRawType(this.typeBinding, false /*do not force conversion of enclosing types*/); } public void consumeSecondaryType(char[] simpleTypeName) {
public void consumeRawType() { if (this.typeBinding == null) return; this.typeBinding = this.environment.convertToRawType(this.typeBinding, false /*do not force conversion of enclosing types*/); } public void consumeSecondaryType(char[] simpleTypeName) {
@Override public boolean isSubtypeOf(TypeBinding right, boolean simulatingBugJDK8026527) { if (simulatingBugJDK8026527) { right = this.environment.convertToRawType(right.erasure(), false); } return super.isSubtypeOf(right, simulatingBugJDK8026527); }
TypeBinding getErasure18_5_2(TypeBinding type, LookupEnvironment env, boolean substitute) { // opportunistic interpretation of (JLS 18.5.2): // "If unchecked conversion was necessary ..., then ... // the return type and thrown types of the invocation type of m are given by // the erasure of the return type and thrown types of m's type." if (substitute) type = Scope.substitute(this, type); return env.convertToRawType(type.erasure(), true); }
private boolean superOnlyRaw(TypeBinding g, TypeBinding s, LookupEnvironment env) { if (s instanceof InferenceVariable) return false; // inference has no super types if (s.findSuperTypeOriginatingFrom(g) == null) return s.isCompatibleWith(env.convertToRawType(g, false)); return false; }
TypeBinding getErasure18_5_2(TypeBinding type, LookupEnvironment env, boolean substitute) { // opportunistic interpretation of (JLS 18.5.2): // "If unchecked conversion was necessary ..., then ... // the return type and thrown types of the invocation type of m are given by // the erasure of the return type and thrown types of m's type." if (substitute) type = Scope.substitute(this, type); return env.convertToRawType(type.erasure(), true); }
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; }
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; } /**
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; }
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; }
private boolean superOnlyRaw(TypeBinding g, TypeBinding s, LookupEnvironment env) { if (s instanceof InferenceVariable) return false; // inference has no super types final TypeBinding superType = s.findSuperTypeOriginatingFrom(g); if (superType != null && !superType.isParameterizedType()) return s.isCompatibleWith(env.convertToRawType(g, false)); return false; }
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; }
@Override protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; }
private boolean superOnlyRaw(TypeBinding g, TypeBinding s, LookupEnvironment env) { if (s instanceof InferenceVariable) return false; // inference has no super types final TypeBinding superType = s.findSuperTypeOriginatingFrom(g); if (superType != null && !superType.isParameterizedType()) return s.isCompatibleWith(env.convertToRawType(g, false)); return false; }
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; } /**
protected void initializeArguments() { TypeVariableBinding[] typeVariables = genericType().typeVariables(); int length = typeVariables.length; TypeBinding[] typeArguments = new TypeBinding[length]; for (int i = 0; i < length; i++) { // perform raw conversion on variable upper bound - could cause infinite regression if arguments were initialized lazily typeArguments[i] = this.environment.convertToRawType(typeVariables[i].erasure(), false /*do not force conversion of enclosing types*/); } this.arguments = typeArguments; }
private static TypeBinding getRealErasure(TypeBinding type, LookupEnvironment environment) { TypeBinding erasure = type.erasure(); // could still be / contain a generic type that needs to be converted to raw: TypeBinding erasedLeaf = erasure.leafComponentType(); if (erasedLeaf.isGenericType()) erasedLeaf = environment.convertToRawType(erasedLeaf, false); if (erasure.isArrayType()) return environment.createArrayType(erasedLeaf, erasure.dimensions()); return erasedLeaf; }
private static TypeBinding getRealErasure(TypeBinding type, LookupEnvironment environment) { TypeBinding erasure = type.erasure(); // could still be / contain a generic type that needs to be converted to raw: TypeBinding erasedLeaf = erasure.leafComponentType(); if (erasedLeaf.isGenericType()) erasedLeaf = environment.convertToRawType(erasedLeaf, false); if (erasure.isArrayType()) return environment.createArrayType(erasedLeaf, erasure.dimensions()); return erasedLeaf; }