Package edu.umd.cs.findbugs.ba.ca
Class CallListAnalysis
- java.lang.Object
-
- edu.umd.cs.findbugs.ba.BasicAbstractDataflowAnalysis<Fact>
-
- edu.umd.cs.findbugs.ba.AbstractDataflowAnalysis<CallList>
-
- edu.umd.cs.findbugs.ba.ca.CallListAnalysis
-
- All Implemented Interfaces:
DataflowAnalysis<CallList>
public class CallListAnalysis extends AbstractDataflowAnalysis<CallList>
-
-
Constructor Summary
Constructors Constructor Description CallListAnalysis(CFG cfg, DepthFirstSearch dfs, org.apache.bcel.generic.ConstantPoolGen cpg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy(CallList source, CallList dest)Copy dataflow facts.CallListcreateFact()Create empty (uninitialized) dataflow facts for one program point.BlockOrdergetBlockOrder(CFG cfg)Return the BlockOrder specifying the order in which BasicBlocks should be visited in the main dataflow loop.voidinitEntryFact(CallList fact)Initialize the "entry" fact for the graph.booleanisFactValid(CallList fact)Determine whether the given fact is valid (neither top nor bottom).booleanisForwards()Returns true if the analysis is forwards, false if backwards.booleanisTop(CallList fact)Is the given fact the top value.voidmakeFactTop(CallList fact)Make given fact the top value.voidmeetInto(CallList start, Edge edge, CallList result)Meet a dataflow fact associated with an incoming edge into another fact.booleansame(CallList a, CallList b)Are given dataflow facts the same?voidtransferInstruction(org.apache.bcel.generic.InstructionHandle handle, BasicBlock basicBlock, CallList fact)Transfer function for a single instruction.-
Methods inherited from class edu.umd.cs.findbugs.ba.AbstractDataflowAnalysis
getFactAfterLocation, getFactAtLocation, transfer
-
Methods inherited from class edu.umd.cs.findbugs.ba.BasicAbstractDataflowAnalysis
edgeTransfer, factToString, finishIteration, getFactOnEdge, getLastUpdateTimestamp, getResultFact, getStartFact, resultFactIterator, setLastUpdateTimestamp, startIteration
-
-
-
-
Constructor Detail
-
CallListAnalysis
public CallListAnalysis(CFG cfg, DepthFirstSearch dfs, org.apache.bcel.generic.ConstantPoolGen cpg)
-
-
Method Detail
-
initEntryFact
public void initEntryFact(CallList fact)
Description copied from interface:DataflowAnalysisInitialize the "entry" fact for the graph.
-
isForwards
public boolean isForwards()
Description copied from interface:DataflowAnalysisReturns true if the analysis is forwards, false if backwards.
-
getBlockOrder
public BlockOrder getBlockOrder(CFG cfg)
Description copied from interface:DataflowAnalysisReturn the BlockOrder specifying the order in which BasicBlocks should be visited in the main dataflow loop.- Parameters:
cfg- the CFG upon which we're performing dataflow analysis
-
makeFactTop
public void makeFactTop(CallList fact)
Description copied from interface:DataflowAnalysisMake given fact the top value.
-
isTop
public boolean isTop(CallList fact)
Description copied from interface:DataflowAnalysisIs the given fact the top value.
-
createFact
public CallList createFact()
Description copied from interface:DataflowAnalysisCreate empty (uninitialized) dataflow facts for one program point. A valid value will be copied into it before it is used.
-
same
public boolean same(CallList a, CallList b)
Description copied from interface:DataflowAnalysisAre given dataflow facts the same?
-
meetInto
public void meetInto(CallList start, Edge edge, CallList result) throws DataflowAnalysisException
Description copied from interface:DataflowAnalysisMeet a dataflow fact associated with an incoming edge into another fact. This is used to determine the start fact for a basic block.- Parameters:
start- the predecessor fact (incoming edge)edge- the edge from the predecessorresult- the result fact- Throws:
DataflowAnalysisException
-
copy
public void copy(CallList source, CallList dest)
Description copied from interface:DataflowAnalysisCopy dataflow facts.
-
transferInstruction
public void transferInstruction(org.apache.bcel.generic.InstructionHandle handle, BasicBlock basicBlock, CallList fact) throws DataflowAnalysisExceptionDescription copied from class:AbstractDataflowAnalysisTransfer function for a single instruction.- Specified by:
transferInstructionin classAbstractDataflowAnalysis<CallList>- Parameters:
handle- the instructionbasicBlock- the BasicBlock containing the instruction; needed to disambiguate instructions in inlined JSR subroutinesfact- which should be modified based on the instruction- Throws:
DataflowAnalysisException
-
isFactValid
public boolean isFactValid(CallList fact)
Description copied from class:AbstractDataflowAnalysisDetermine whether the given fact is valid (neither top nor bottom).- Specified by:
isFactValidin classAbstractDataflowAnalysis<CallList>
-
-