Class Intent

    • Field Detail

      • INTENT_KEY

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

        public static final Atom UNBOUND
      • uri

        public Atom uri
    • Constructor Detail

      • Intent

        public Intent()
      • Intent

        public Intent​(String action)
      • Intent

        public Intent​(Atom action)
      • Intent

        public Intent​(Atom action,
                      Atom uri)
      • Intent

        public Intent​(TypeName action)
    • Method Detail

      • setExplicit

        public void setExplicit()
      • isExplicit

        public boolean isExplicit()
      • setImmutable

        public void setImmutable()
      • setActionExplicit

        public void setActionExplicit​(Atom action)
        Set the explicit target of the intent. If setAction is called multible times on an Intent it becomes UNBOUND.
      • unbind

        public void unbind()
      • setAction

        public void setAction​(Atom action)
        Set the target of the intent. If setAction is called multible times on an Intent it becomes UNBOUND.
      • getAction

        public Atom getAction()
      • getComponent

        public AndroidComponent getComponent()
        Return the type of Component associated with this Intent. May return null (especially on an UNKNOWN target). The IntentContextInterpreter uses the IntentStarters.StartInfo to determine the Target. However it is nicer to set the Component here.
      • isInternal

        public boolean isInternal​(boolean strict)
        Is the Intents target internally resolvable.
        Parameters:
        strict - if false return unknown target as internal
        Returns:
        if the Intent is associated to a class in the analyzed application.
      • isExternal

        public boolean isExternal​(boolean strict)
        Has the target to be resolved by an external App. The Intent is not associated to a class in this application or it's a Standard action defined in the Android Reference Manual.
        Parameters:
        strict - if false return unknown target as external
      • isStandard

        public boolean isStandard​(boolean strict)
        Is the Intent one of the System-Defined ones. It's a Standard action defined in the Android Reference Manual. Implies isExternal.
        Parameters:
        strict - if false return unknown target as standard
      • hashCode

        public int hashCode()
        CLASHES: Does not consider intent-type. This clash is however intended: This aids in resolving the override of an Intent. The AndroidEntryPointManager generates new Intent Objects. Instead of searching all overrides we get it for free.
        Overrides:
        hashCode in class Object
      • equalAction

        public boolean equalAction​(Intent other)
        Does not consider the associated URI.
      • equals

        public boolean equals​(Object o)
        Intents are equal to Intents with other type. This clash is however intended: This aids in resolving the override of an Intent. The AndroidEntryPointManager generates new Intent Objects. Instead of searching all overrides we get it for free.
        Overrides:
        equals in class Object
      • resolve

        public Intent resolve()