Package com.strobel.reflection
Class ErasedField
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.FieldInfo
-
- com.strobel.reflection.ErasedField
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
final class ErasedField extends FieldInfo
-
-
Field Summary
Fields Modifier and Type Field Description private FieldInfo
_baseField
private Type<?>
_declaringType
private Type<?>
_fieldType
-
Fields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER
-
-
Constructor Summary
Constructors Constructor Description ErasedField(FieldInfo baseField, Type<?> declaringType, Type<?> fieldType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilder
appendErasedDescription(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendErasedSignature(java.lang.StringBuilder sb)
<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)
java.lang.annotation.Annotation[]
getAnnotations()
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()
-
Methods inherited from class com.strobel.reflection.FieldInfo
appendBriefDescription, appendDescription, appendSignature, appendSimpleDescription, getMemberType, getValue, 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
-
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
-
appendErasedDescription
public java.lang.StringBuilder appendErasedDescription(java.lang.StringBuilder sb)
- Overrides:
appendErasedDescription
in classFieldInfo
-
appendErasedSignature
public java.lang.StringBuilder appendErasedSignature(java.lang.StringBuilder sb)
- Overrides:
appendErasedSignature
in classFieldInfo
-
-