Browse Source

trivial extension

extensions
aclement 17 years ago
parent
commit
2658a8f0f2

+ 8
- 0
weaver/src/org/aspectj/weaver/JoinPointSignature.java View File

@@ -286,6 +286,14 @@ public class JoinPointSignature implements ResolvedMember {
public boolean isStatic(World world) {
return realMember.isStatic(world);
}
public boolean isTrivial(World world) {
return realMember.isTrivial(world);
}
public boolean isTrivial() {
return realMember.isTrivial();
}

public boolean isStrict(World world) {
return realMember.isStrict(world);

+ 3
- 0
weaver/src/org/aspectj/weaver/Member.java View File

@@ -113,6 +113,9 @@ public interface Member {
public boolean isInterface();

public boolean isPrivate();
public boolean isTrivial(World world);
public boolean isTrivial();

/**
* Returns true iff the member is generic (NOT parameterized)

+ 9
- 1
weaver/src/org/aspectj/weaver/MemberImpl.java View File

@@ -621,6 +621,14 @@ public class MemberImpl implements Comparable, AnnotatedElement,Member {
throw new UnsupportedOperationException("You should resolve this member and call hasAnnotation() on the result...");
}
public boolean isTrivial() {
throw new UnsupportedOperationException("Cannot work this out for an unresolved member");
}
public boolean isTrivial(World world) {
throw new UnsupportedOperationException("Cannot work this out for an unresolved member");
}
/* (non-Javadoc)
* @see org.aspectj.weaver.AnnotatedElement#getAnnotationTypes()
*/
@@ -983,4 +991,4 @@ public class MemberImpl implements Comparable, AnnotatedElement,Member {
}

}

+ 9
- 1
weaver/src/org/aspectj/weaver/ResolvedMemberImpl.java View File

@@ -939,5 +939,13 @@ public class ResolvedMemberImpl extends MemberImpl implements IHasPosition, Anno
}

public void evictWeavingState() { }
public boolean isTrivial() {
return false;
}
public boolean isTrivial(World w) {
return false;
}
}

Loading…
Cancel
Save