public class ResolvedRecursiveType extends ResolvedType
| Modifier and Type | Field and Description |
|---|---|
protected ResolvedType |
_referencedType
Actual fully resolved type; assigned once resolution is complete
|
_erasedType, _typeBindings, NO_CONSTRUCTORS, NO_FIELDS, NO_METHODS, NO_TYPES| Constructor and Description |
|---|
ResolvedRecursiveType(Class<?> erased,
TypeBindings bindings) |
| Modifier and Type | Method and Description |
|---|---|
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. |
boolean |
equals(Object o) |
ResolvedType |
getArrayElementType()
To avoid infinite loops, will return null type
|
List<RawConstructor> |
getConstructors() |
List<ResolvedType> |
getImplementedInterfaces()
To avoid infinite loops, will return empty list
|
List<RawField> |
getMemberFields() |
List<RawMethod> |
getMemberMethods() |
ResolvedType |
getParentClass()
To avoid infinite loops, will return null;
|
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>). |
List<RawField> |
getStaticFields() |
List<RawMethod> |
getStaticMethods() |
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.
|
void |
setReference(ResolvedType ref) |
_appendClassDescription, _appendClassName, _appendClassSignature, _appendErasedClassSignature, _getConstructors, _getFields, _getMethods, canCreateSubtype, findSupertype, getBriefDescription, getErasedSignature, getErasedType, getFullDescription, getSignature, getTypeBindings, getTypeParameters, hashCode, isConcrete, isInstanceOf, toString, typeParametersForprotected ResolvedType _referencedType
public ResolvedRecursiveType(Class<?> erased, TypeBindings bindings)
public boolean canCreateSubtypes()
ResolvedTypeTypeResolver.resolveSubtype(ResolvedType, Class)
may ever succeed; if false, it will fail with an exception, if true, it may succeed.canCreateSubtypes in class ResolvedTypepublic void setReference(ResolvedType ref)
public ResolvedType getParentClass()
getParentClass in class ResolvedTypepublic ResolvedType getSelfReferencedType()
ResolvedTypeT 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 ResolvedTypepublic List<ResolvedType> getImplementedInterfaces()
getImplementedInterfaces in class ResolvedTypepublic ResolvedType getArrayElementType()
getArrayElementType in class ResolvedTypepublic boolean isInterface()
isInterface in class ResolvedTypepublic boolean isAbstract()
isAbstract in class ResolvedTypepublic boolean isArray()
ResolvedTypeisArray in class ResolvedTypepublic boolean isPrimitive()
ResolvedTypeisPrimitive in class ResolvedTypepublic List<RawField> getMemberFields()
getMemberFields in class ResolvedTypepublic List<RawField> getStaticFields()
getStaticFields in class ResolvedTypepublic List<RawMethod> getStaticMethods()
getStaticMethods in class ResolvedTypepublic List<RawMethod> getMemberMethods()
getMemberMethods in class ResolvedTypepublic List<RawConstructor> getConstructors()
getConstructors in class ResolvedTypepublic StringBuilder appendSignature(StringBuilder sb)
appendSignature in class ResolvedTypepublic StringBuilder appendErasedSignature(StringBuilder sb)
appendErasedSignature in class ResolvedTypepublic StringBuilder appendBriefDescription(StringBuilder sb)
appendBriefDescription in class ResolvedTypepublic StringBuilder appendFullDescription(StringBuilder sb)
appendFullDescription in class ResolvedTypepublic boolean equals(Object o)
equals in class ResolvedTypeCopyright © 2012–2017 fasterxml.com. All rights reserved.