org.kohsuke.stapler
Class ClassDescriptor

java.lang.Object
  extended by org.kohsuke.stapler.ClassDescriptor

public final class ClassDescriptor
extends java.lang.Object

Reflection information of a Class.

Author:
Kohsuke Kawaguchi

Field Summary
 java.lang.Class clazz
           
 java.lang.reflect.Field[] fields
           
 org.kohsuke.stapler.FunctionList methods
           
 
Constructor Summary
ClassDescriptor(java.lang.Class clazz, java.lang.Class... wrappers)
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clazz

public final java.lang.Class clazz

methods

public final org.kohsuke.stapler.FunctionList methods

fields

public final java.lang.reflect.Field[] fields
Constructor Detail

ClassDescriptor

public ClassDescriptor(java.lang.Class clazz,
                       java.lang.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 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.

This is not the best place to expose this, but for now this would do.


loadParameterNames

public 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.

This is not the best place to expose this, but for now this would do.



Copyright © 2011. All Rights Reserved.