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 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) private voidMethods inherited from class ConstructorInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendSignature, containsGenericParameter, getMemberType, getName, invokeMethods inherited from class MethodBase
getCallingConvention, getThrownTypes, isEquivalentToMethods inherited from class 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:
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
-