Package edu.umd.cs.findbugs.ba.bcp
Class Load
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.bcp.PatternElement
-
- edu.umd.cs.findbugs.ba.bcp.SingleInstruction
-
- edu.umd.cs.findbugs.ba.bcp.FieldAccess
-
- edu.umd.cs.findbugs.ba.bcp.Load
-
public class Load extends FieldAccess
A PatternElement representing a load from a field. Variables represent the field and the result of the load.- See Also:
PatternElement
-
-
Constructor Summary
Constructors Constructor Description Load(java.lang.String fieldVarName, java.lang.String resultVarName)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatchResultmatch(org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.generic.ConstantPoolGen cpg, ValueNumberFrame before, ValueNumberFrame after, BindingSet bindingSet)Return whether or not this element matches the given instruction with the given Bindings in effect.-
Methods inherited from class edu.umd.cs.findbugs.ba.bcp.FieldAccess
checkConsistent, isLongOrDouble, snarfFieldValue
-
Methods inherited from class edu.umd.cs.findbugs.ba.bcp.SingleInstruction
acceptBranch, maxOccur, minOccur
-
Methods inherited from class edu.umd.cs.findbugs.ba.bcp.PatternElement
addOrCheckDefinition, allowTrailingEdges, dominatedBy, getDominatedBy, getLabel, getNext, label, lookup, setAllowTrailingEdges, setIndex, setNext, toString
-
-
-
-
Method Detail
-
match
public MatchResult match(org.apache.bcel.generic.InstructionHandle handle, org.apache.bcel.generic.ConstantPoolGen cpg, ValueNumberFrame before, ValueNumberFrame after, BindingSet bindingSet) throws DataflowAnalysisException
Description copied from class:PatternElementReturn whether or not this element matches the given instruction with the given Bindings in effect.- Specified by:
matchin classPatternElement- Parameters:
handle- the instructioncpg- the ConstantPoolGen from the methodbefore- the ValueNumberFrame representing values in the Java stack frame just before the execution of the instructionafter- the ValueNumberFrame representing values in the Java stack frame just after the execution of the instructionbindingSet- the set of Bindings- Returns:
- if the match is successful, returns a MatchResult with the PatternElement and BindingSet; if the match is not successful, returns null
- Throws:
DataflowAnalysisException
-
-