diff options
author | acolyer <acolyer> | 2005-07-21 13:26:10 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-07-21 13:26:10 +0000 |
commit | dbcaf2b41c1f3b469cd2e5d08605a2be8f6e49bd (patch) | |
tree | 32c5426050406d5e88f712dee19e368ff7c51a66 | |
parent | 651f729a3e4e1bdb46c3ca9603c97dad3327b41f (diff) | |
download | aspectj-dbcaf2b41c1f3b469cd2e5d08605a2be8f6e49bd.tar.gz aspectj-dbcaf2b41c1f3b469cd2e5d08605a2be8f6e49bd.zip |
change from isTypeVariable to isTypeVariableReference
-rw-r--r-- | weaver/src/org/aspectj/weaver/UnresolvedType.java | 16 | ||||
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/weaver/src/org/aspectj/weaver/UnresolvedType.java b/weaver/src/org/aspectj/weaver/UnresolvedType.java index 1d07588b0..5173b9368 100644 --- a/weaver/src/org/aspectj/weaver/UnresolvedType.java +++ b/weaver/src/org/aspectj/weaver/UnresolvedType.java @@ -121,7 +121,7 @@ public class UnresolvedType { public static final String MISSING_NAME = "@missing@"; - + protected TypeKind typeKind = TypeKind.SIMPLE; // what kind of type am I? /** @@ -148,7 +148,7 @@ public class UnresolvedType { */ protected TypeVariable[] typeVariables; - /** + /** * Determines if this represents a primitive type. A primitive type * is one of nine predefined resolved types. * @@ -169,7 +169,7 @@ public class UnresolvedType { public boolean isRawType() { return typeKind == TypeKind.RAW; } public boolean isGenericType() { return typeKind == TypeKind.GENERIC; } public boolean isParameterizedType() { return typeKind == TypeKind.PARAMETERIZED; } - public boolean isTypeVariable() { return typeKind == TypeKind.TYPE_VARIABLE; } + public boolean isTypeVariableReference() { return typeKind == TypeKind.TYPE_VARIABLE; } public boolean isGenericWildcard() { return typeKind == TypeKind.WILDCARD; } // for any reference type, we can get some extra information... @@ -499,8 +499,8 @@ public class UnresolvedType { public String getSignature() { return signature; } - - + + // public String getParameterizedSignature() { // return signature; // } @@ -789,11 +789,11 @@ public class UnresolvedType { public final static TypeKind PARAMETERIZED= new TypeKind("parameterized"); // a parameterized type public final static TypeKind TYPE_VARIABLE= new TypeKind("type_variable"); // a type variable public final static TypeKind WILDCARD = new TypeKind("wildcard"); // a generic wildcard type - + public String toString() { return type; - } - +} + private TypeKind(String type) { this.type = type; } diff --git a/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java index 32932feda..3cd9a61be 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/ExactTypePattern.java @@ -100,7 +100,7 @@ public class ExactTypePattern extends TypePattern { if (!typeMatch && (matchType.isParameterizedType() || matchType.isGenericType())) { typeMatch = this.type.equals(matchType.getRawType()); } - if (!typeMatch && matchType.isTypeVariable()) { + if (!typeMatch && matchType.isTypeVariableReference()) { typeMatch = matchesTypeVariable((TypeVariableReferenceType)matchType); } annotationPattern.resolve(matchType.getWorld()); @@ -117,7 +117,7 @@ public class ExactTypePattern extends TypePattern { if (!typeMatch && (matchType.isParameterizedType() || matchType.isGenericType())) { typeMatch = this.type.equals(matchType.getRawType()); } - if (!typeMatch && matchType.isTypeVariable()) { + if (!typeMatch && matchType.isTypeVariableReference()) { typeMatch = matchesTypeVariable((TypeVariableReferenceType)matchType); } annotationPattern.resolve(matchType.getWorld()); |