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

    Fields
    Modifier and Type
    Field
    Description
    protected com.ibm.wala.ipa.callgraph.MethodTargetSelector
     
    protected com.ibm.wala.ipa.callgraph.MethodTargetSelector
     
    protected final HashMap<com.ibm.wala.types.MethodReference,com.ibm.wala.ipa.summaries.SummarizedMethod>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    StartComponentMethodTargetSelector(HashMap<com.ibm.wala.types.MethodReference,com.ibm.wala.ipa.summaries.SummarizedMethod> syntheticMethods, com.ibm.wala.ipa.callgraph.MethodTargetSelector child)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    void
    setChild(com.ibm.wala.ipa.callgraph.MethodTargetSelector child)
    The MethodTarget selector to ask when the Method could not be resolved by this one.
    void
    setParent(com.ibm.wala.ipa.callgraph.MethodTargetSelector parent)
    The MethodTarget selector to ask before trying to resolve the Method with this one.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 override
      child - 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:
      getCalleeTarget in interface com.ibm.wala.ipa.callgraph.MethodTargetSelector