java.lang.Object
com.ibm.wala.dalvik.ipa.callgraph.propagation.cfa.AndroidContext
All Implemented Interfaces:
com.ibm.wala.ipa.callgraph.Context, com.ibm.wala.ipa.callgraph.ContextItem

public class AndroidContext extends Object implements com.ibm.wala.ipa.callgraph.Context
Fetches an android/content/Context.
Since:
2013-10-14
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.ibm.wala.ipa.callgraph.ContextItem

    com.ibm.wala.ipa.callgraph.ContextItem.Value<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.ibm.wala.ipa.callgraph.ContextKey
    Key into the Context that represents the AndroidContext.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AndroidContext(com.ibm.wala.ipa.callgraph.Context parent, AndroidTypes.AndroidContextType aCtxT)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Special equality: Object may be equal to an object without associated Intent.
    com.ibm.wala.ipa.callgraph.ContextItem
    get(com.ibm.wala.ipa.callgraph.ContextKey name)
    Looks up a ContextKey in the Context.
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.ibm.wala.ipa.callgraph.Context

    isA
  • Field Details

    • ANDROID_CONTEXT_KEY

      public static final com.ibm.wala.ipa.callgraph.ContextKey ANDROID_CONTEXT_KEY
      Key into the Context that represents the AndroidContext.
  • Constructor Details

  • Method Details

    • getContextType

      public AndroidTypes.AndroidContextType getContextType()
    • get

      public com.ibm.wala.ipa.callgraph.ContextItem get(com.ibm.wala.ipa.callgraph.ContextKey name)
      Looks up a ContextKey in the Context.
      Specified by:
      get in interface com.ibm.wala.ipa.callgraph.Context
      Returns:
      an Intent or parent-managed object.
      Throws:
      IllegalArgumentException - if the name is null.
    • equals

      public boolean equals(Object obj)
      Special equality: Object may be equal to an object without associated Intent.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object