Package com.strobel.reflection
Class RuntimeFieldInfo
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.FieldInfo
com.strobel.reflection.RuntimeFieldInfo
- All Implemented Interfaces:
AnnotatedElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set
<BindingFlags> private final Type
<?> private final Type
<?> private final int
private final Field
private final RuntimeTypeCache
<?> Fields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeFieldInfo
(Field rawField, Type<?> declaringType, RuntimeTypeCache<?> reflectedTypeCache, int modifiers, Set<BindingFlags> bindingFlags, Type<?> fieldType) -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) (package private) Set
<BindingFlags> Type
<?> Type
<?> int
getName()
Type
<?> boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) boolean
boolean
Methods inherited from class com.strobel.reflection.FieldInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendSignature, appendSimpleDescription, getMemberType, getValue, 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
-
_rawField
-
_declaringType
-
_reflectedTypeCache
-
_modifiers
private final int _modifiers -
_bindingFlags
-
_fieldType
-
-
Constructor Details
-
RuntimeFieldInfo
RuntimeFieldInfo(Field rawField, Type<?> declaringType, RuntimeTypeCache<?> reflectedTypeCache, int modifiers, Set<BindingFlags> bindingFlags, Type<?> fieldType)
-
-
Method Details
-
getBindingFlags
Set<BindingFlags> getBindingFlags() -
getFieldType
- Specified by:
getFieldType
in classFieldInfo
-
isEnumConstant
public boolean isEnumConstant()- Overrides:
isEnumConstant
in classFieldInfo
-
getRawField
- Specified by:
getRawField
in classFieldInfo
-
getName
- Specified by:
getName
in classMemberInfo
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getReflectedType
- Overrides:
getReflectedType
in classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
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
-
isEquivalentTo
- Overrides:
isEquivalentTo
in classFieldInfo
-