Package com.strobel.reflection
Class RuntimeFieldInfo
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.FieldInfo
-
- com.strobel.reflection.RuntimeFieldInfo
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
final class RuntimeFieldInfo extends FieldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<BindingFlags>
_bindingFlags
private Type<?>
_declaringType
private Type<?>
_fieldType
private int
_modifiers
private java.lang.reflect.Field
_rawField
private RuntimeTypeCache<?>
_reflectedTypeCache
-
Fields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER
-
-
Constructor Summary
Constructors Constructor Description RuntimeFieldInfo(java.lang.reflect.Field rawField, Type<?> declaringType, RuntimeTypeCache<?> reflectedTypeCache, int modifiers, java.util.Set<BindingFlags> bindingFlags, Type<?> fieldType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)
java.lang.annotation.Annotation[]
getAnnotations()
(package private) java.util.Set<BindingFlags>
getBindingFlags()
java.lang.annotation.Annotation[]
getDeclaredAnnotations()
Type<?>
getDeclaringType()
Type<?>
getFieldType()
int
getModifiers()
java.lang.String
getName()
java.lang.reflect.Field
getRawField()
Type<?>
getReflectedType()
boolean
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
boolean
isEnumConstant()
boolean
isEquivalentTo(MemberInfo m)
-
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 Detail
-
_rawField
private final java.lang.reflect.Field _rawField
-
_declaringType
private final Type<?> _declaringType
-
_reflectedTypeCache
private final RuntimeTypeCache<?> _reflectedTypeCache
-
_modifiers
private final int _modifiers
-
_bindingFlags
private final java.util.Set<BindingFlags> _bindingFlags
-
_fieldType
private final Type<?> _fieldType
-
-
Constructor Detail
-
RuntimeFieldInfo
RuntimeFieldInfo(java.lang.reflect.Field rawField, Type<?> declaringType, RuntimeTypeCache<?> reflectedTypeCache, int modifiers, java.util.Set<BindingFlags> bindingFlags, Type<?> fieldType)
-
-
Method Detail
-
getBindingFlags
java.util.Set<BindingFlags> getBindingFlags()
-
getFieldType
public Type<?> getFieldType()
- Specified by:
getFieldType
in classFieldInfo
-
isEnumConstant
public boolean isEnumConstant()
- Overrides:
isEnumConstant
in classFieldInfo
-
getRawField
public java.lang.reflect.Field getRawField()
- Specified by:
getRawField
in classFieldInfo
-
getName
public java.lang.String getName()
- Specified by:
getName
in classMemberInfo
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringType
in classMemberInfo
-
getReflectedType
public Type<?> getReflectedType()
- Overrides:
getReflectedType
in classMemberInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in classMemberInfo
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
- Specified by:
getAnnotation
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getAnnotation
in classFieldInfo
-
getAnnotations
@NotNull public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getAnnotations
in classFieldInfo
-
getDeclaredAnnotations
@NotNull public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getDeclaredAnnotations
in classFieldInfo
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresent
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
isAnnotationPresent
in classFieldInfo
-
isEquivalentTo
public boolean isEquivalentTo(MemberInfo m)
- Overrides:
isEquivalentTo
in classFieldInfo
-
-