Package com.strobel.reflection.emit
Class FieldBuilder
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.FieldInfo
com.strobel.reflection.emit.FieldBuilder
- All Implemented Interfaces:
AnnotatedElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ReadOnlyList
<AnnotationBuilder<? extends Annotation>> private final Object
private final int
private final String
private Type
<?> private final TypeBuilder
<?> (package private) FieldInfo
-
Constructor Summary
ConstructorsConstructorDescriptionFieldBuilder
(TypeBuilder<?> typeBuilder, String name, Type<?> type, int modifiers, Object constantValue) -
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
voidaddCustomAnnotation
(AnnotationBuilder<A> annotation) <T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) (package private) FieldInfo
ReadOnlyList
<AnnotationBuilder<? extends Annotation>> TypeBuilder
<?> Type
<?> int
getName()
Type
<?> boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) void
setFieldType
(Type<?> fieldType) (package private) void
Methods inherited from class com.strobel.reflection.FieldInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendSignature, appendSimpleDescription, getMemberType, getValue, isEnumConstant, isEquivalentTo, setValue, toString
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
-
Field Details
-
_typeBuilder
-
_name
-
_modifiers
private final int _modifiers -
_constantValue
-
_type
-
_annotations
-
generatedField
FieldInfo generatedField
-
-
Constructor Details
-
FieldBuilder
FieldBuilder(TypeBuilder<?> typeBuilder, String name, Type<?> type, int modifiers, Object constantValue)
-
-
Method Details
-
getCreatedField
FieldInfo getCreatedField() -
addCustomAnnotation
-
getCustomAnnotations
-
verifyTypeNotCreated
void verifyTypeNotCreated() -
getFieldType
- Specified by:
getFieldType
in classFieldInfo
-
setFieldType
-
getRawField
- Specified by:
getRawField
in classFieldInfo
-
getName
- Specified by:
getName
in classMemberInfo
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMemberInfo
-
getConstantValue
-
getReflectedType
- Overrides:
getReflectedType
in classMemberInfo
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
- Overrides:
getAnnotation
in classFieldInfo
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
- Overrides:
getAnnotations
in classFieldInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotations
in classFieldInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
- Overrides:
isAnnotationPresent
in classFieldInfo
-