Class AbstractReflectionInterpreter
java.lang.Object
com.ibm.wala.analysis.reflection.AbstractReflectionInterpreter
- All Implemented Interfaces:
CHAContextInterpreter, RTAContextInterpreter, SSAContextInterpreter
- Direct Known Subclasses:
ClassNewInstanceContextInterpreter, FactoryBypassInterpreter, ReflectiveInvocationInterpreter
An abstract superclass of various
SSAContextInterpreters that deal with reflection
methods.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA warning when we find flow of a factory allocation to a cast toSerializableprotected static classA warning when we expect excessive pollution from a factory methodprotected static classA warning when we fail to find subtypes for a factory methodprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IAnalysisCacheViewcache of analysis informationprotected static final intprotected static final booleanprotected intprotected AnalysisOptionsGoverning analysis optionsprotected final Map<TypeReference, Integer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected intprotected intprotected intprotected TypeAbstractiontypeRef2TypeAbstraction(IClassHierarchy cha, TypeReference type) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CHAContextInterpreter
iterateCallSites, understandsMethods inherited from interface RTAContextInterpreter
iterateFieldsRead, iterateFieldsWritten, iterateNewSites, recordFactoryTypeMethods inherited from interface SSAContextInterpreter
getCFG, getDU, getIR, getIRView, getNumberOfStatements
-
Field Details
-
DEBUG
protected static final boolean DEBUG- See Also:
-
CONE_BOUND
protected static final int CONE_BOUND- See Also:
-
indexLocal
protected int indexLocal -
typeIndexMap
-
options
Governing analysis options -
cache
cache of analysis information
-
-
Constructor Details
-
AbstractReflectionInterpreter
public AbstractReflectionInterpreter()
-
-
Method Details
-
getLocalForType
-
getExceptionsForType
-
getCallSiteForType
-
getNewSiteForType
-
typeRef2TypeAbstraction
- Returns:
- a TypeAbstraction object representing this type. We just use ConeTypes by default, since we don't propagate information allowing us to distinguish between points and cones yet.
-