|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.umd.cs.findbugs.ba.InnerClassAccessMap.InstructionCallback
private static class InnerClassAccessMap.InstructionCallback
Callback to scan an access method to determine what field it accesses, and whether the field is loaded or stored.
| Field Summary | |
|---|---|
private InnerClassAccess |
access
|
private int |
accessCount
|
private byte[] |
instructionList
|
private org.apache.bcel.classfile.JavaClass |
javaClass
|
private java.lang.String |
methodName
|
private java.lang.String |
methodSig
|
| Constructor Summary | |
|---|---|
InnerClassAccessMap.InstructionCallback(org.apache.bcel.classfile.JavaClass javaClass,
java.lang.String methodName,
java.lang.String methodSig,
byte[] instructionList)
Constructor. |
|
| Method Summary | |
|---|---|
InnerClassAccess |
getAccess()
Get the InnerClassAccess object representing the method. |
void |
handleInstruction(int opcode,
int index)
Called to indicate that a particular bytecode has been scanned. |
private boolean |
isValidAccessMethod(java.lang.String methodSig,
XField field,
boolean isLoad)
Determine if the method appears to be an accessor of the expected form. |
private void |
setField(int cpIndex,
boolean isStatic,
boolean isLoad)
Called to indicate that a field load or store was encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.apache.bcel.classfile.JavaClass javaClass
private java.lang.String methodName
private java.lang.String methodSig
private byte[] instructionList
private InnerClassAccess access
private int accessCount
| Constructor Detail |
|---|
public InnerClassAccessMap.InstructionCallback(org.apache.bcel.classfile.JavaClass javaClass,
java.lang.String methodName,
java.lang.String methodSig,
byte[] instructionList)
javaClass - the class containing the access methodmethodName - the name of the access methodmethodSig - the signature of the access methodinstructionList - the bytecode of the method| Method Detail |
|---|
public void handleInstruction(int opcode,
int index)
BytecodeScanner.Callback
handleInstruction in interface BytecodeScanner.Callbackopcode - the opcode of the instructionindex - the bytecode offset of the instructionpublic InnerClassAccess getAccess()
private void setField(int cpIndex,
boolean isStatic,
boolean isLoad)
cpIndex - the constant pool index of the fieldrefisStatic - true if it is a static field accessisLoad - true if the access is a load
private boolean isValidAccessMethod(java.lang.String methodSig,
XField field,
boolean isLoad)
methodSig - the method's signaturefield - the field accessed by the methodisLoad - true if the access is a load
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||