Package com.strobel.reflection.emit
Class ConstructorBuilder
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.MethodBase
com.strobel.reflection.ConstructorInfo
com.strobel.reflection.emit.ConstructorBuilder
- All Implemented Interfaces:
AnnotatedElement
- Author:
- Mike Strobel
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorBuilder(int modifiers, TypeList parameterTypes, TypeList thrownTypes, TypeBuilder<?> declaringType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCustomAnnotation(AnnotationBuilder<? extends Annotation> annotation) voiddefineParameter(int position, String name) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) ReadOnlyList<AnnotationBuilder<? extends Annotation>> TypeBuilder<?> intConstructor<?> Type<?> booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) booleanbooleanvoidsetParameterTypes(TypeList parameterTypes) Methods inherited from class com.strobel.reflection.ConstructorInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendSignature, containsGenericParameter, getMemberType, getName, invokeMethods inherited from class com.strobel.reflection.MethodBase
getCallingConvention, getThrownTypes, isEquivalentToMethods inherited from class com.strobel.reflection.MemberInfo
appendGenericSignature, emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDescription, getErasedDescription, getErasedSignature, getSignature, getSimpleDescription, hashCode, invalidateCaches, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, toString
-
Constructor Details
-
ConstructorBuilder
public ConstructorBuilder(int modifiers, TypeList parameterTypes, TypeList thrownTypes, TypeBuilder<?> declaringType)
-
-
Method Details
-
isFinished
public boolean isFinished() -
isTypeCreated
public boolean isTypeCreated() -
getMethodBuilder
-
getCodeGenerator
-
getRawConstructor
- Specified by:
getRawConstructorin classConstructorInfo
-
appendErasedSignature
- Overrides:
appendErasedSignaturein classConstructorInfo
-
appendSimpleDescription
- Overrides:
appendSimpleDescriptionin classConstructorInfo
-
getDeclaringType
- Specified by:
getDeclaringTypein classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin classMemberInfo
-
getSignatureType
- Specified by:
getSignatureTypein classMethodBase
-
getParameters
- Overrides:
getParametersin classMethodBase
-
getParameterTypes
-
setParameterTypes
-
getDefinedParameters
-
defineParameter
-
getReflectedType
- Overrides:
getReflectedTypein classMemberInfo
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement- Overrides:
getAnnotationin classConstructorInfo
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement- Overrides:
getAnnotationsin classConstructorInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationsin classConstructorInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement- Overrides:
isAnnotationPresentin classConstructorInfo
-
addCustomAnnotation
-
getCustomAnnotations
-