public final class ConstructorInfo extends Executable implements Creater, Comparable<ConstructorInfo>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ConstructorInfo o) |
static ConstructorInfo |
create(Constructor<?> constructor)
将 Constructor 对象转成 ConstructorInfo 对象.
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Constructor<?> |
getConstructor() |
KlassInfo |
getDeclaringKlass() |
Type[] |
getGenericParameterTypes() |
int |
getModifiers() |
String |
getName() |
int |
getOffset() |
Annotation[][] |
getParameterAnnotations() |
int |
getParameterCount() |
Class<?>[] |
getParameterTypes() |
<T extends Annotation> |
isAnnotationPresent(Class<T> annotationClass) |
boolean |
isDefault() |
boolean |
isVarArgs() |
Object |
newInstance(Object... args) |
getParameters, getRawParameterTypes, getRawParameterTypes, getSignature, isPrivate, isProtected, isPublic, toStringpublic static ConstructorInfo create(Constructor<?> constructor)
constructor - - 原始对象public KlassInfo getDeclaringKlass()
getDeclaringKlass in class Executablepublic String getName()
getName in class Executablepublic Constructor<?> getConstructor()
public int getOffset()
getOffset in class Executablepublic int getParameterCount()
getParameterCount in class Executablepublic Class<?>[] getParameterTypes()
getParameterTypes in class Executablepublic Type[] getGenericParameterTypes()
getGenericParameterTypes in class Executablepublic boolean isDefault()
public boolean isVarArgs()
isVarArgs in class Executablepublic Annotation[] getAnnotations()
getAnnotations in class Executablepublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in class Executablepublic <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationClass)
isAnnotationPresent in class Executablepublic Annotation[][] getParameterAnnotations()
getParameterAnnotations in class Executablepublic int getModifiers()
getModifiers in class Executablepublic Object newInstance(Object... args)
newInstance in interface Createrpublic int compareTo(ConstructorInfo o)
compareTo in interface Comparable<ConstructorInfo>Copyright © 2016 jetbrick. All rights reserved.