|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectReflWrap.MethodInfo
public class MethodInfo
Wrapper around java.lang.reflect.Method Retrieve information about methods at runtime
Field Summary | |
---|---|
private java.lang.reflect.Method |
m
The Method object |
private java.lang.String |
name
Name of the method |
private java.lang.String[] |
params
Types of this method's parameters |
Constructor Summary | |
---|---|
MethodInfo(java.lang.reflect.Method method)
Constructor from a Method object |
Method Summary | ||
---|---|---|
java.lang.Class |
_class()
Get the declaring class of this method |
|
|
anot(java.lang.Class<T> klass)
Returns this element's annotation for the specified type if such an annotation is present, else null |
|
private int |
determineID()
Determines the position of this method in the Method array of BCEL |
|
java.lang.annotation.Annotation[] |
getParamAnot(int i)
Get all annotations associated with a parameter |
|
java.lang.Class[] |
getParams()
Get parameter types of this method |
|
boolean |
isStatic()
Checks whether this method is static |
|
java.lang.reflect.Method |
m()
Get the Method object itself |
|
java.lang.String |
modifiersToString()
Convert all modifiers of this method to a string |
|
java.lang.String |
name()
Get the name of the method |
|
java.lang.String[] |
params()
Get parameter types of this method |
|
java.lang.String |
paramsToString()
Convert all parameters to a single string |
|
ClassInfo |
returns()
Get the return value type of the method |
|
java.lang.String |
returnsT()
Return value with template parameters |
|
java.lang.String |
toSimpleString()
Returns a string representation of this object which can be compared to strings retrieved by BCEL |
|
java.lang.String |
toString()
Get a string representation of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.reflect.Method m
private java.lang.String name
private java.lang.String[] params
Constructor Detail |
---|
public MethodInfo(java.lang.reflect.Method method)
method
- Existing Method objectMethod Detail |
---|
public java.lang.Class _class()
public java.lang.reflect.Method m()
public java.lang.String name()
public ClassInfo returns()
private int determineID()
public java.lang.String returnsT()
public java.lang.String[] params()
public java.lang.Class[] getParams()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String paramsToString()
public boolean isStatic()
public java.lang.String modifiersToString()
public java.lang.annotation.Annotation[] getParamAnot(int i)
i
- Index number of the parameter
public <T extends java.lang.annotation.Annotation> T anot(java.lang.Class<T> klass)
klass
- Specified type
public java.lang.String toSimpleString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |