public class ClassGetResourceMethodCallAnalyzer extends AMethodCodeAnalyzer
Class.getResource(String).| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME |
static java.lang.String |
CLASS_PATH |
static java.lang.String |
METHOD_NAME |
static java.lang.String |
METHOD_SIGNATURE |
static java.lang.String |
SIMPLE_CLASS_NAME |
static java.lang.String |
SOURCE_INDICATOR |
NOT_PRESENT| Constructor and Description |
|---|
ClassGetResourceMethodCallAnalyzer() |
| Modifier and Type | Method and Description |
|---|---|
void |
analyzeMethod(org.apache.bcel.classfile.Method method,
java.util.function.Consumer<MethodInvocationInformation> callback)
Analysis the given method and invokes the given callback
for any found element.
|
protected MethodInvocationInformation |
createInvocationInfo(java.lang.String invokerMethodName) |
protected int |
detectPoolIndexOfMethod()
Subclasses should override this to return the correct pool index
of the method of interest.
|
protected boolean |
handle_LDC_W(org.apache.bcel.classfile.Method method,
java.util.function.Consumer<MethodInvocationInformation> callback,
InstructionsExaminer examiner,
org.apache.bcel.generic.Instruction instruction) |
static boolean |
isResponsibleFor(MethodInvocationInformation invocationInfo)
Returns true if the given invocation information is for the exact class and method
this analyzer is responsible for.
|
analyzeMethod, futil, getConstantPool, getConstantString, getJavaClass, getPoolIndexOfMethod, init, isInvokingMethodOfInterest, isRelevant, setJavaClass, setPoolIndexOfMethodpublic static final java.lang.String SIMPLE_CLASS_NAME
public static final java.lang.String CLASS_NAME
public static final java.lang.String CLASS_PATH
public static final java.lang.String METHOD_NAME
public static final java.lang.String SOURCE_INDICATOR
public static final java.lang.String METHOD_SIGNATURE
public static boolean isResponsibleFor(MethodInvocationInformation invocationInfo)
protected int detectPoolIndexOfMethod()
AMethodCodeAnalyzerdetectPoolIndexOfMethod in class AMethodCodeAnalyzerpublic void analyzeMethod(org.apache.bcel.classfile.Method method,
java.util.function.Consumer<MethodInvocationInformation> callback)
IMethodCodeAnalyzerprotected boolean handle_LDC_W(org.apache.bcel.classfile.Method method,
java.util.function.Consumer<MethodInvocationInformation> callback,
InstructionsExaminer examiner,
org.apache.bcel.generic.Instruction instruction)
protected MethodInvocationInformation createInvocationInfo(java.lang.String invokerMethodName)