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
Provides a wrapper over the standard method reflection
- Since:
- 6.5.1
- Author:
- GuyK
-
Field Summary
FieldsFields inherited from interface com.gigaspaces.internal.reflection.IProcedure
INTERNAL_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<A extends Annotation>
AgetAnnotation(Class<A> annotationClass) Class<?>Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.Class[]Returns an array ofClassobjects that represent the types of the exceptions declared to be thrown by the underlying method represented by thisIMethodobject.Return a reference to theMethodthat thisIProcedurerepresentsintReturns the Java language modifiers for the member or constructor represented by this Member, as an integer.getName()Returns the simple name of the underlying member or constructor represented by this Member.Class<?>[]Returns an array ofClassobjects that represent the formal parameter types, in declaration order, of the method represented by thisMethodobject.Class<?>Returns aClassobject that represents the formal return type of the method represented by thisIMethodobject.inthashCode()booleanGet the value of the accessible flag for this object.booleanisAnnotationPresent(Class<? extends Annotation> annotationType) voidsetAccessible(boolean flag) Set the accessible flag for this object to the indicated boolean value.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.reflect.AnnotatedElement
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
-
Field Details
-
_method
-
-
Constructor Details
-
StandardProcedure
-
-
Method Details
-
getMember
-
equals
-
hashCode
public int hashCode() -
toString
-
getDeclaringClass
Description copied from interface:IMemberReturns the Class object representing the class or interface that declares the member or constructor represented by this Member.- Specified by:
getDeclaringClassin interfaceIMember<T>- Returns:
- an object representing the declaring class of the underlying member
-
getName
Description copied from interface:IMemberReturns the simple name of the underlying member or constructor represented by this Member. -
getReturnType
Description copied from interface:IProcedureReturns aClassobject that represents the formal return type of the method represented by thisIMethodobject.- Specified by:
getReturnTypein interfaceIProcedure<T>- Returns:
- the return type for the method this object represents
-
getParameterTypes
Description copied from interface:IProcedureReturns an array ofClassobjects that represent the formal parameter types, in declaration order, of the method represented by thisMethodobject. Returns an array of length 0 if the underlying method takes no parameters.- Specified by:
getParameterTypesin interfaceIProcedure<T>- Returns:
- the parameter types for the method this object represents
-
getModifiers
public int getModifiers()Description copied from interface:IMemberReturns 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:
getModifiersin interfaceIMember<T>- Returns:
- the Java language modifiers for the underlying member
- See Also:
-
getExceptionTypes
Description copied from interface:IProcedureReturns an array ofClassobjects that represent the types of the exceptions declared to be thrown by the underlying method represented by thisIMethodobject. Returns an array of length 0 if the method declares no exceptions in itsthrowsclause.- Specified by:
getExceptionTypesin interfaceIProcedure<T>- Returns:
- the exception types declared as being thrown by the method this object represents
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement
-
getMethod
Description copied from interface:IProcedureReturn a reference to theMethodthat thisIProcedurerepresents- Specified by:
getMethodin interfaceIProcedure<T>
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement
-
isAccessible
public boolean isAccessible()Description copied from interface:IMemberGet the value of the accessible flag for this object.- Specified by:
isAccessiblein interfaceIMember<T>- Returns:
- the value of the object's accessible flag
-
setAccessible
Description copied from interface:IMemberSet 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
checkPermissionmethod is called with aReflectPermission("suppressAccessChecks")permission.A
SecurityExceptionis raised ifflagistruebut accessibility of this object may not be changed (for example, if this element object is aConstructorobject for the classClass).A
SecurityExceptionis raised if this object is aConstructorobject for the classjava.lang.Class, andflagis true.- Specified by:
setAccessiblein interfaceIMember<T>- Parameters:
flag- the new value for the accessible flag- Throws:
SecurityException- if the request is denied.- See Also:
-