abc.weaving.weaver
Class AroundWeaver.Util

java.lang.Object
  extended by abc.weaving.weaver.AroundWeaver.Util
Enclosing class:
AroundWeaver

public static class AroundWeaver.Util
extends java.lang.Object


Constructor Summary
AroundWeaver.Util()
           
 
Method Summary
static InvokeExpr createNewInvokeExpr(InvokeExpr old, java.util.List newArgs, java.util.List newTypes)
          Creates a new InvokeExpr based on an existing one but with new arguments.
static java.util.List getParameterLocals(Body body)
           
static boolean isAroundAdviceMethod(SootMethod method)
           
static boolean isAroundAdviceMethodName(java.lang.String methodName)
           
static boolean isProceedMethodName(java.lang.String methodName)
           
static Stmt newSwitchStmt(Value key, java.util.List lookupValues, java.util.List targets, Unit defaultTarget)
           
static java.lang.String printMethod(SootMethod m)
           
static void validateMethod(SootMethod method)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AroundWeaver.Util

public AroundWeaver.Util()
Method Detail

newSwitchStmt

public static Stmt newSwitchStmt(Value key,
                                 java.util.List lookupValues,
                                 java.util.List targets,
                                 Unit defaultTarget)

validateMethod

public static void validateMethod(SootMethod method)

printMethod

public static java.lang.String printMethod(SootMethod m)

isAroundAdviceMethod

public static boolean isAroundAdviceMethod(SootMethod method)

isAroundAdviceMethodName

public static boolean isAroundAdviceMethodName(java.lang.String methodName)

isProceedMethodName

public static boolean isProceedMethodName(java.lang.String methodName)

getParameterLocals

public static java.util.List getParameterLocals(Body body)

createNewInvokeExpr

public static InvokeExpr createNewInvokeExpr(InvokeExpr old,
                                             java.util.List newArgs,
                                             java.util.List newTypes)
Creates a new InvokeExpr based on an existing one but with new arguments.