public final enum


extends Enum<E extends Enum<E>>
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>

Class Overview

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).


Enum Values
ContextAccessType  NONE  Context-insensitive, side-effect-free. 
ContextAccessType  READ_ONLY  Context-sensitive, side-effect-free. 
ContextAccessType  READ_WRITE  Context-sensitive, has side-effects. 
ContextAccessType  UNKNOWN  Unknown. 
ContextAccessType  WRITE_ONLY  Context-insensitive, has side-effects. 
Public Methods
ContextAccessType addAccess(ContextAccessType other)
static ContextAccessType get(boolean ci, boolean sef)
boolean isAllAccess()
boolean isCI()
boolean isSEF()
boolean reads()
static ContextAccessType valueOf(String name)
final static ContextAccessType[] values()
boolean writes()
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final ContextAccessType NONE

Context-insensitive, side-effect-free.

public static final ContextAccessType READ_ONLY

Context-sensitive, side-effect-free.

public static final ContextAccessType READ_WRITE

Context-sensitive, has side-effects.

public static final ContextAccessType UNKNOWN

Unknown. Treated as {@value #READ_WRITE}.

public static final ContextAccessType WRITE_ONLY

Context-insensitive, has side-effects.

Public Methods

public ContextAccessType addAccess (ContextAccessType other)

public static ContextAccessType get (boolean ci, boolean sef)

public boolean isAllAccess ()

public boolean isCI ()

  • true if the access type is context-insensitive (does not read)

public boolean isSEF ()

  • true if the access type is side-effect-free (does not write)

public boolean reads ()

  • the opposite of isCI

public static ContextAccessType valueOf (String name)

public static final ContextAccessType[] values ()

public boolean writes ()

  • the opposite of isSEF