Package jodd.proxetta
Class InvokeReplacer
- java.lang.Object
-
- jodd.proxetta.InvokeReplacer
-
public class InvokeReplacer extends java.lang.ObjectInvocation advice represents a method that will replace some invocation pointcut.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringmethodNamestatic InvokeReplacerNONEprotected java.lang.Stringownerprotected booleanpassMethodNameprotected booleanpassMethodSignatureprotected booleanpassOwnerNameprotected booleanpassTargetClassprotected booleanpassThis
-
Constructor Summary
Constructors Constructor Description InvokeReplacer(java.lang.Class target, java.lang.String methodName)InvokeReplacer(java.lang.String classCanonicalName, java.lang.String methodName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMethodName()java.lang.StringgetOwner()booleanisNone()booleanisPassMethodName()booleanisPassMethodSignature()booleanisPassOwnerName()booleanisPassTargetClass()booleanisPassThis()InvokeReplacerpassMethodName(boolean passMethodName)InvokeReplacerpassMethodSignature(boolean passMethodSignature)InvokeReplacerpassOwnerName(boolean passOwnerName)InvokeReplacerpassTargetClass(boolean passTargetClass)InvokeReplacerpassThis(boolean passThis)voidsetPassMethodName(boolean passMethodName)voidsetPassMethodSignature(boolean passMethodSignature)voidsetPassOwnerName(boolean passOwnerName)voidsetPassTargetClass(boolean passTargetClass)voidsetPassThis(boolean passThis)static InvokeReplacerwith(java.lang.Class target, java.lang.String methodName)static InvokeReplacerwith(java.lang.String classCanonicalName, java.lang.String methodName)
-
-
-
Field Detail
-
NONE
public static final InvokeReplacer NONE
-
owner
protected final java.lang.String owner
-
methodName
protected final java.lang.String methodName
-
passOwnerName
protected boolean passOwnerName
-
passMethodName
protected boolean passMethodName
-
passMethodSignature
protected boolean passMethodSignature
-
passThis
protected boolean passThis
-
passTargetClass
protected boolean passTargetClass
-
-
Method Detail
-
with
public static InvokeReplacer with(java.lang.String classCanonicalName, java.lang.String methodName)
-
with
public static InvokeReplacer with(java.lang.Class target, java.lang.String methodName)
-
getOwner
public java.lang.String getOwner()
-
getMethodName
public java.lang.String getMethodName()
-
isPassOwnerName
public boolean isPassOwnerName()
-
setPassOwnerName
public void setPassOwnerName(boolean passOwnerName)
-
passOwnerName
public InvokeReplacer passOwnerName(boolean passOwnerName)
-
isPassMethodName
public boolean isPassMethodName()
-
setPassMethodName
public void setPassMethodName(boolean passMethodName)
-
passMethodName
public InvokeReplacer passMethodName(boolean passMethodName)
-
isPassMethodSignature
public boolean isPassMethodSignature()
-
setPassMethodSignature
public void setPassMethodSignature(boolean passMethodSignature)
-
passMethodSignature
public InvokeReplacer passMethodSignature(boolean passMethodSignature)
-
isPassThis
public boolean isPassThis()
-
setPassThis
public void setPassThis(boolean passThis)
-
passThis
public InvokeReplacer passThis(boolean passThis)
-
isPassTargetClass
public boolean isPassTargetClass()
-
setPassTargetClass
public void setPassTargetClass(boolean passTargetClass)
-
passTargetClass
public InvokeReplacer passTargetClass(boolean passTargetClass)
-
isNone
public boolean isNone()
-
-