Class Overrides.StartComponentMethodTargetSelector
java.lang.Object
com.ibm.wala.dalvik.ipa.callgraph.androidModel.stubs.Overrides.StartComponentMethodTargetSelector
- All Implemented Interfaces:
com.ibm.wala.ipa.callgraph.MethodTargetSelector
- Enclosing class:
- Overrides
protected static class Overrides.StartComponentMethodTargetSelector
extends Object
implements com.ibm.wala.ipa.callgraph.MethodTargetSelector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.ibm.wala.ipa.callgraph.MethodTargetSelectorprotected com.ibm.wala.ipa.callgraph.MethodTargetSelectorprotected final HashMap<com.ibm.wala.types.MethodReference,com.ibm.wala.ipa.summaries.SummarizedMethod> -
Constructor Summary
ConstructorsConstructorDescriptionStartComponentMethodTargetSelector(HashMap<com.ibm.wala.types.MethodReference, com.ibm.wala.ipa.summaries.SummarizedMethod> syntheticMethods, com.ibm.wala.ipa.callgraph.MethodTargetSelector child) -
Method Summary
Modifier and TypeMethodDescriptioncom.ibm.wala.classLoader.IMethodgetCalleeTarget(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site, com.ibm.wala.classLoader.IClass receiver) voidsetChild(com.ibm.wala.ipa.callgraph.MethodTargetSelector child) The MethodTarget selector to ask when the Method could not be resolved by this one.voidsetParent(com.ibm.wala.ipa.callgraph.MethodTargetSelector parent) The MethodTarget selector to ask before trying to resolve the Method with this one.
-
Field Details
-
parent
protected com.ibm.wala.ipa.callgraph.MethodTargetSelector parent -
child
protected com.ibm.wala.ipa.callgraph.MethodTargetSelector child -
syntheticMethods
protected final HashMap<com.ibm.wala.types.MethodReference,com.ibm.wala.ipa.summaries.SummarizedMethod> syntheticMethods
-
-
Constructor Details
-
StartComponentMethodTargetSelector
public StartComponentMethodTargetSelector(HashMap<com.ibm.wala.types.MethodReference, com.ibm.wala.ipa.summaries.SummarizedMethod> syntheticMethods, com.ibm.wala.ipa.callgraph.MethodTargetSelector child) - Parameters:
syntheticMethods- The Methods to overridechild- Ask child if unable to resolve. May be null
-
-
Method Details
-
setParent
public void setParent(com.ibm.wala.ipa.callgraph.MethodTargetSelector parent) The MethodTarget selector to ask before trying to resolve the Method with this one.- Throws:
IllegalStateException- if tried to set parent twice
-
setChild
public void setChild(com.ibm.wala.ipa.callgraph.MethodTargetSelector child) The MethodTarget selector to ask when the Method could not be resolved by this one.In order to be able to use this function you have to set null as child in the Constructor.
- Throws:
IllegalStateException- if tried to set parent twice
-
getCalleeTarget
public com.ibm.wala.classLoader.IMethod getCalleeTarget(com.ibm.wala.ipa.callgraph.CGNode caller, com.ibm.wala.classLoader.CallSiteReference site, com.ibm.wala.classLoader.IClass receiver) - Specified by:
getCalleeTargetin interfacecom.ibm.wala.ipa.callgraph.MethodTargetSelector
-