edu.umd.cs.findbugs.ba.vna
public class LoadedFieldSet extends Object
Nested Class Summary | |
---|---|
static class | LoadedFieldSet.LoadStoreCount
Count number of times a field is loaded and/or stored in the method. |
Constructor Summary | |
---|---|
LoadedFieldSet(MethodGen methodGen)
Constructor.
|
Method Summary | |
---|---|
void | addLoad(InstructionHandle handle, XField field)
Add a load of given field at given instruction.
|
void | addStore(InstructionHandle handle, XField field)
Add a store of given field at given instruction.
|
XField | getField(InstructionHandle handle)
Get the field loaded or stored at given instruction, if any.
|
LoadedFieldSet.LoadStoreCount | getLoadStoreCount(XField field)
Get the number of times given field is loaded and stored
within the method. |
boolean | instructionIsLoad(InstructionHandle handle)
Return whether or not the given instruction is a load.
|
boolean | isLoaded(XField field)
Return whether or not the given field is loaded by any
instruction in the method.
|
Parameters: methodGen the method being analyzed for loads/stores
Parameters: handle the instruction field the field
Parameters: handle the instruction field the field
Parameters: handle the instruction
Returns: the field loaded or stored at the instruction, or null if the instruction is not a load or store
Parameters: field the field
Returns: the load/store count object
Parameters: handle the instruction
Returns: true if the instruction is a load, false if not
Parameters: field the field
Returns: true if the field is loaded somewhere in the method, false if it is never loaded