de.grogra.reflect
public abstract class MemberDecorator extends java.lang.Object implements Member
ABSTRACT, ACCESS_MODIFIERS, ARRAY, BRIDGE, CONSTANT, FINAL, INTERFACE, JAVA_MODIFIERS, LOCAL_CLASS, MIN_UNUSED_MODIFIER, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE| Constructor and Description |
|---|
MemberDecorator(Member member) |
| Modifier and Type | Method and Description |
|---|---|
Annotation |
getDeclaredAnnotation(int index) |
int |
getDeclaredAnnotationCount() |
Type |
getDeclaringType()
Returns the declaring type of which this is a member.
|
Member |
getDecoratedMember() |
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.
|
java.lang.String |
toString() |
public MemberDecorator(Member member)
public Annotation getDeclaredAnnotation(int index)
getDeclaredAnnotation in interface Memberpublic int getDeclaredAnnotationCount()
getDeclaredAnnotationCount in interface Memberpublic Type getDeclaringType()
Membernull if such a type does not exist.getDeclaringType in interface Memberpublic Member getDecoratedMember()
public java.lang.String getDescriptor()
Memberboolean, 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).
getDescriptor in interface Memberpublic int getModifiers()
MembergetModifiers in interface Memberpublic java.lang.String getName()
Memberjava.lang.Object,
java.util.Map.Entry.
Otherwise, it equals Member.getSimpleName().public java.lang.String getSimpleName()
MemberObject, out, println.getSimpleName in interface Memberpublic java.lang.String toString()
toString in class java.lang.Object