@Override
public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) {
throw new BCException("trying to re-resolve");
-
}
/**
* return a version of this type pattern with all type variables references replaced by the corresponding entry in the map.
*/
@Override
- public TypePattern parameterizeWith(Map typeVariableMap, World w) {
+ public TypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w) {
UnresolvedType newType = type;
if (type.isTypeVariableReference()) {
TypeVariableReference t = (TypeVariableReference) type;
import org.aspectj.weaver.CompressingDataOutputStream;
import org.aspectj.weaver.ISourceContext;
import org.aspectj.weaver.ResolvedType;
+import org.aspectj.weaver.UnresolvedType;
import org.aspectj.weaver.VersionedDataInputStream;
import org.aspectj.weaver.World;
right = right.resolveBindings(scope, bindings, false, false);
return this;
}
-
- public TypePattern parameterizeWith(Map typeVariableMap, World w) {
+
+ public TypePattern parameterizeWith(Map<String,UnresolvedType> typeVariableMap, World w) {
TypePattern newLeft = left.parameterizeWith(typeVariableMap, w);
TypePattern newRight = right.parameterizeWith(typeVariableMap, w);
OrTypePattern ret = new OrTypePattern(newLeft, newRight);
}
// pr124808
- Iterator typesIterator = null;
+ Iterator<ResolvedType> typesIterator = null;
if (type.isTypeVariableReference()) {
typesIterator = ((TypeVariableReference) type).getTypeVariable().getFirstBound().resolve(type.getWorld())
.getDirectSupertypes();
typesIterator = type.getDirectSupertypes();
}
- for (Iterator i = typesIterator; i.hasNext();) {
- ResolvedType superType = (ResolvedType) i.next();
+ for (Iterator<ResolvedType> i = typesIterator; i.hasNext();) {
+ ResolvedType superType = i.next();
if (matchesSubtypes(superType, type)) {
return true;
}
superType = superType.getGenericType();
}
// FuzzyBoolean ret = FuzzyBoolean.NO; // ??? -eh
- for (Iterator i = superType.getDirectSupertypes(); i.hasNext();) {
+ for (Iterator<ResolvedType> i = superType.getDirectSupertypes(); i.hasNext();) {
ResolvedType superSuperType = (ResolvedType) i.next();
if (matchesSubtypes(superSuperType, annotatedType)) {
return true;
* return a version of this type pattern in which all type variable references have been replaced by their corresponding entry
* in the map.
*/
- public abstract TypePattern parameterizeWith(Map typeVariableMap, World w);
+ public abstract TypePattern parameterizeWith(Map<String, UnresolvedType> typeVariableMap, World w);
public void postRead(ResolvedType enclosingType) {
}