|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.jdeveloper.audit.java.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" 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()
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
.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.