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

public class IntentContext extends Object implements com.ibm.wala.ipa.callgraph.Context
Wraps an Intent to be suitable to be a Context-Element.

This class takes a parent so we don't loose information by overwriting.

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 Intent.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    IntentContext(com.ibm.wala.ipa.callgraph.Context parent, Intent intent)
     
  • 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

    • INTENT_KEY

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

    • IntentContext

      public IntentContext(Intent intent)
    • IntentContext

      public IntentContext(com.ibm.wala.ipa.callgraph.Context parent, Intent intent)
  • Method Details

    • 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
    • getIntent

      public Intent getIntent()