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<?>
_declaringType
private Type<?>
_fieldType
private java.lang.reflect.Field
_rawField
private 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()
int
getModifiers()
java.lang.String
getName()
java.lang.reflect.Field
getRawField()
Type<?>
getReflectedType()
boolean
isEnumConstant()
-
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:
getRawField
in classFieldInfo
-
getFieldType
public Type<?> getFieldType()
- Specified by:
getFieldType
in classFieldInfo
-
isEnumConstant
public boolean isEnumConstant()
- Overrides:
isEnumConstant
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
-
-