public class ReflectiveInvocationInterpreter extends AbstractReflectionInterpreter
SSAContextInterpreter specialized to interpret reflective invocations such as
Constructor.newInstance and Method.invoke on an IMethod constant.AbstractReflectionInterpreter.IgnoreSerializableWarning, AbstractReflectionInterpreter.ManySubtypesWarning, AbstractReflectionInterpreter.NoSubtypesWarning, AbstractReflectionInterpreter.SpecializedMethod| Modifier and Type | Field and Description |
|---|---|
static MethodReference |
CTOR_NEW_INSTANCE |
static MethodReference |
METHOD_INVOKE |
CONE_BOUND, DEBUG, indexLocal, options, typeIndexMap| Constructor and Description |
|---|
ReflectiveInvocationInterpreter() |
| 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 MethodReference CTOR_NEW_INSTANCE
public static final MethodReference METHOD_INVOKE
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)