Class Member

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

public class Member extends Object
Wrapper for a field or a method (property) that is annotated.
  • Field Details

    • name

      String name
      The Field/Method name.
    • type

      Class type
      The type.
    • modifiers

      int modifiers
      Modifiers for the field / method.
    • genericType

      Type genericType
      generic type.
    • property

      boolean property
      Whether this represents a property.
  • Constructor Details

    • Member

      public Member(Field field)
      Constructor.
      Parameters:
      field - The field
    • Member

      public Member(Method method)
      Constructor.
      Parameters:
      method - The method
  • Method Details

    • getName

      public 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 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 Type getGenericType()
      Accessor to the generic type
      Returns:
      Generic type