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)
END Custom change: caching
|
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 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)
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)