|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kohsuke.stapler.ClassDescriptor
public final class ClassDescriptor
Reflection information of a Class
.
Field Summary | |
---|---|
Class |
clazz
|
Field[] |
fields
|
org.kohsuke.stapler.FunctionList |
methods
|
Constructor Summary | |
---|---|
ClassDescriptor(Class clazz,
Class... wrappers)
|
Method Summary | |
---|---|
String[] |
loadConstructorParamNames()
Determines the constructor parameter names. |
static String[] |
loadParameterNames(Constructor<?> m)
Loads the list of parameter names of the given method, by using a stapler-specific way of getting it. |
static String[] |
loadParameterNames(Method m)
Loads the list of parameter names of the given method, by using a stapler-specific way of getting it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Class clazz
public final org.kohsuke.stapler.FunctionList methods
public final Field[] fields
Constructor Detail |
---|
public ClassDescriptor(Class clazz, Class... wrappers)
clazz
- The class to build a descriptor around.wrappers
- Optional wrapper duck-typing classes.
Static methods on this class that has the first parameter
as 'clazz' will be handled as if it's instance methods on
'clazz'. Useful for adding view/controller methods on
model classes.Method Detail |
---|
public static String[] loadParameterNames(Method m)
This is not the best place to expose this, but for now this would do.
public static String[] loadParameterNames(Constructor<?> m)
This is not the best place to expose this, but for now this would do.
public String[] loadConstructorParamNames()
First, try to load names from the debug information. Otherwise
if there's the .stapler file, load it as a property file and determines the constructor parameter names.
Otherwise, look for CapturedParameterNames
annotation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |