public final class MethodInfo 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 |
---|---|
Type[] |
args()
Returns an array containing parameter types in parameter order.
|
static MethodInfo |
create(ClassInfo clazz,
String name,
Type[] args,
Type returnType,
short flags)
Construct a new mock Method instance.
|
ClassInfo |
declaringClass()
Returns the class that declared this method
|
short |
flags()
Returns the access fields of this method.
|
String |
name()
Returns the name of this method
|
Type |
returnType()
Returns this method's return parameter type.
|
String |
toString() |
public static final MethodInfo create(ClassInfo clazz, String name, Type[] args, Type returnType, short flags)
clazz
- the class declaring the fieldname
- the name of the fieldargs
- a read only array containing the types of each parameter in parameter orderreturnType
- the return value typeflags
- the method attributespublic final String name()
public final ClassInfo declaringClass()
public final Type[] args()
public final Type returnType()
public final short flags()
Modifier
can be used on this value.Copyright © 2014 JBoss by Red Hat. All rights reserved.