Package org.kohsuke.stapler
Class ClassDescriptor
- java.lang.Object
-
- org.kohsuke.stapler.ClassDescriptor
-
-
Constructor Summary
Constructors Constructor Description ClassDescriptor(Class clazz, Class... wrappers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
clazz
public final Class clazz
-
methods
public final FunctionList methods
-
fields
public final Field[] fields
-
-
Constructor Detail
-
ClassDescriptor
public ClassDescriptor(Class clazz, Class... wrappers)
- Parameters:
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
-
loadParameterNames
public static String[] loadParameterNames(Method m)
Loads the list of parameter names of the given method, by using a stapler-specific way of getting it.This is not the best place to expose this, but for now this would do.
-
loadParameterNames
public static String[] loadParameterNames(Constructor<?> m)
Loads the list of parameter names of the given method, by using a stapler-specific way of getting it.This is not the best place to expose this, but for now this would do.
-
loadConstructorParamNames
public String[] loadConstructorParamNames()
Determines the constructor parameter names.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.
-
-