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
- Author:
- strobelm
-
Method Summary
Modifier and TypeMethodDescription<A extends Annotation>
voidaddCustomAnnotation(AnnotationBuilder<A> annotation) <T extends Annotation>
TgetAnnotation(Class<T> annotationClass) ReadOnlyList<AnnotationBuilder<? extends Annotation>> TypeBuilder<?> Type<?> intgetName()Type<?> booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) voidsetFieldType(Type<?> fieldType) Methods inherited from class com.strobel.reflection.FieldInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendSignature, appendSimpleDescription, getMemberType, getValue, isEnumConstant, isEquivalentTo, setValue, toStringMethods 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
-
Method Details
-
addCustomAnnotation
-
getCustomAnnotations
-
getFieldType
- Specified by:
getFieldTypein classFieldInfo
-
setFieldType
-
getRawField
- Specified by:
getRawFieldin classFieldInfo
-
getName
- Specified by:
getNamein classMemberInfo
-
getDeclaringType
- Specified by:
getDeclaringTypein classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin classMemberInfo
-
getConstantValue
-
getReflectedType
- Overrides:
getReflectedTypein classMemberInfo
-
getAnnotation
- Specified by:
getAnnotationin interfaceAnnotatedElement- Overrides:
getAnnotationin classFieldInfo
-
getAnnotations
- Specified by:
getAnnotationsin interfaceAnnotatedElement- Overrides:
getAnnotationsin classFieldInfo
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin interfaceAnnotatedElement- Overrides:
getDeclaredAnnotationsin classFieldInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresentin interfaceAnnotatedElement- Overrides:
isAnnotationPresentin classFieldInfo
-