hudson.util
Class ReflectionUtils.Parameter

java.lang.Object
  extended by hudson.util.ReflectionUtils.Parameter
Enclosing class:
ReflectionUtils

public static final class ReflectionUtils.Parameter
extends Object


Constructor Summary
ReflectionUtils.Parameter(hudson.util.ReflectionUtils.MethodInfo parent, int index)
           
 
Method Summary
<A extends Annotation>
A
annotation(Class<A> type)
          Gets the specified annotation on this parameter or null.
 Annotation[] annotations()
          Gets all the annotations on this parameter.
 Type genericType()
          Gets the unerased generic type of this parameter.
 int index()
          0-origin index of this parameter.
 String name()
          Name of this parameter.
 Class<?> type()
          Gets the type of this parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtils.Parameter

public ReflectionUtils.Parameter(hudson.util.ReflectionUtils.MethodInfo parent,
                                 int index)
Method Detail

index

public int index()
0-origin index of this parameter.


type

public Class<?> type()
Gets the type of this parameter.


genericType

public Type genericType()
Gets the unerased generic type of this parameter.


annotations

public Annotation[] annotations()
Gets all the annotations on this parameter.


annotation

public <A extends Annotation> A annotation(Class<A> type)
Gets the specified annotation on this parameter or null.


name

public String name()
Name of this parameter. If unknown, this method returns null.



Copyright © 2004-2013. All Rights Reserved.