public abstract class StandardProcedure<T> extends Object implements IProcedure<T>
Modifier and Type | Field and Description |
---|---|
protected Method |
_method |
INTERNAL_NAME
Constructor and Description |
---|
StandardProcedure(Method method) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
<A extends Annotation> |
getAnnotation(Class<A> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
Class<?> |
getDeclaringClass()
Returns the Class object representing the class or interface that declares the member or
constructor represented by this Member.
|
Class[] |
getExceptionTypes()
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. |
Method |
getMember() |
Method |
getMethod()
Return a reference to the
Method that this IProcedure represents |
int |
getModifiers()
Returns the Java language modifiers for the member or constructor represented by this Member,
as an integer.
|
String |
getName()
Returns the simple name of the underlying member or constructor represented by this Member.
|
Class<?>[] |
getParameterTypes()
Returns an array of
Class objects that represent the formal parameter types, in
declaration order, of the method represented by this Method object. |
Class<?> |
getReturnType()
Returns a
Class object that represents the formal return type of the method
represented by this IMethod object. |
int |
hashCode() |
boolean |
isAccessible()
Get the value of the accessible flag for this object.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationType) |
void |
setAccessible(boolean flag)
Set the accessible flag for this object to the indicated boolean value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
protected final Method _method
public StandardProcedure(Method method)
public Method getMember()
public Class<?> getDeclaringClass()
IMember
getDeclaringClass
in interface IMember<T>
public String getName()
IMember
public Class<?> getReturnType()
IProcedure
Class
object that represents the formal return type of the method
represented by this IMethod
object.getReturnType
in interface IProcedure<T>
public Class<?>[] getParameterTypes()
IProcedure
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.getParameterTypes
in interface IProcedure<T>
public int getModifiers()
IMember
getModifiers
in interface IMember<T>
Modifier
public Class[] getExceptionTypes()
IProcedure
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.getExceptionTypes
in interface IProcedure<T>
public <A extends Annotation> A getAnnotation(Class<A> annotationClass)
getAnnotation
in interface AnnotatedElement
public Method getMethod()
IProcedure
Method
that this IProcedure
representsgetMethod
in interface IProcedure<T>
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public boolean isAnnotationPresent(Class<? extends Annotation> annotationType)
isAnnotationPresent
in interface AnnotatedElement
public boolean isAccessible()
IMember
isAccessible
in interface IMember<T>
public void setAccessible(boolean flag) throws SecurityException
IMember
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.
setAccessible
in interface IMember<T>
flag
- the new value for the accessible flagSecurityException
- if the request is denied.SecurityManager.checkPermission(java.security.Permission)
,
RuntimePermission
Copyright © GigaSpaces.