public class MethodDescription extends Object
Constructor and Description |
---|
MethodDescription(String name,
Class<?> returnType,
Class<?>[] argsTypes)
Initialize method description with given parameters
|
MethodDescription(String name,
Class<?> returnType,
Class<?>[] argsTypes,
AnnotationDescription[] annotations)
Initialize method description with given parameters
|
MethodDescription(String name,
String returnType,
TypeDescription[] argsTypes,
AnnotationDescription[] annotations)
Initialize method description with given parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AnnotationDescription[] |
getAnnotations()
Get method annotation description
|
TypeDescription[] |
getArgsTypes()
Get method parameter descriptions
|
String |
getName()
Get method name
|
TypeDescription |
getReturnType()
Get method return type
|
int |
hashCode() |
public MethodDescription(String name, Class<?> returnType, Class<?>[] argsTypes)
name
- method namereturnType
- method return typeargsTypes
- method parametersNullPointerException
- if method name or return type is nullpublic MethodDescription(String name, Class<?> returnType, Class<?>[] argsTypes, AnnotationDescription[] annotations)
name
- method namereturnType
- method return typeargsTypes
- method parametersannotations
- method annotation descriptionsNullPointerException
- if method name or return type is nullpublic MethodDescription(String name, String returnType, TypeDescription[] argsTypes, AnnotationDescription[] annotations)
name
- method namereturnType
- method return typeargsTypes
- method parameter descriptionsannotations
- method annotation descriptionsNullPointerException
- if method name or return type is nullpublic TypeDescription getReturnType()
public TypeDescription[] getArgsTypes()
public String getName()
public AnnotationDescription[] getAnnotations()
Copyright © 2004–2022 OpenL Tablets. All rights reserved.