jodd.proxetta.pointcuts
Class ProxyPointcutSupport

java.lang.Object
  extended by jodd.proxetta.pointcuts.ProxyPointcutSupport
All Implemented Interfaces:
ProxyPointcut
Direct Known Subclasses:
AllGettersPointcut, AllMethodsPointcut, AllSettersPointcut, MethodAnnotationPointcut

public abstract class ProxyPointcutSupport
extends java.lang.Object
implements ProxyPointcut

ProxyPointcut support methods.


Field Summary
protected static java.lang.String SIGNATURE_OBJECT_CLASS
           
 
Constructor Summary
ProxyPointcutSupport()
           
 
Method Summary
 boolean and(MethodInfo msign, ProxyPointcut p1, ProxyPointcut p2)
          Returns true if both pointcuts can be applied on the method..
 boolean hasNoArguments(MethodInfo msign)
          Returns true if method has no arguments.
 boolean hasNoReturnValue(MethodInfo msign)
          Returns true if method's return type is void.
 boolean hasOneArgument(MethodInfo msign)
          Returns true if method has only one argument.
 boolean hasReturnValue(MethodInfo msign)
          Returns true if method has a return type.
 boolean isPublic(MethodInfo msign)
          Returns true if method is public.
 boolean isRootMethod(MethodInfo msign)
          Returns true if method is declared in Object class (root class).
 boolean isTopLevelMethod(MethodInfo msign)
          Returns true if method is a top-level method.
 AnnotationInfo lookupAnnotation(ClassInfo ci, java.lang.Class<? extends java.lang.annotation.Annotation> an)
          Locates annotation in class info.
 AnnotationInfo lookupAnnotation(MethodInfo mi, java.lang.Class<? extends java.lang.annotation.Annotation> an)
          Returns true if method is annotated with provided annotation.
 boolean matchClassName(MethodInfo msing, java.lang.String wildcard)
          Match class name to provided Wildcard pattern.
 boolean matchMethodName(MethodInfo msing, java.lang.String wildcard)
          Match method name to provided Wildcard pattern.
 boolean or(MethodInfo msign, ProxyPointcut p1, ProxyPointcut p2)
          Returns true if at least one pointcuts can be applied on the method..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jodd.proxetta.ProxyPointcut
apply
 

Field Detail

SIGNATURE_OBJECT_CLASS

protected static final java.lang.String SIGNATURE_OBJECT_CLASS
See Also:
Constant Field Values
Constructor Detail

ProxyPointcutSupport

public ProxyPointcutSupport()
Method Detail

isPublic

public boolean isPublic(MethodInfo msign)
Returns true if method is public.


lookupAnnotation

public AnnotationInfo lookupAnnotation(MethodInfo mi,
                                       java.lang.Class<? extends java.lang.annotation.Annotation> an)
Returns true if method is annotated with provided annotation.


lookupAnnotation

public AnnotationInfo lookupAnnotation(ClassInfo ci,
                                       java.lang.Class<? extends java.lang.annotation.Annotation> an)
Locates annotation in class info. Returns null if annotation doesn't exist.


hasNoArguments

public boolean hasNoArguments(MethodInfo msign)
Returns true if method has no arguments.


hasOneArgument

public boolean hasOneArgument(MethodInfo msign)
Returns true if method has only one argument.


isTopLevelMethod

public boolean isTopLevelMethod(MethodInfo msign)
Returns true if method is a top-level method.


isRootMethod

public boolean isRootMethod(MethodInfo msign)
Returns true if method is declared in Object class (root class).


matchMethodName

public boolean matchMethodName(MethodInfo msing,
                               java.lang.String wildcard)
Match method name to provided Wildcard pattern.


matchClassName

public boolean matchClassName(MethodInfo msing,
                              java.lang.String wildcard)
Match class name to provided Wildcard pattern.


hasNoReturnValue

public boolean hasNoReturnValue(MethodInfo msign)
Returns true if method's return type is void.


hasReturnValue

public boolean hasReturnValue(MethodInfo msign)
Returns true if method has a return type.


and

public boolean and(MethodInfo msign,
                   ProxyPointcut p1,
                   ProxyPointcut p2)
Returns true if both pointcuts can be applied on the method..


or

public boolean or(MethodInfo msign,
                  ProxyPointcut p1,
                  ProxyPointcut p2)
Returns true if at least one pointcuts can be applied on the method..



Copyright © 2003-2011 Jodd Team