de.grogra.reflect
Class MemberBase

java.lang.Object
  extended by de.grogra.reflect.MemberBase
All Implemented Interfaces:
Member
Direct Known Subclasses:
FieldBase, PersistenceField, TypeImpl

public abstract class MemberBase
extends java.lang.Object
implements Member


Field Summary
protected  ObjectList<Annotation> annots
           
protected  Type declaringType
           
protected  java.lang.String descriptor
           
protected  int modifiers
           
protected  java.lang.String name
           
 
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
MemberBase()
           
MemberBase(java.lang.String name, java.lang.String descriptor, int modifiers, Type declaringType)
           
 
Method Summary
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

annots

protected ObjectList<Annotation> annots

declaringType

protected Type declaringType

descriptor

protected java.lang.String descriptor

modifiers

protected int modifiers

name

protected java.lang.String name
Constructor Detail

MemberBase

public MemberBase()

MemberBase

public MemberBase(java.lang.String name,
                  java.lang.String descriptor,
                  int modifiers,
                  Type declaringType)
Method Detail

getDeclaredAnnotation

public Annotation getDeclaredAnnotation(int index)
Specified by:
getDeclaredAnnotation in interface Member

getDeclaredAnnotationCount

public int getDeclaredAnnotationCount()
Specified by:
getDeclaredAnnotationCount in interface Member

getDeclaringType

public final Type getDeclaringType()
Description copied from interface: Member
Returns the declaring type of which this is a member. May be null if such a type does not exist.

Specified by:
getDeclaringType in interface Member
Returns:
this member's declaring type

getDescriptor

public java.lang.String getDescriptor()
Description copied from interface: Member
Returns a descriptor for this member. Descriptors are constructed as follows:

Specified by:
getDescriptor in interface Member
Returns:
the member's descriptor

getModifiers

public final int getModifiers()
Description copied from interface: Member
Returns the modifiers of this member as a combination of the bit masks which are defined in this interface.

Specified by:
getModifiers in interface Member
Returns:
modifiers of this member

getName

public java.lang.String getName()
Description copied from interface: Member
Returns the name of this member. For types, this is the canonical name of the type, e.g, java.lang.Object, java.util.Map.Entry. Otherwise, it equals Member.getSimpleName().

Specified by:
getName in interface Member
Returns:
name of the member

getSimpleName

public java.lang.String getSimpleName()
Description copied from interface: Member
Returns the simple name of this member. This is the single identifier with which the member is declared in source code, e.g., Object, out, println.

Specified by:
getSimpleName in interface Member
Returns:
simple name of the member

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object