|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.grogra.reflect.MemberDecorator
public abstract class MemberDecorator
Field Summary |
---|
Fields inherited from interface de.grogra.reflect.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 Summary | |
---|---|
MemberDecorator(Member member)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MemberDecorator(Member member)
Method Detail |
---|
public Annotation getDeclaredAnnotation(int index)
getDeclaredAnnotation
in interface Member
public int getDeclaredAnnotationCount()
getDeclaredAnnotationCount
in interface Member
public Type getDeclaringType()
Member
null
if such a type does not exist.
getDeclaringType
in interface Member
public Member getDecoratedMember()
public java.lang.String getDescriptor()
Member
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)
.
getDescriptor
in interface Member
public int getModifiers()
Member
getModifiers
in interface Member
public java.lang.String getName()
Member
java.lang.Object
,
java.util.Map.Entry
.
Otherwise, it equals Member.getSimpleName()
.
getName
in interface Member
public java.lang.String getSimpleName()
Member
Object
, out
, println
.
getSimpleName
in interface Member
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |