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) |
| Modifier and Type | Method and Description |
|---|---|
ControlFlowGraph<SSAInstruction,ISSABasicBlock> |
getCFG(CGNode N) |
DefUse |
getDU(CGNode node) |
IR |
getIR(CGNode node) |
IRView |
getIRView(CGNode node) |
int |
getNumberOfStatements(CGNode node) |
java.util.Iterator<CallSiteReference> |
iterateCallSites(CGNode node) |
java.util.Iterator<FieldReference> |
iterateFieldsRead(CGNode node) |
java.util.Iterator<FieldReference> |
iterateFieldsWritten(CGNode node) |
java.util.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, typeRef2TypeAbstractionpublic 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)
CHAContextInterpreterpublic java.util.Iterator<NewSiteReference> iterateNewSites(CGNode node)
public java.util.Iterator<CallSiteReference> iterateCallSites(CGNode node)
public boolean recordFactoryType(CGNode node, IClass klass)
RTAContextInterpreterTODO: this is a little ugly, is there a better place to move this?
public java.util.Iterator<FieldReference> iterateFieldsRead(CGNode node)
public java.util.Iterator<FieldReference> iterateFieldsWritten(CGNode node)
public ControlFlowGraph<SSAInstruction,ISSABasicBlock> getCFG(CGNode N)