public abstract class ProxyPointcutSupport extends java.lang.Object implements ProxyPointcut
ProxyPointcut support methods.| Constructor and Description |
|---|
ProxyPointcutSupport() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
and(MethodInfo methodInfo,
ProxyPointcut p1,
ProxyPointcut p2)
Returns
true if both pointcuts can be applied on the method.. |
AnnotationInfo |
getAnnotation(ClassInfo classInfo,
java.lang.Class<? extends java.lang.annotation.Annotation> an)
Finds annotation in class info.
|
AnnotationInfo |
getAnnotation(MethodInfo methodInfo,
java.lang.Class<? extends java.lang.annotation.Annotation> mi)
Returns
true if method is annotated with provided annotation. |
boolean |
hasAnnotation(ClassInfo classInfo,
java.lang.Class<? extends java.lang.annotation.Annotation>... an)
Returns
true if class is annotated with one of provided annotation. |
boolean |
hasAnnotation(MethodInfo methodInfo,
java.lang.Class<? extends java.lang.annotation.Annotation>... an)
Returns
true if method is annotated with one of provided annotation. |
boolean |
hasNoArguments(MethodInfo methodInfo)
Returns
true if method has no arguments. |
boolean |
hasNoReturnValue(MethodInfo methodInfo)
Returns
true if method's return type is void. |
boolean |
hasOneArgument(MethodInfo methodInfo)
Returns
true if method has only one argument. |
boolean |
hasReturnValue(MethodInfo methodInfo)
Returns
true if method has a return type. |
boolean |
isPublic(MethodInfo methodInfo)
Returns
true if method is public. |
boolean |
isRootMethod(MethodInfo methodInfo)
Returns
true if method is declared in Object class (root class). |
boolean |
isSpecialMethod(MethodInfo methodInfo)
Returns
true if method is constructor or static block. |
boolean |
isTopLevelMethod(MethodInfo methodInfo)
Returns
true if method is a top-level method. |
boolean |
matchClassName(MethodInfo methodInfo,
java.lang.String wildcard)
Match class name to provided
Wildcard pattern. |
boolean |
matchMethodName(MethodInfo methodInfo,
java.lang.String wildcard)
Match method name to provided
Wildcard pattern. |
boolean |
or(MethodInfo methodInfo,
ProxyPointcut p1,
ProxyPointcut p2)
Returns
true if at least one pointcuts can be applied on the method.. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic boolean isPublic(MethodInfo methodInfo)
true if method is public.public AnnotationInfo getAnnotation(MethodInfo methodInfo, java.lang.Class<? extends java.lang.annotation.Annotation> mi)
true if method is annotated with provided annotation.public boolean hasAnnotation(MethodInfo methodInfo, java.lang.Class<? extends java.lang.annotation.Annotation>... an)
true if method is annotated with one of provided annotation.public AnnotationInfo getAnnotation(ClassInfo classInfo, java.lang.Class<? extends java.lang.annotation.Annotation> an)
null if annotation doesn't exist.public boolean hasAnnotation(ClassInfo classInfo, java.lang.Class<? extends java.lang.annotation.Annotation>... an)
true if class is annotated with one of provided annotation.public boolean hasNoArguments(MethodInfo methodInfo)
true if method has no arguments.public boolean hasOneArgument(MethodInfo methodInfo)
true if method has only one argument.public boolean isTopLevelMethod(MethodInfo methodInfo)
true if method is a top-level method.public boolean isRootMethod(MethodInfo methodInfo)
true if method is declared in Object class (root class).public boolean isSpecialMethod(MethodInfo methodInfo)
true if method is constructor or static block.public boolean matchMethodName(MethodInfo methodInfo, java.lang.String wildcard)
Wildcard pattern.public boolean matchClassName(MethodInfo methodInfo, java.lang.String wildcard)
Wildcard pattern.public boolean hasNoReturnValue(MethodInfo methodInfo)
true if method's return type is void.public boolean hasReturnValue(MethodInfo methodInfo)
true if method has a return type.public boolean and(MethodInfo methodInfo, ProxyPointcut p1, ProxyPointcut p2)
true if both pointcuts can be applied on the method..public boolean or(MethodInfo methodInfo, ProxyPointcut p1, ProxyPointcut p2)
true if at least one pointcuts can be applied on the method..Copyright © 2003-2013 Jodd Team