public final class MethodParameterInfo extends Object implements AnnotationTarget
Thread-Safety
This class is immutable and can be shared between threads without safe publication.Modifier and Type | Method and Description |
---|---|
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() |
public static final MethodParameterInfo create(MethodInfo method, short parameter)
method
- the method containing this parameter.parameter
- the zero based index of this parameterpublic final MethodInfo method()
public final short position()
Copyright © 2014 JBoss by Red Hat. All rights reserved.