All Superinterfaces:
XAnnotatedElement
All Known Subinterfaces:
XMethod, XProperty
All Known Implementing Classes:
JavaXMember, JavaXMethod

public interface XMember extends XAnnotatedElement
  • Method Details

    • getDeclaringClass

      XClass getDeclaringClass()
      Retrieve the XClass reference for the class which declares this member.
      Returns:
      The XClass representing the declaring class of the underlying member
    • getName

      String getName()
    • isCollection

      boolean isCollection()
    • isArray

      boolean isArray()
    • getCollectionClass

      Class<? extends Collection> getCollectionClass()
      The collection class for collections, null for others.
    • getType

      XClass getType()
      This property's XClass.
    • getElementClass

      XClass getElementClass()
      This property's type for simple properties, the type of its elements for arrays and collections.
    • getClassOrElementClass

      XClass getClassOrElementClass()
      The type of this property's elements for arrays, the type of the property itself for everything else.
    • getMapKey

      XClass getMapKey()
      The type of this map's key, or null for anything that is not a map.
    • getModifiers

      int getModifiers()
      Same modifiers as java.lang.Member#getModifiers()
    • setAccessible

      void setAccessible(boolean accessible)
    • invoke

      Object invoke(Object target, Object... parameters)
    • invoke

      Object invoke(Object target)
      Invoke the method with no parameters. Same as invoke(Object, Object...).
      Parameters:
      target -
      Returns:
    • isTypeResolved

      boolean isTypeResolved()