public class TypePlaceHolder extends ResolvedType
Modifier and Type | Field and Description |
---|---|
protected ResolvedType |
_actualType
Type assigned during wildcard resolution
|
protected int |
_ordinal |
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES
Constructor and Description |
---|
TypePlaceHolder(int ordinal) |
Modifier and Type | Method and Description |
---|---|
ResolvedType |
actualType() |
void |
actualType(ResolvedType t) |
StringBuilder |
appendBriefDescription(StringBuilder sb) |
StringBuilder |
appendErasedSignature(StringBuilder sb) |
StringBuilder |
appendFullDescription(StringBuilder sb) |
StringBuilder |
appendSignature(StringBuilder sb) |
boolean |
canCreateSubtypes()
Method that can be used to check if call to
TypeResolver.resolveSubtype(ResolvedType, Class)
may ever succeed; if false, it will fail with an exception, if true, it may succeed. |
ResolvedType |
getArrayElementType()
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.
|
List<ResolvedType> |
getImplementedInterfaces()
Returns ordered list of interfaces (in declaration order) that this type
implements.
|
ResolvedType |
getParentClass()
Returns parent class of this type, if it has one; primitive types
and interfaces have no parent class, nor does Object type
Object . |
ResolvedType |
getSelfReferencedType()
Accessor that must be used to find out actual type in
case of "self-reference"; case where type refers
recursive to itself (like,
T implements Comparable<T> ). |
boolean |
isAbstract() |
boolean |
isArray()
Method that indicates whether this type is an array type.
|
boolean |
isInterface() |
boolean |
isPrimitive()
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.
|
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, equals, findSupertype, getBriefDescription, getConstructors, getErasedSignature, getErasedType, getFullDescription, getMemberFields, getMemberMethods, getSignature, getStaticFields, getStaticMethods, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersFor
protected final int _ordinal
protected ResolvedType _actualType
public boolean canCreateSubtypes()
ResolvedType
TypeResolver.resolveSubtype(ResolvedType, Class)
may ever succeed; if false, it will fail with an exception, if true, it may succeed.canCreateSubtypes
in class ResolvedType
public ResolvedType actualType()
public void actualType(ResolvedType t)
public ResolvedType getParentClass()
ResolvedType
Object
.
Also, placeholders for cyclic (recursive) types return null for
this method.getParentClass
in class ResolvedType
public ResolvedType getSelfReferencedType()
ResolvedType
T implements Comparable<T>
).
For all other types returns null but for self-references "real" type.
Separate accessor is provided to avoid accidental infinite loops.getSelfReferencedType
in class ResolvedType
public List<ResolvedType> getImplementedInterfaces()
ResolvedType
getImplementedInterfaces
in class ResolvedType
public ResolvedType getArrayElementType()
ResolvedType
getArrayElementType
in class ResolvedType
public boolean isInterface()
isInterface
in class ResolvedType
public boolean isAbstract()
isAbstract
in class ResolvedType
public boolean isArray()
ResolvedType
isArray
in class ResolvedType
public boolean isPrimitive()
ResolvedType
isPrimitive
in class ResolvedType
public StringBuilder appendSignature(StringBuilder sb)
appendSignature
in class ResolvedType
public StringBuilder appendErasedSignature(StringBuilder sb)
appendErasedSignature
in class ResolvedType
public StringBuilder appendBriefDescription(StringBuilder sb)
appendBriefDescription
in class ResolvedType
public StringBuilder appendFullDescription(StringBuilder sb)
appendFullDescription
in class ResolvedType
Copyright © 2012 fasterxml.com. All Rights Reserved.