|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.reflect.AccessibleObject
public class AccessibleObject
AccessibleObject provides an super class for features Field, Method and Constructor that are accessible via reflection.
| Constructor Summary | |
|---|---|
protected |
AccessibleObject()
Constructor to create an instance of AccessibleObject that is neither a Field, nor a Method nor a Constructor. |
| Method Summary | ||
|---|---|---|
|
getAnnotation(Class<T> annotationType)
getAnnotation NYI: COMMENT: JDK 1.5 method description |
|
Annotation[] |
getAnnotations()
getAnnotations NYI: COMMENT: JDK 1.5 method description |
|
Annotation[] |
getDeclaredAnnotations()
getDeclaredAnnotations NYI: COMMENT: JDK 1.5 method description |
|
boolean |
isAccessible()
isAccessible check if this object is acccessible. |
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent NYI: COMMENT: JDK 1.5 method description |
|
static void |
setAccessible(AccessibleObject[] array,
boolean flag)
setAccessible enables or disables access to an array of accessible object. |
|
void |
setAccessible(boolean flag)
setAccessible enables or disables access to this accessible object. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AccessibleObject()
| Method Detail |
|---|
public static void setAccessible(AccessibleObject[] array,
boolean flag)
throws SecurityException
array - the arrayflag - true to enable access, false to disable access.
SecurityException - if security manager sm is installed and
sm.checkPermission(new ReflectPermission("suppressAccessChecks"))
throws this exception or flag is true and the accessibility
cannot be changed.
public void setAccessible(boolean flag)
throws SecurityException
flag - true to enable access, false to disable access.
SecurityException - if security manager sm is installed and
sm.checkPermission(new ReflectPermission("suppressAccessChecks"))
throws this exception or flag is true and the accessibility
cannot be changed.public boolean isAccessible()
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
NYI: COMMENT: JDK 1.5 method description
isAnnotationPresent in interface AnnotatedElementannotationType -
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
NYI: COMMENT: JDK 1.5 method description
getAnnotation in interface AnnotatedElementannotationType -
public Annotation[] getAnnotations()
NYI: COMMENT: JDK 1.5 method description
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
NYI: COMMENT: JDK 1.5 method description
getDeclaredAnnotations in interface AnnotatedElement
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||