Package com.strobel.reflection
Class ArrayType<T>
- java.lang.Object
-
- com.strobel.reflection.MemberInfo
-
- com.strobel.reflection.Type<T>
-
- com.strobel.reflection.ArrayType<T>
-
- All Implemented Interfaces:
java.lang.reflect.AnnotatedElement
,java.lang.reflect.Type
final class ArrayType<T> extends Type<T>
-
-
Field Summary
Fields Modifier and Type Field Description private Type<?>
_elementType
private java.lang.Class<T>
_erasedClass
private FieldList
_fields
private MethodList
_methods
-
Fields inherited from class com.strobel.reflection.Type
Bottom, CACHE, CACHE_LOCK, DefaultBinder, DefaultLookup, Delimiter, EmptyConstructors, EmptyFields, EmptyMembers, EmptyMethods, EmptyObjects, EmptyStrings, EmptyTypes, FilterMethodOverride, FilterName, FilterNameIgnoreCase, FilterRawMember, NullType, PRIMITIVE_TYPES, RESOLVER, TYPE_BINDER, Value
-
Fields inherited from class com.strobel.reflection.MemberInfo
EMPTY_ANNOTATIONS, ENUM_MODIFIER, VARARGS_MODIFIER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P,R>
Raccept(TypeVisitor<P,R> visitor, P parameter)
java.lang.StringBuilder
appendBriefDescription(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendDescription(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendErasedSignature(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendSignature(java.lang.StringBuilder sb)
java.lang.StringBuilder
appendSimpleDescription(java.lang.StringBuilder sb)
<A extends java.lang.annotation.Annotation>
AgetAnnotation(java.lang.Class<A> annotationClass)
java.lang.annotation.Annotation[]
getAnnotations()
protected java.lang.String
getClassFullName()
protected java.lang.String
getClassSimpleName()
java.lang.annotation.Annotation[]
getDeclaredAnnotations()
FieldList
getDeclaredFields()
protected MethodList
getDeclaredMethods()
Type<?>
getDeclaringType()
Type<?>
getElementType()
java.lang.Class<T>
getErasedClass()
Type<?>
getGenericTypeDefinition()
java.lang.String
getInternalName()
javax.lang.model.type.TypeKind
getKind()
int
getModifiers()
TypeBindings
getTypeBindings()
boolean
hasElementType()
boolean
isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
boolean
isArray()
boolean
isGenericType()
-
Methods inherited from class com.strobel.reflection.Type
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, appendErasedDescription, appendGenericSignature, asSuperTypeOf, bottomType, containsGenericParameter, containsGenericParameters, createArrayType, filterMethodBase, filterPreCalculate, findMembers, forName, forName, getBaseType, getCache, getConstructor, getConstructor, getConstructor, getConstructors, getConstructors, getDeclaredConstructors, getDeclaredTypes, getDeclaringMethod, getEnumConstants, getEnumNames, getErasedType, getExplicitInterfaces, getExtendsBound, getField, getField, getFields, getFields, getFullName, getGenericParameterPosition, getGenericSignature, getGenericTypeParameters, getInterfaces, getMember, getMember, getMember, getMembers, getMembers, getMembers, getMembers, getMembers, getMembersOfType, getMemberType, getMethod, getMethod, getMethod, getMethods, getMethods, getMethods, getMostSpecificType, getName, getNestedType, getNestedType, getNestedTypes, getNestedTypes, getPackage, getRootElementType, getShortName, getSuperBound, getType, getTypeArguments, getUnderlyingType, getUnderlyingTypeCore, hasExtendsBound, hashCode, hasSuperBound, implementsInterface, invalidateCaches, isAbstract, isAssignableFrom, isBoundedType, isClass, isCompoundType, isEnum, isEquivalentTo, isEquivalentTo, isGenericParameter, isGenericTypeDefinition, isInstance, isInterface, isLocalClass, isNested, isPrimitive, isRawType, isSubTypeOf, isSynthetic, isUnbounded, isVisible, isWildcardType, list, list, list, makeArrayType, makeArrayType, makeCompoundType, makeCompoundType, makeExtendsWildcard, makeGenericType, makeGenericType, makeGenericTypeCore, makeSuperWildcard, makeWildcard, newInstance, nullType, of, of, substitute, toString, tryFind, unboundedWildcard
-
Methods inherited from class com.strobel.reflection.MemberInfo
emptyAnnotations, equals, getAnnotationsByType, getBriefDescription, getDeclaredAnnotation, getDeclaredAnnotationsByType, getDescription, getErasedDescription, getErasedSignature, getReflectedType, getSignature, getSimpleDescription, isFinal, isNonPublic, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
-
-
-
-
Field Detail
-
_elementType
private final Type<?> _elementType
-
_fields
private final FieldList _fields
-
_methods
private final MethodList _methods
-
_erasedClass
private java.lang.Class<T> _erasedClass
-
-
Constructor Detail
-
ArrayType
ArrayType(Type<?> elementType)
-
-
Method Detail
-
getClassFullName
protected java.lang.String getClassFullName()
- Overrides:
getClassFullName
in classType<T>
-
getClassSimpleName
protected java.lang.String getClassSimpleName()
- Overrides:
getClassSimpleName
in classType<T>
-
getInternalName
public java.lang.String getInternalName()
- Overrides:
getInternalName
in classType<T>
-
getErasedClass
public java.lang.Class<T> getErasedClass()
- Overrides:
getErasedClass
in classType<T>
-
getElementType
public Type<?> getElementType()
- Overrides:
getElementType
in classType<T>
-
isGenericType
public boolean isGenericType()
- Overrides:
isGenericType
in classType<T>
-
hasElementType
public boolean hasElementType()
- Overrides:
hasElementType
in classType<T>
-
getGenericTypeDefinition
public Type<?> getGenericTypeDefinition()
- Overrides:
getGenericTypeDefinition
in classType<T>
-
getTypeBindings
public TypeBindings getTypeBindings()
- Overrides:
getTypeBindings
in classType<T>
-
getDeclaringType
public Type<?> getDeclaringType()
- Specified by:
getDeclaringType
in classMemberInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiers
in classMemberInfo
-
getDeclaredMethods
protected MethodList getDeclaredMethods()
- Overrides:
getDeclaredMethods
in classType<T>
-
getDeclaredFields
public FieldList getDeclaredFields()
- Overrides:
getDeclaredFields
in classType<T>
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
- Specified by:
isAnnotationPresent
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
isAnnotationPresent
in classType<T>
-
getAnnotation
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationClass)
- Specified by:
getAnnotation
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getAnnotation
in classType<T>
-
getAnnotations
@NotNull public java.lang.annotation.Annotation[] getAnnotations()
- Specified by:
getAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getAnnotations
in classType<T>
-
getDeclaredAnnotations
@NotNull public java.lang.annotation.Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations
in interfacejava.lang.reflect.AnnotatedElement
- Overrides:
getDeclaredAnnotations
in classType<T>
-
appendSignature
public java.lang.StringBuilder appendSignature(java.lang.StringBuilder sb)
- Overrides:
appendSignature
in classType<T>
-
appendErasedSignature
public java.lang.StringBuilder appendErasedSignature(java.lang.StringBuilder sb)
- Overrides:
appendErasedSignature
in classType<T>
-
appendBriefDescription
public java.lang.StringBuilder appendBriefDescription(java.lang.StringBuilder sb)
- Overrides:
appendBriefDescription
in classType<T>
-
appendSimpleDescription
public java.lang.StringBuilder appendSimpleDescription(java.lang.StringBuilder sb)
- Overrides:
appendSimpleDescription
in classType<T>
-
appendDescription
public java.lang.StringBuilder appendDescription(java.lang.StringBuilder sb)
- Overrides:
appendDescription
in classType<T>
-
accept
public <P,R> R accept(TypeVisitor<P,R> visitor, P parameter)
-
-