public class SpecializedInstantiator extends FlatInstantiator
Constructor and Description |
---|
SpecializedInstantiator(VolatileMethodSummary body,
TypeSafeInstructionFactory instructionFactory,
SSAValueManager pm,
IClassHierarchy cha,
MethodReference scope,
AnalysisScope analysisScope,
IInstantiator parent) |
Modifier and Type | Method and Description |
---|---|
SSAValue |
createContext(TypeReference T,
boolean asManaged,
SSAValue.VariableKey key,
Set<? extends SSAValue> seen)
Creates a new instance of android/content/Context.
|
SSAValue |
createContextWrapper(TypeReference T,
boolean asManaged,
SSAValue.VariableKey key,
Set<? extends SSAValue> seen) |
SSAValue |
createInstance(TypeReference T,
boolean asManaged,
SSAValue.VariableKey key,
Set<? extends SSAValue> seen)
Creates a new instance of type calling all that's necessary.
|
int |
createInstance(TypeReference type,
Object... instantiatorArgs)
Satisfy the interface.
|
static boolean |
understands(TypeReference T) |
addCallCtor
public SpecializedInstantiator(VolatileMethodSummary body, TypeSafeInstructionFactory instructionFactory, SSAValueManager pm, IClassHierarchy cha, MethodReference scope, AnalysisScope analysisScope, IInstantiator parent)
public SSAValue createInstance(TypeReference T, boolean asManaged, SSAValue.VariableKey key, Set<? extends SSAValue> seen)
createInstance
in class FlatInstantiator
public static boolean understands(TypeReference T)
public SSAValue createContext(TypeReference T, boolean asManaged, SSAValue.VariableKey key, Set<? extends SSAValue> seen)
public SSAValue createContextWrapper(TypeReference T, boolean asManaged, SSAValue.VariableKey key, Set<? extends SSAValue> seen)
public int createInstance(TypeReference type, Object... instantiatorArgs)
createInstance
in interface IInstantiator
createInstance
in class FlatInstantiator
type
- Type to generate an instance frominstantiatorArgs
- passed through utility functions