public final class MethodDescriptor extends JavaMemberDescriptor<Method> implements StaticExecutable
declaringType| Constructor and Description |
|---|
MethodDescriptor(TypeDescriptor declaringType,
Method method) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
applies(TypeDescriptor typeDescriptor) |
boolean |
equals(Object obj) |
String |
getName() |
int |
getParameterCount() |
List<ParameterDescriptor> |
getParameters() |
List<Class<?>> |
getParameterTypes() |
Class<?> |
getRawReturnType() |
TypeDescriptor |
getReturnType() |
int |
hashCode() |
Object |
invoke(Object object,
Object... args) |
Object |
invokeStatic(Object... args) |
String |
toString() |
isAbstract, isFinal, isStatic, isSyntheticgetAnnotation, getAnnotations, getDeclaringType, hasAnnotationpublic MethodDescriptor(TypeDescriptor declaringType, Method method)
public TypeDescriptor getReturnType()
public Class<?> getRawReturnType()
public List<ParameterDescriptor> getParameters()
getParameters in interface StaticExecutablepublic int getParameterCount()
public String getName()
public Object invokeStatic(Object... args)
invokeStatic in interface StaticExecutablepublic boolean equals(Object obj)
equals in class MemberDescriptorpublic int hashCode()
hashCode in class MemberDescriptorpublic boolean applies(TypeDescriptor typeDescriptor)
Copyright © 2016. All rights reserved.