Class CalledMethodsAnalysis
java.lang.Object
org.checkerframework.dataflow.analysis.AbstractAnalysis<AccumulationValue,AccumulationStore,AccumulationTransfer>
org.checkerframework.dataflow.analysis.ForwardAnalysisImpl<AccumulationValue,AccumulationStore,AccumulationTransfer>
org.checkerframework.framework.flow.CFAbstractAnalysis<AccumulationValue,AccumulationStore,AccumulationTransfer>
org.checkerframework.common.accumulation.AccumulationAnalysis
org.checkerframework.checker.calledmethods.CalledMethodsAnalysis
- All Implemented Interfaces:
Analysis<AccumulationValue,,AccumulationStore, AccumulationTransfer> ForwardAnalysis<AccumulationValue,AccumulationStore, AccumulationTransfer>
- Direct Known Subclasses:
RLCCalledMethodsAnalysis
The analysis for the Called Methods Checker. The analysis is specialized to ignore certain
exception types; see
isIgnoredExceptionType(TypeMirror).-
Nested Class Summary
Nested classes/interfaces inherited from class org.checkerframework.framework.flow.CFAbstractAnalysis
CFAbstractAnalysis.FieldInitialValue<V extends CFAbstractValue<V>>Nested classes/interfaces inherited from class org.checkerframework.dataflow.analysis.AbstractAnalysis
AbstractAnalysis.WorklistNested classes/interfaces inherited from interface org.checkerframework.dataflow.analysis.Analysis
Analysis.BeforeOrAfter, Analysis.Direction -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Set<@CanonicalName String> The fully-qualified names of the exception types that are ignored by this checker when computing dataflow stores.Fields inherited from class org.checkerframework.framework.flow.CFAbstractAnalysis
atypeFactory, checker, dependentTypesHelper, env, fieldValues, qualHierarchy, typeHierarchy, typesFields inherited from class org.checkerframework.dataflow.analysis.ForwardAnalysisImpl
blockCount, elseStores, maxCountBeforeWidening, storesAtReturnStatements, thenStoresFields inherited from class org.checkerframework.dataflow.analysis.AbstractAnalysis
cfg, currentInput, currentNode, currentTree, direction, finalLocalValues, inputs, isRunning, nodeValues, transferFunction, worklist -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCalledMethodsAnalysis(BaseTypeChecker checker, CalledMethodsAnnotatedTypeFactory factory) Creates a newCalledMethodsAnalysis. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisIgnoredExceptionType(TypeMirror exceptionType) Ignore exceptional control flow due to ignored exception types.Methods inherited from class org.checkerframework.common.accumulation.AccumulationAnalysis
createAbstractValue, createCopiedStore, createEmptyStoreMethods inherited from class org.checkerframework.framework.flow.CFAbstractAnalysis
callTransferFunction, createAbstractValue, createSingleAnnotationValue, createTransferFunction, defaultCreateAbstractValue, getEnv, getFieldInitialValues, getTypeFactory, getTypeHierarchy, getTypes, performAnalysisMethods inherited from class org.checkerframework.dataflow.analysis.ForwardAnalysisImpl
addStoreBefore, getInput, getInputBefore, getReturnStatementStores, getStoreBefore, initFields, initInitialInputs, performAnalysis, performAnalysisBlock, propagateStoresTo, runAnalysisForMethods inherited from class org.checkerframework.dataflow.analysis.AbstractAnalysis
addToWorklist, getContainingClass, getContainingMethod, getCurrentTree, getDirection, getEnclosingClass, getEnclosingMethod, getExceptionalExitStore, getNodesForTree, getNodeValues, getRegularExitStore, getResult, getTransferFunction, getValue, getValue, init, isRunning, setCurrentNode, setCurrentTree, updateNodeValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.checkerframework.dataflow.analysis.Analysis
getDirection, getExceptionalExitStore, getRegularExitStore, getResult, getTransferFunction, getValue, getValue, isRunning
-
Field Details
-
ignoredExceptionTypes
The fully-qualified names of the exception types that are ignored by this checker when computing dataflow stores.
-
-
Constructor Details
-
CalledMethodsAnalysis
Creates a newCalledMethodsAnalysis.- Parameters:
checker- the checkerfactory- the factory
-
-
Method Details
-
isIgnoredExceptionType
Ignore exceptional control flow due to ignored exception types.- Overrides:
isIgnoredExceptionTypein classAbstractAnalysis<AccumulationValue,AccumulationStore, AccumulationTransfer> - Parameters:
exceptionType- exception type- Returns:
trueifexceptionTypeis a member ofignoredExceptionTypes,falseotherwise
-