org.datanucleus.metadata.annotations
Class Member

java.lang.Object
  extended by org.datanucleus.metadata.annotations.Member

public class Member
extends java.lang.Object

Wrapper for a field or a method (property) that is annotated.


Constructor Summary
Member(java.lang.reflect.Field field)
          Constructor.
Member(java.lang.reflect.Method method)
          Constructor.
 
Method Summary
 java.lang.reflect.Type getGenericType()
          Accessor to the generic type
 int getModifiers()
          Accessor to the field / method modifiers
 java.lang.String getName()
          Field name or Method name (without get/set/is prefix)
 java.lang.Class getType()
          Accessor to the field or method return type.
 boolean isProperty()
          If this class is a field or method (property).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Member

public Member(java.lang.reflect.Field field)
Constructor.

Parameters:
field - The field

Member

public Member(java.lang.reflect.Method method)
Constructor.

Parameters:
method - The method
Method Detail

getName

public java.lang.String getName()
Field name or Method name (without get/set/is prefix)

Returns:
Name of the field or property.

isProperty

public boolean isProperty()
If this class is a field or method (property).

Returns:
true if it is a method (property). false if it is a field.

getType

public java.lang.Class getType()
Accessor to the field or method return type.

Returns:
Type of the field/property

getModifiers

public int getModifiers()
Accessor to the field / method modifiers

Returns:
modifiers for the field/method.

getGenericType

public java.lang.reflect.Type getGenericType()
Accessor to the generic type

Returns:
Generic type


Copyright © 2010. All Rights Reserved.