Java Annotation Indexer 1.0.0.Final-redhat-1

org.jboss.jandex
Class MethodParameterInfo

java.lang.Object
  extended by org.jboss.jandex.MethodParameterInfo
All Implemented Interfaces:
AnnotationTarget

public final class MethodParameterInfo
extends Object
implements AnnotationTarget

Represents an individual Java method parameter that was annotated.

Thread-Safety

This class is immutable and can be shared between threads without safe publication.

Author:
Jason T. Greene

Method Summary
static MethodParameterInfo create(MethodInfo method, short parameter)
          Constructs a new mock method parameter info
 MethodInfo method()
          Returns the method this parameter belongs to.
 short position()
          Returns the 0 based position of this parameter.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static final MethodParameterInfo create(MethodInfo method,
                                               short parameter)
Constructs a new mock method parameter info

Parameters:
method - the method containing this parameter.
parameter - the zero based index of this parameter
Returns:
the new mock parameter info

method

public final MethodInfo method()
Returns the method this parameter belongs to.

Returns:
the declaring Java method

position

public final short position()
Returns the 0 based position of this parameter.

Returns:
the position of this parameter

toString

public String toString()
Overrides:
toString in class Object

Java Annotation Indexer 1.0.0.Final-redhat-1

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.