Class Member
- java.lang.Object
-
- org.datanucleus.metadata.annotations.Member
-
public class Member extends java.lang.ObjectWrapper for a field or a method (property) that is annotated.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.TypegenericTypegeneric type.(package private) intmodifiersModifiers for the field / method.(package private) java.lang.StringnameThe Field/Method name.(package private) booleanpropertyWhether this represents a property.(package private) java.lang.ClasstypeThe type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.TypegetGenericType()Accessor to the generic typeintgetModifiers()Accessor to the field / method modifiersjava.lang.StringgetName()Field name or Method name (without get/set/is prefix)java.lang.ClassgetType()Accessor to the field or method return type.booleanisProperty()If this class is a field or method (property).
-
-
-
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
-
-