Interface IMember<T>

Type Parameters:
T - Type of the class that contains this method.
All Superinterfaces:
AnnotatedElement
All Known Subinterfaces:
IField<T,F>, IGetterMethod<T>, IMethod<T>, IProcedure<T>, ISetterMethod<T>
All Known Implementing Classes:
AbstractGetterMethod, AbstractMethod, AbstractSetterMethod, StandardField, StandardGetterMethod, StandardMethod, StandardProcedure, StandardSetterMethod

public interface IMember<T> extends AnnotatedElement
Provides an abstraction over a member reflection.
Since:
6.6
Author:
Guy
  • Field Details

    • INTERNAL_NAME

      static final String INTERNAL_NAME
  • Method Details

    • getMember

      Member getMember()
      Returns:
      underline reflection based Member
    • getDeclaringClass

      Class<?> getDeclaringClass()
      Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
      Returns:
      an object representing the declaring class of the underlying member
    • getName

      String getName()
      Returns the simple name of the underlying member or constructor represented by this Member.
      Returns:
      the simple name of the underlying member
    • getModifiers

      int getModifiers()
      Returns the Java language modifiers for the member or constructor represented by this Member, as an integer. The Modifier class should be used to decode the modifiers in the integer.
      Returns:
      the Java language modifiers for the underlying member
      See Also:
    • isAccessible

      boolean isAccessible()
      Get the value of the accessible flag for this object.
      Returns:
      the value of the object's accessible flag
    • setAccessible

      void setAccessible(boolean flag) throws SecurityException
      Set the accessible flag for this object to the indicated boolean value. A value of true indicates that the reflected object should suppress Java language access checking when it is used. A value of false indicates that the reflected object should enforce Java language access checks.

      First, if there is a security manager, its checkPermission method is called with a ReflectPermission("suppressAccessChecks") permission.

      A SecurityException is raised if flag is true but accessibility of this object may not be changed (for example, if this element object is a Constructor object for the class Class).

      A SecurityException is raised if this object is a Constructor object for the class java.lang.Class, and flag is true.

      Parameters:
      flag - the new value for the accessible flag
      Throws:
      SecurityException - if the request is denied.
      See Also: