public class ResourceBundleGetBundleMethodCallAnalyzer extends AMethodCodeAnalyzer
ResourceBundle.getBundle(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 |
---|
ResourceBundleGetBundleMethodCallAnalyzer() |
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(org.apache.bcel.classfile.Method method,
java.util.function.Consumer<MethodInvocationInformation> callback,
InstructionsExaminer examiner,
org.apache.bcel.generic.Instruction instruction) |
analyzeMethod, futil, getConstantPool, getConstantString, getJavaClass, getPoolIndexOfMethod, init, isInvokingMethodOfInterest, isRelevant, setJavaClass, setPoolIndexOfMethod
public 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 ResourceBundleGetBundleMethodCallAnalyzer()
protected int detectPoolIndexOfMethod()
AMethodCodeAnalyzer
detectPoolIndexOfMethod
in class AMethodCodeAnalyzer
public void analyzeMethod(org.apache.bcel.classfile.Method method, java.util.function.Consumer<MethodInvocationInformation> callback)
IMethodCodeAnalyzer
protected boolean handle_LDC(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)