|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.futureshocked.classloader.InterceptedMethod
public class InterceptedMethod
InterceptedMethod contains the class name, method name, method description, and information relating to which code modifications should be done to this method.
Field Summary | |
---|---|
private boolean |
addRecursionLimiter
true if this method should have it's recursion limited. |
private boolean |
addStaticDebuggerCall
true if this method should have a static debugger call inserted. |
private java.lang.String |
className
The name of the class this method belongs to. |
private java.lang.String |
description
The method description - if null will match all overloaded methods with the same name. |
private int |
maxRecursionCount
The maximum recusion level for this class (if limited). |
private java.lang.String |
methodName
The name of the method to intercept. |
private int |
staticDebuggerCount
The maximum depth for the static debugger. |
Constructor Summary | |
---|---|
InterceptedMethod(java.lang.String clazz,
java.lang.String method)
Constructor that sets description to null - ie: match all overloaded methods. |
|
InterceptedMethod(java.lang.String clazz,
java.lang.String method,
java.lang.String desc)
Constructor that sets all matching variables - ie: match specific method |
Method Summary | |
---|---|
java.lang.String |
getClassName()
|
java.lang.String |
getDescription()
|
int |
getMaxRecursionCount()
|
java.lang.String |
getMethodName()
|
int |
getStaticDebuggerCallDepth()
|
boolean |
matches(java.lang.String className,
java.lang.String method,
java.lang.String desc)
Used to match this object against a method being visited. |
boolean |
needsRecursionLimiter()
Checks to see if this method should have it's recursion limited. |
boolean |
needsStaticDebuggerCall()
Checks to see if this method should have a static debugger call inserted. |
void |
removeRecursionLimiter()
|
void |
removeStaticDebuggerCall()
|
void |
setClassName(java.lang.String className)
|
void |
setDescription(java.lang.String description)
|
void |
setMethodName(java.lang.String methodName)
|
void |
setRecursionLimiter(int maxRecursionDepth)
|
void |
setStaticDebuggerCall(int maxRecursionDepth)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String className
private java.lang.String methodName
private java.lang.String description
private int staticDebuggerCount
private int maxRecursionCount
private boolean addStaticDebuggerCall
private boolean addRecursionLimiter
Constructor Detail |
---|
public InterceptedMethod(java.lang.String clazz, java.lang.String method)
clazz
- The name of the class.method
- The name of the method.public InterceptedMethod(java.lang.String clazz, java.lang.String method, java.lang.String desc)
clazz
- The name of the class.method
- The name of the method.desc
- The method description.Method Detail |
---|
public boolean matches(java.lang.String className, java.lang.String method, java.lang.String desc)
className
- The name of the class currently being visited.method
- The name of the method currently being visited.desc
- The description of the method currently being visited.
public java.lang.String getClassName()
public void setClassName(java.lang.String className)
public java.lang.String getMethodName()
public void setMethodName(java.lang.String methodName)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean needsStaticDebuggerCall()
public int getStaticDebuggerCallDepth()
public void setStaticDebuggerCall(int maxRecursionDepth)
public void removeStaticDebuggerCall()
public boolean needsRecursionLimiter()
public int getMaxRecursionCount()
public void setRecursionLimiter(int maxRecursionDepth)
public void removeRecursionLimiter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |