Class StandardProcedure<T>

java.lang.Object
com.gigaspaces.internal.reflection.standard.StandardProcedure<T>
All Implemented Interfaces:
IMember<T>, IProcedure<T>, AnnotatedElement
Direct Known Subclasses:
AbstractGetterMethod, AbstractMethod, AbstractSetterMethod, StandardMethod

public abstract class StandardProcedure<T> extends Object implements IProcedure<T>
Provides a wrapper over the standard method reflection
Since:
6.5.1
Author:
GuyK
  • Field Details

    • _method

      protected final Method _method
  • Constructor Details

    • StandardProcedure

      public StandardProcedure(Method method)
  • Method Details

    • getMember

      public Method getMember()
      Specified by:
      getMember in interface IMember<T>
      Returns:
      underline reflection based Member
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDeclaringClass

      public Class<?> getDeclaringClass()
      Description copied from interface: IMember
      Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.
      Specified by:
      getDeclaringClass in interface IMember<T>
      Returns:
      an object representing the declaring class of the underlying member
    • getName

      public String getName()
      Description copied from interface: IMember
      Returns the simple name of the underlying member or constructor represented by this Member.
      Specified by:
      getName in interface IMember<T>
      Returns:
      the simple name of the underlying member
    • getReturnType

      public Class<?> getReturnType()
      Description copied from interface: IProcedure
      Returns a Class object that represents the formal return type of the method represented by this IMethod object.
      Specified by:
      getReturnType in interface IProcedure<T>
      Returns:
      the return type for the method this object represents
    • getParameterTypes

      public Class<?>[] getParameterTypes()
      Description copied from interface: IProcedure
      Returns an array of Class objects that represent the formal parameter types, in declaration order, of the method represented by this Method object. Returns an array of length 0 if the underlying method takes no parameters.
      Specified by:
      getParameterTypes in interface IProcedure<T>
      Returns:
      the parameter types for the method this object represents
    • getModifiers

      public int getModifiers()
      Description copied from interface: IMember
      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.
      Specified by:
      getModifiers in interface IMember<T>
      Returns:
      the Java language modifiers for the underlying member
      See Also:
    • getExceptionTypes

      public Class[] getExceptionTypes()
      Description copied from interface: IProcedure
      Returns an array of Class objects that represent the types of the exceptions declared to be thrown by the underlying method represented by this IMethod object. Returns an array of length 0 if the method declares no exceptions in its throws clause.
      Specified by:
      getExceptionTypes in interface IProcedure<T>
      Returns:
      the exception types declared as being thrown by the method this object represents
    • getAnnotation

      public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
      Specified by:
      getAnnotation in interface AnnotatedElement
    • getMethod

      public Method getMethod()
      Description copied from interface: IProcedure
      Return a reference to the Method that this IProcedure represents
      Specified by:
      getMethod in interface IProcedure<T>
    • getAnnotations

      public Annotation[] getAnnotations()
      Specified by:
      getAnnotations in interface AnnotatedElement
    • getDeclaredAnnotations

      public Annotation[] getDeclaredAnnotations()
      Specified by:
      getDeclaredAnnotations in interface AnnotatedElement
    • isAnnotationPresent

      public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
      Specified by:
      isAnnotationPresent in interface AnnotatedElement
    • isAccessible

      public boolean isAccessible()
      Description copied from interface: IMember
      Get the value of the accessible flag for this object.
      Specified by:
      isAccessible in interface IMember<T>
      Returns:
      the value of the object's accessible flag
    • setAccessible

      public void setAccessible(boolean flag) throws SecurityException
      Description copied from interface: IMember
      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.

      Specified by:
      setAccessible in interface IMember<T>
      Parameters:
      flag - the new value for the accessible flag
      Throws:
      SecurityException - if the request is denied.
      See Also: