|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cs.findbugs.ba.vna.LoadedFieldSet
public class LoadedFieldSet
Object which stores which fields are loaded and stored by the instructions in a method (including through inner-class access methods), and also which fields are loaded/stored by the overall method. The main purpose is for doing redundant load elimination and forward substitution more efficiently, but it might be useful in other situations.
| Nested Class Summary | |
|---|---|
static class |
LoadedFieldSet.LoadStoreCount
Count number of times a field is loaded and/or stored in the method. |
| Constructor Summary | |
|---|---|
LoadedFieldSet(org.apache.bcel.generic.MethodGen methodGen)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addLoad(org.apache.bcel.generic.InstructionHandle handle,
XField field)
Add a load of given field at given instruction. |
void |
addStore(org.apache.bcel.generic.InstructionHandle handle,
XField field)
Add a store of given field at given instruction. |
XField |
getField(org.apache.bcel.generic.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(org.apache.bcel.generic.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LoadedFieldSet(org.apache.bcel.generic.MethodGen methodGen)
methodGen - the method being analyzed for loads/stores| Method Detail |
|---|
public LoadedFieldSet.LoadStoreCount getLoadStoreCount(XField field)
field - the field
public void addLoad(org.apache.bcel.generic.InstructionHandle handle,
XField field)
handle - the instructionfield - the field
public void addStore(org.apache.bcel.generic.InstructionHandle handle,
XField field)
handle - the instructionfield - the fieldpublic XField getField(org.apache.bcel.generic.InstructionHandle handle)
handle - the instruction
public boolean isLoaded(XField field)
field - the field
public boolean instructionIsLoad(org.apache.bcel.generic.InstructionHandle handle)
handle - the instruction
|
FindBugs™ 1.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||