|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.audit.java.Visibility
public class Visibility
A type-safe enumeration of Java access modifiers which map to the constants in Modifier
. The comparison order is:
.PRIVATE
< DEFAULT
< PROTECTED
< PUBLIC
Field Summary | |
---|---|
static Visibility |
DEFAULT Visibility "default" (aka "package private") corresponding to 0 . |
static Visibility |
PRIVATE Visibility private corresponding to Modifier.PRIVATE . |
static Visibility |
PROTECTED Visibility protected corresponding to Modifier.PROTECTED . |
static Visibility |
PUBLIC Visibility protected corresponding to Modifier.PROTECTED . |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object object) Compares this visibility with another. |
int |
getModifier() Gets the Modifier integer representing this visibility. |
java.lang.String |
toString() Gets the string identifying this visibility: "private", "default", "protected', or "public". |
static Visibility |
valueOf(int modifiers) Gets the visibility corresponding to a Modifier integer. |
static Visibility |
valueOf(java.lang.String string) Gets the visibility corresponding to a string, or null if the string is not one of "private", "default", "protected", or "public". |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Visibility PRIVATE
private
corresponding to Modifier.PRIVATE
.public static final Visibility DEFAULT
0
.public static final Visibility PROTECTED
protected
corresponding to Modifier.PROTECTED
.public static final Visibility PUBLIC
protected
corresponding to Modifier.PROTECTED
.Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
- A visibility.java.lang.ClassCastException
- if object
is not a Visibility
.public static Visibility valueOf(java.lang.String string)
public static Visibility valueOf(int modifiers)
Modifier
integer. If the integer indicates more than one visibility, the most visible one is returned (e.g. for Modifier.PUBLIC | Modifier.PRIVATE
, PUBLIC
is returned).public int getModifier()
Modifier
integer representing this visibility. Gets 0
for DEFAULT
.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |