Since set of primitive types is bounded, constructor is defined as protected, and class final; that is, new primitive types are not to be constructed by calling applications.
| Modifier and Type | Field and Description |
|---|---|
| protected final String | _description
Human-readable description should be simple as well |
| protected final String | _signature
Primitive types have single-character Signature, easy and efficient to just store here |
| private static final ResolvedPrimitiveType |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static List | |
| public StringBuilder | appendBriefDescription(StringBuilder sb)
Implements abstract com. |
| public StringBuilder | appendErasedSignature(StringBuilder sb)
Implements abstract com. |
| public StringBuilder | appendFullDescription(StringBuilder sb)
Implements abstract com. |
| public StringBuilder | appendSignature(StringBuilder sb)
Implements abstract com. |
| public boolean | canCreateSubtypes()
Implements abstract com. TypeResolver#resolveSubtype(ResolvedType, Class)
may ever succeed; if false, it will fail with an exception, if true, it may succeed.
|
| public ResolvedType | getArrayElementType()
Implements abstract com. |
| public String | getErasedSignature()
Overrides com. |
| public String | getFullDescription()
Overrides com. |
| public List | getImplementedInterfaces()
Implements abstract com. |
| public ResolvedType | getParentClass()
Implements abstract com. java..
|
| public ResolvedType | getSelfReferencedType()
Implements abstract com. T implements Comparable<T>).
|
| public String | getSignature()
Overrides com. |
| public boolean | |
| public boolean | isArray()
Implements abstract com. |
| public boolean | |
| public boolean | isPrimitive()
Implements abstract com. |
| public static ResolvedPrimitiveType |
| _description | back to summary |
|---|---|
| protected final String _description Human-readable description should be simple as well | |
| _signature | back to summary |
|---|---|
| protected final String _signature Primitive types have single-character Signature, easy and efficient to just store here | |
| VOID | back to summary |
|---|---|
| private static final ResolvedPrimitiveType VOID | |
| ResolvedPrimitiveType | back to summary |
|---|---|
| protected ResolvedPrimitiveType(Class<?> erased, char sig, String desc) | |
| all | back to summary |
|---|---|
| public static List | |
| appendBriefDescription | back to summary |
|---|---|
| public StringBuilder appendBriefDescription(StringBuilder sb) Implements abstract com.
| |
| appendErasedSignature | back to summary |
|---|---|
| public StringBuilder appendErasedSignature(StringBuilder sb) Implements abstract com.
| |
| appendFullDescription | back to summary |
|---|---|
| public StringBuilder appendFullDescription(StringBuilder sb) Implements abstract com.
| |
| appendSignature | back to summary |
|---|---|
| public StringBuilder appendSignature(StringBuilder sb) Implements abstract com.
| |
| canCreateSubtypes | back to summary |
|---|---|
| public boolean canCreateSubtypes() Implements abstract com. Doc from com. Method that can be used to check if call to
| |
| getArrayElementType | back to summary |
|---|---|
| public ResolvedType getArrayElementType() Implements abstract com. Doc from com. Method that can be used to access element type of array types; will return null for non-array types, and non-null type for array types.
| |
| getErasedSignature | back to summary |
|---|---|
| public String getErasedSignature() Overrides com. Doc from com. Method that returns type erased signature of the type; suitable as non-generic signature some packages need
| |
| getFullDescription | back to summary |
|---|---|
| public String getFullDescription() Overrides com. Doc from com. Human-readable full description of type, which includes specification of super types (in brief format)
| |
| getImplementedInterfaces | back to summary |
|---|---|
| public List Implements abstract com. Doc from com. Returns ordered list of interfaces (in declaration order) that this type directly implements. Note returned list does NOT include transitively implemented types (that is, interfaces implemented by parent classes or interfaces).
| |
| getParentClass | back to summary |
|---|---|
| public ResolvedType getParentClass() Implements abstract com. Doc from com. Returns parent class of this type, if it has one; primitive types
and interfaces have no parent class, nor does Object type
| |
| getSelfReferencedType | back to summary |
|---|---|
| public ResolvedType getSelfReferencedType() Implements abstract com. Doc from com. Accessor that must be used to find out actual type in
case of "self-reference"; case where type refers
recursive to itself (like,
| |
| getSignature | back to summary |
|---|---|
| public String getSignature() Overrides com. Doc from com. Method that returns full generic signature of the type; suitable as signature for things like ASM package.
| |
| isAbstract | back to summary |
|---|---|
| public boolean isAbstract() Implements abstract com.
| |
| isArray | back to summary |
|---|---|
| public boolean isArray() Implements abstract com. Doc from com. Method that indicates whether this type is an array type.
| |
| isInterface | back to summary |
|---|---|
| public boolean isInterface() Implements abstract com.
| |
| isPrimitive | back to summary |
|---|---|
| public boolean isPrimitive() Implements abstract com. Doc from com. Method that indicates whether this type is one of small number of primitive Java types; not including array types of primitive types but just basic primitive types.
| |
| voidType | back to summary |
|---|---|
| public static ResolvedPrimitiveType voidType() | |