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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MethodBuilder
(package private) ConstructorInfo
(package private) boolean
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorBuilder
(int modifiers, TypeList parameterTypes, TypeList thrownTypes, TypeBuilder<?> declaringType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCustomAnnotation
(AnnotationBuilder<? extends Annotation> annotation) void
defineParameter
(int position, String name) <T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) ReadOnlyList
<AnnotationBuilder<? extends Annotation>> TypeBuilder
<?> int
Constructor
<?> Type
<?> boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) boolean
boolean
void
setParameterTypes
(TypeList parameterTypes) private void
Methods inherited from class com.strobel.reflection.ConstructorInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendSignature, containsGenericParameter, getMemberType, getName, invoke
Methods inherited from class com.strobel.reflection.MethodBase
getCallingConvention, getThrownTypes, isEquivalentTo
Methods 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
-
Field Details
-
_methodBuilder
-
returnCodeGenerator
boolean returnCodeGenerator -
generatedConstructor
ConstructorInfo generatedConstructor
-
-
Constructor Details
-
ConstructorBuilder
public ConstructorBuilder(int modifiers, TypeList parameterTypes, TypeList thrownTypes, TypeBuilder<?> declaringType)
-
-
Method Details
-
verifyTypeCreated
private void verifyTypeCreated() -
isFinished
public boolean isFinished() -
isTypeCreated
public boolean isTypeCreated() -
getMethodBuilder
-
getCodeGenerator
-
getRawConstructor
- Specified by:
getRawConstructor
in classConstructorInfo
-
appendErasedSignature
- Overrides:
appendErasedSignature
in classConstructorInfo
-
appendSimpleDescription
- Overrides:
appendSimpleDescription
in classConstructorInfo
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMemberInfo
-
getSignatureType
- Specified by:
getSignatureType
in classMethodBase
-
getParameters
- Overrides:
getParameters
in classMethodBase
-
getParameterTypes
-
setParameterTypes
-
getDefinedParameters
-
defineParameter
-
getReflectedType
- Overrides:
getReflectedType
in classMemberInfo
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
- Overrides:
getAnnotation
in classConstructorInfo
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
- Overrides:
getAnnotations
in classConstructorInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotations
in classConstructorInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
- Overrides:
isAnnotationPresent
in classConstructorInfo
-
addCustomAnnotation
-
getCustomAnnotations
-