Class Member
- java.lang.Object
-
- org.datanucleus.metadata.annotations.Member
-
public class Member extends java.lang.Object
Wrapper for a field or a method (property) that is annotated.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.reflect.Type
genericType
generic type.(package private) int
modifiers
Modifiers for the field / method.(package private) java.lang.String
name
The Field/Method name.(package private) boolean
property
Whether this represents a property.(package private) java.lang.Class
type
The type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Type
getGenericType()
Accessor to the generic typeint
getModifiers()
Accessor to the field / method modifiersjava.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).
-
-
-
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
-
-