Enum Class ContextAccessType

java.lang.Object
java.lang.Enum<ContextAccessType>
com.pnfsoftware.jeb.core.units.code.android.ContextAccessType
All Implemented Interfaces:
Serializable, Comparable<ContextAccessType>, Constable

public enum ContextAccessType extends Enum<ContextAccessType>
Define the type of context-access performed by an Android method. The context-access is a combination of context-sensitivity (for read operations) and side-effect information (for write operations).
See Also:
  • Enum Constant Details

    • NONE

      public static final ContextAccessType NONE
      Context-insensitive, side-effect-free.
    • READ_ONLY

      public static final ContextAccessType READ_ONLY
      Context-sensitive, side-effect-free.
    • WRITE_ONLY

      public static final ContextAccessType WRITE_ONLY
      Context-insensitive, has side-effects.
    • READ_WRITE

      public static final ContextAccessType READ_WRITE
      Context-sensitive, has side-effects.
    • UNKNOWN

      public static final ContextAccessType UNKNOWN
      Unknown. Treated as .
  • Method Details

    • values

      public static ContextAccessType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ContextAccessType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isCI

      public boolean isCI()
      Returns:
      true if the access type is context-insensitive (does not read)
    • reads

      public boolean reads()
      Returns:
      the opposite of isCI
    • isSEF

      public boolean isSEF()
      Returns:
      true if the access type is side-effect-free (does not write)
    • writes

      public boolean writes()
      Returns:
      the opposite of isSEF
    • get

      public static ContextAccessType get(boolean ci, boolean sef)
    • addAccess

      public ContextAccessType addAccess(ContextAccessType other)
    • isAllAccess

      public boolean isAllAccess()