Package com.strobel.reflection
Class ReflectedField
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.FieldInfo
-
- com.strobel.reflection.ReflectedField
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
class ReflectedField extends FieldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private Type<?>_declaringTypeprivate Type<?>_fieldTypeprivate java.lang.reflect.Field_rawFieldprivate Type<?>_reflectedType-
Fields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER
-
-
Constructor Summary
Constructors Constructor Description ReflectedField(Type<?> declaringType, Type<?> reflectedType, java.lang.reflect.Field rawField, Type<?> fieldType)ReflectedField(Type<?> declaringType, java.lang.reflect.Field rawField, Type<?> fieldType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type<?>getDeclaringType()Type<?>getFieldType()intgetModifiers()java.lang.StringgetName()java.lang.reflect.FieldgetRawField()Type<?>getReflectedType()booleanisEnumConstant()-
Methods inherited from class com.strobel.reflection.FieldInfo
appendBriefDescription, appendDescription, appendErasedDescription, appendErasedSignature, appendSignature, appendSimpleDescription, getAnnotation, getAnnotations, getDeclaredAnnotations, getMemberType, getValue, isAnnotationPresent, 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
-
-
-
-
Method Detail
-
getRawField
public java.lang.reflect.Field getRawField()
- Specified by:
getRawFieldin classFieldInfo
-
getFieldType
public Type<?> getFieldType()
- Specified by:
getFieldTypein classFieldInfo
-
isEnumConstant
public boolean isEnumConstant()
- Overrides:
isEnumConstantin classFieldInfo
-
getName
public java.lang.String getName()
- Specified by:
getNamein classMemberInfo
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringTypein classMemberInfo
-
getReflectedType
public Type<?> getReflectedType()
- Overrides:
getReflectedTypein classMemberInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin classMemberInfo
-
-