Class Member


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

      • Member

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

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

      • 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