de.grogra.reflect
public interface Member
Member is the superinterface for types, methods, and fields.
It describes the common functionality of these interfaces and defines
a set of int constants which are combined to encode
the modifiers of the member.| Modifier and Type | Field and Description |
|---|---|
static int |
ABSTRACT
Modifier for
abstract members. |
static int |
ACCESS_MODIFIERS
Mask for the access modifiers
public,
private, and protected. |
static int |
ARRAY
Modifier for classes which are arrays.
|
static int |
BRIDGE
Modifier for bridge methods.
|
static int |
CONSTANT
Modifier for fields which are compile-time constants.
|
static int |
FINAL
Modifier for
final members. |
static int |
INTERFACE
Modifier indicating that a type is an interface.
|
static int |
JAVA_MODIFIERS
Mask for all modifiers which are valid in the byte-code
of classes.
|
static int |
LOCAL_CLASS
Modifier for classes which are local classes.
|
static int |
MIN_UNUSED_MODIFIER
Minimal bit mask which is not defined by this interface.
|
static int |
NATIVE
Modifier for
native methods. |
static int |
PRIVATE
Modifier for
private members. |
static int |
PROTECTED
Modifier for
protected members. |
static int |
PUBLIC
Modifier for
public members. |
static int |
STATIC
Modifier for
static members. |
static int |
STRICT
Modifier for
strictfp members. |
static int |
SYNCHRONIZED
Modifier for
synchronized methods. |
static int |
SYNTHETIC
Modifier for synthetic members.
|
static int |
TRANSIENT
Modifier for
transient fields. |
static int |
VARARGS
Modifier for variable arity methods.
|
static int |
VOLATILE
Modifier for
volatile fields. |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
getDeclaredAnnotation(int index) |
int |
getDeclaredAnnotationCount() |
Type |
getDeclaringType()
Returns the declaring type of which this is a member.
|
java.lang.String |
getDescriptor()
Returns a descriptor for this member.
|
int |
getModifiers()
Returns the modifiers of this member as a combination of
the bit masks which are defined in this interface.
|
java.lang.String |
getName()
Returns the name of this member.
|
java.lang.String |
getSimpleName()
Returns the simple name of this member.
|
static final int ABSTRACT
abstract members.static final int ACCESS_MODIFIERS
public,
private, and protected.static final int ARRAY
static final int BRIDGE
static final int CONSTANT
static final int FINAL
final members.static final int INTERFACE
static final int JAVA_MODIFIERS
static final int LOCAL_CLASS
static final int MIN_UNUSED_MODIFIER
static final int NATIVE
native methods.static final int PRIVATE
private members.static final int PROTECTED
protected members.static final int PUBLIC
public members.static final int STATIC
static members.static final int STRICT
strictfp members.static final int SYNCHRONIZED
synchronized methods.static final int SYNTHETIC
static final int TRANSIENT
transient fields.static final int VARARGS
static final int VOLATILE
volatile fields.Annotation getDeclaredAnnotation(int index)
int getDeclaredAnnotationCount()
Type getDeclaringType()
null if such a type does not exist.java.lang.String getDescriptor()
boolean, byte, short,
char, int, long,
float, double, void.
For array types, the descriptor is the character '[' plus
the descriptor of its component type, e.g.,
[[I for int[][]. For non-array
reference types, the
descriptor is the character 'L', followed by the binary name
(see Type.getBinaryName()) of the type, where '.'
has to be replaced by '/', followed by ';',
e.g., Ljava/lang/Object;.
fout;Ljava/io/PrintStream;
for the field System.out.
<init> for
constructors), followed by the characters ';' and '(', followed
by the descriptors of the method's parameter types, followed by
')', followed by the descriptor of the return type. E.g.
mprintln;(Ljava/lang/String;)V for the method
PrintStream.println(String).
int getModifiers()
java.lang.String getName()
java.lang.Object,
java.util.Map.Entry.
Otherwise, it equals getSimpleName().java.lang.String getSimpleName()
Object, out, println.