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

public class IntentContext extends Object implements 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
Author:
Tobias Blaschke <code@tobiasblaschke.de>
  • Field Details

    • INTENT_KEY

      public static final ContextKey INTENT_KEY
      Key into the Context that represents the Intent.
  • Constructor Details

    • IntentContext

      public IntentContext(Intent intent)
    • IntentContext

      public IntentContext(Context parent, Intent intent)
  • Method Details

    • get

      public ContextItem get(ContextKey name)
      Looks up a ContextKey in the Context.
      Specified by:
      get in interface 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()