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