Class DelegatingSSAContextInterpreter
java.lang.Object
com.ibm.wala.ipa.callgraph.propagation.rta.DelegatingRTAContextInterpreter
com.ibm.wala.ipa.callgraph.propagation.cfa.DelegatingSSAContextInterpreter
- All Implemented Interfaces:
CHAContextInterpreter, RTAContextInterpreter, SSAContextInterpreter
public class DelegatingSSAContextInterpreter
extends DelegatingRTAContextInterpreter
implements SSAContextInterpreter
An
SSAContextInterpreter that first checks with A, then defaults to B.-
Constructor Summary
ConstructorsConstructorDescriptionneither A nor B should be null. -
Method Summary
Modifier and TypeMethodDescriptionintgetNumberOfStatements(CGNode node) booleanrecordFactoryType(CGNode node, IClass klass) record that the "factory" method of a node should be interpreted to allocate a particular class.booleanunderstands(CGNode node) Does this object understand the given method? The caller had better check this before inquiring on other properties.Methods inherited from class DelegatingRTAContextInterpreter
iterateCallSites, iterateFieldsRead, iterateFieldsWritten, iterateNewSites, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface CHAContextInterpreter
iterateCallSitesMethods inherited from interface RTAContextInterpreter
iterateFieldsRead, iterateFieldsWritten, iterateNewSites
-
Constructor Details
-
DelegatingSSAContextInterpreter
neither A nor B should be null.
-
-
Method Details
-
getIR
- Specified by:
getIRin interfaceSSAContextInterpreter- Returns:
- the IR that models the method context, or null if it's an unmodelled native method
-
getIRView
- Specified by:
getIRViewin interfaceSSAContextInterpreter
-
getNumberOfStatements
- Specified by:
getNumberOfStatementsin interfaceSSAContextInterpreter- Returns:
- the number of the statements in the IR, or -1 if it's an unmodelled native method.
-
understands
Description copied from interface:CHAContextInterpreterDoes this object understand the given method? The caller had better check this before inquiring on other properties.- Specified by:
understandsin interfaceCHAContextInterpreter- Overrides:
understandsin classDelegatingRTAContextInterpreter
-
recordFactoryType
Description copied from interface:RTAContextInterpreterrecord that the "factory" method of a node should be interpreted to allocate a particular class.TODO: this is a little ugly, is there a better place to move this?
- Specified by:
recordFactoryTypein interfaceRTAContextInterpreter- Overrides:
recordFactoryTypein classDelegatingRTAContextInterpreter- Returns:
- true iff a NEW type was recorded, false if the type was previously recorded.
-
getCFG
- Specified by:
getCFGin interfaceSSAContextInterpreter
-
getDU
- Specified by:
getDUin interfaceSSAContextInterpreter- Returns:
- DefUse for the IR that models the method context, or null if it's an unmodelled native method
-