public class ClassNewInstanceContextInterpreter extends AbstractReflectionInterpreter
SSAContextInterpreter
specialized to interpret Class.newInstance in a JavaTypeContext
which represents the
point-type of the class object created by the call.AbstractReflectionInterpreter.IgnoreSerializableWarning, AbstractReflectionInterpreter.ManySubtypesWarning, AbstractReflectionInterpreter.NoSubtypesWarning, AbstractReflectionInterpreter.SpecializedMethod
Modifier and Type | Field and Description |
---|---|
static MethodReference |
CLASS_NEW_INSTANCE_REF |
static Atom |
newInstanceAtom |
CONE_BOUND, DEBUG, indexLocal, options, typeIndexMap
Constructor and Description |
---|
ClassNewInstanceContextInterpreter(IClassHierarchy cha)
END Custom change: caching
|
Modifier and Type | Method and Description |
---|---|
ControlFlowGraph<SSAInstruction,ISSABasicBlock> |
getCFG(CGNode N) |
DefUse |
getDU(CGNode node) |
IR |
getIR(CGNode node) |
int |
getNumberOfStatements(CGNode node) |
Iterator<CallSiteReference> |
iterateCallSites(CGNode node) |
Iterator<FieldReference> |
iterateFieldsRead(CGNode node) |
Iterator<FieldReference> |
iterateFieldsWritten(CGNode node) |
Iterator<NewSiteReference> |
iterateNewSites(CGNode node) |
boolean |
recordFactoryType(CGNode node,
IClass klass)
record that the "factory" method of a node should be interpreted to allocate a particular class.
|
boolean |
understands(CGNode node)
Does this object understand the given method? The caller had better check this before inquiring on other properties.
|
getCallSiteForType, getExceptionsForType, getLocalForType, getNewSiteForType, typeRef2TypeAbstraction
public static final Atom newInstanceAtom
public static final MethodReference CLASS_NEW_INSTANCE_REF
public ClassNewInstanceContextInterpreter(IClassHierarchy cha)
public IR getIR(CGNode node)
public int getNumberOfStatements(CGNode node)
public boolean understands(CGNode node)
CHAContextInterpreter
public Iterator<NewSiteReference> iterateNewSites(CGNode node)
public Iterator<CallSiteReference> iterateCallSites(CGNode node)
public boolean recordFactoryType(CGNode node, IClass klass)
RTAContextInterpreter
public Iterator<FieldReference> iterateFieldsRead(CGNode node)
public Iterator<FieldReference> iterateFieldsWritten(CGNode node)
public ControlFlowGraph<SSAInstruction,ISSABasicBlock> getCFG(CGNode N)