Package com.strobel.reflection
Class PrimitiveType<T>
java.lang.Object
com.strobel.reflection.MemberInfo
com.strobel.reflection.Type<T>
com.strobel.reflection.PrimitiveType<T>
- All Implemented Interfaces:
AnnotatedElement
,Type
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final TypeKind
private final String
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
-
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveType
(Class<T> clazz, char signature, String description, TypeKind kind) -
Method Summary
Modifier and TypeMethodDescription<P,
R> R accept
(TypeVisitor<P, R> visitor, P parameter) <A extends Annotation>
AgetAnnotation
(Class<A> annotationClass) getConstructor
(Set<BindingFlags> bindingFlags, CallingConvention callingConvention, Type<?>... parameterTypes) getConstructors
(Set<BindingFlags> bindingFlags) Type
<?> getField
(String name, Set<BindingFlags> bindingFlags) getFields
(Set<BindingFlags> bindingFlags) getKind()
MemberList
<?> getMember
(String name, Set<BindingFlags> bindingFlags, Set<MemberType> memberTypes) MemberList
<?> getMembers
(Set<BindingFlags> bindingFlags, Set<MemberType> memberTypes) getMethod
(String name, Set<BindingFlags> bindingFlags, CallingConvention callingConvention, Type<?>... parameterTypes) getMethods
(Set<BindingFlags> bindingFlags, CallingConvention callingConvention) int
getNestedTypes
(Set<BindingFlags> bindingFlags) protected TypeBindings
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) boolean
Methods inherited from class com.strobel.reflection.Type
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, appendErasedDescription, appendGenericSignature, asSuperTypeOf, bottomType, containsGenericParameter, containsGenericParameters, filterMethodBase, filterPreCalculate, findMembers, forName, forName, getBaseType, getCache, getClassFullName, getClassSimpleName, getConstructor, getConstructor, getConstructors, getDeclaredConstructors, getDeclaredFields, getDeclaredMethods, getDeclaredTypes, getDeclaringMethod, getElementType, getEnumConstants, getEnumNames, getErasedType, getExplicitInterfaces, getExtendsBound, getField, getFields, getGenericParameterPosition, getGenericSignature, getGenericTypeDefinition, getGenericTypeParameters, getInterfaces, getMember, getMember, getMembers, getMembers, getMembers, getMembers, getMembersOfType, getMethod, getMethod, getMethods, getMethods, getMostSpecificType, getName, getNestedType, getNestedType, getNestedTypes, getPackage, getRootElementType, getShortName, getSuperBound, getType, getTypeArguments, getUnderlyingType, getUnderlyingTypeCore, hasElementType, hasExtendsBound, hashCode, hasSuperBound, implementsInterface, invalidateCaches, isAbstract, isArray, isAssignableFrom, isBoundedType, isClass, isCompoundType, isEnum, isEquivalentTo, isEquivalentTo, isGenericParameter, isGenericType, isGenericTypeDefinition, isInstance, isInterface, isLocalClass, isNested, 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.reflect.Type
getTypeName
-
Field Details
-
_class
-
_signature
-
_description
-
_kind
-
-
Constructor Details
-
PrimitiveType
-
-
Method Details
-
getKind
-
isPrimitive
public boolean isPrimitive()- Overrides:
isPrimitive
in classType<T>
-
getErasedClass
- Overrides:
getErasedClass
in classType<T>
-
getTypeBindings
- Overrides:
getTypeBindings
in classType<T>
-
getMember
public MemberList<?> getMember(String name, Set<BindingFlags> bindingFlags, Set<MemberType> memberTypes) -
getField
-
getMethod
public MethodInfo getMethod(String name, Set<BindingFlags> bindingFlags, CallingConvention callingConvention, Type<?>... parameterTypes) -
getConstructor
public ConstructorInfo getConstructor(Set<BindingFlags> bindingFlags, CallingConvention callingConvention, Type<?>... parameterTypes) - Overrides:
getConstructor
in classType<T>
-
getMembers
- Overrides:
getMembers
in classType<T>
-
getFields
-
getMethods
- Overrides:
getMethods
in classType<T>
-
getConstructors
- Overrides:
getConstructors
in classType<T>
-
getNestedTypes
- Overrides:
getNestedTypes
in classType<T>
-
createArrayType
- Overrides:
createArrayType
in classType<T>
-
getMemberType
- Overrides:
getMemberType
in classType<T>
-
getFullName
- Overrides:
getFullName
in classType<T>
-
getInternalName
- Overrides:
getInternalName
in classType<T>
-
getDeclaringType
- Specified by:
getDeclaringType
in classMemberInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classMemberInfo
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceAnnotatedElement
- Overrides:
isAnnotationPresent
in classType<T>
-
getAnnotation
- Specified by:
getAnnotation
in interfaceAnnotatedElement
- Overrides:
getAnnotation
in classType<T>
-
getAnnotations
- Specified by:
getAnnotations
in interfaceAnnotatedElement
- Overrides:
getAnnotations
in classType<T>
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceAnnotatedElement
- Overrides:
getDeclaredAnnotations
in classType<T>
-
accept
-
appendSignature
- Overrides:
appendSignature
in classType<T>
-
appendErasedSignature
- Overrides:
appendErasedSignature
in classType<T>
-
appendDescription
- Overrides:
appendDescription
in classType<T>
-
appendBriefDescription
- Overrides:
appendBriefDescription
in classType<T>
-
appendSimpleDescription
- Overrides:
appendSimpleDescription
in classType<T>
-