jasco.runtime.aspect
Class HookHelper

java.lang.Object
  extended by jasco.runtime.aspect.HookHelper

public class HookHelper
extends java.lang.Object

Author:
Wim TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
HookHelper()
           
 
Method Summary
static boolean definesAdvice(java.lang.Class clz, java.lang.String adviceType)
           
static boolean definesAdvice(IHook cp, java.lang.String adviceType)
           
static java.lang.String getCopyName(java.lang.String hookname)
           
protected static java.lang.annotation.Annotation getRefinableAnnotation(java.lang.reflect.Method method)
           
static java.util.Vector getRefinableMethodNames(java.lang.Class hook)
           
static java.util.Vector getRefinableMethods(java.lang.Class hook)
           
static boolean hasAdviceAnnotation(javassist.CtMethod method)
           
static boolean isRefinableMethod(java.lang.Class hook, MethodGenerator method)
           
static boolean isRefinableMethod(java.lang.reflect.Method method)
           
static java.lang.String stripCopyName(java.lang.String hookname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HookHelper

public HookHelper()
Method Detail

definesAdvice

public static boolean definesAdvice(java.lang.Class clz,
                                    java.lang.String adviceType)

getCopyName

public static java.lang.String getCopyName(java.lang.String hookname)

stripCopyName

public static java.lang.String stripCopyName(java.lang.String hookname)

definesAdvice

public static boolean definesAdvice(IHook cp,
                                    java.lang.String adviceType)

getRefinableMethods

public static java.util.Vector getRefinableMethods(java.lang.Class hook)

getRefinableMethodNames

public static java.util.Vector getRefinableMethodNames(java.lang.Class hook)

isRefinableMethod

public static boolean isRefinableMethod(java.lang.reflect.Method method)
Parameters:
method -
Returns:

getRefinableAnnotation

protected static java.lang.annotation.Annotation getRefinableAnnotation(java.lang.reflect.Method method)

isRefinableMethod

public static boolean isRefinableMethod(java.lang.Class hook,
                                        MethodGenerator method)

hasAdviceAnnotation

public static boolean hasAdviceAnnotation(javassist.CtMethod method)