public class TypeResolver extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<String,TypeResolver> |
getAllFields(AugmentedIndexView index,
IgnoreResolver ignoreResolver,
org.jboss.jandex.Type leaf,
org.jboss.jandex.ClassInfo leafKlazz,
org.jboss.jandex.AnnotationTarget reference) |
org.jboss.jandex.AnnotationTarget |
getAnnotationTarget()
Get the annotation target that represents this instance's schema property.
|
String |
getBeanPropertyName() |
org.jboss.jandex.ClassInfo |
getDeclaringClass()
Get the declaring class of the annotation target.
|
org.jboss.jandex.FieldInfo |
getField()
Retrieves the field associated with this property.
|
String |
getPropertyName()
Determine the name of the instance's property.
|
org.jboss.jandex.MethodInfo |
getReadMethod()
Retrieves the read method (getter) associated with this property.
|
org.jboss.jandex.Type |
getResolvedType(org.jboss.jandex.ParameterizedType type)
Resolve a parameterized type against this
TypeResolver's resolution stack. |
org.jboss.jandex.Type |
getResolvedType(org.jboss.jandex.Type fieldType)
Resolve a type against this
TypeResolver's resolution stack |
org.jboss.jandex.Type |
getUnresolvedType() |
org.jboss.jandex.MethodInfo |
getWriteMethod()
Retrieves the write method (setter) associated with this property.
|
boolean |
isIgnored() |
org.jboss.jandex.Type |
resolveType()
Resolve the type that was used to initially construct this
TypeResolver |
public org.jboss.jandex.ClassInfo getDeclaringClass()
ClassInfo of the class that declares the optimal annotation target for the type represented by the
current instance.public org.jboss.jandex.AnnotationTarget getAnnotationTarget()
public org.jboss.jandex.Type getUnresolvedType()
public String getPropertyName()
@Schema
@JsonbProperty
@JsonProperty
@XmlElement
@XmlAttribute
public String getBeanPropertyName()
public org.jboss.jandex.FieldInfo getField()
public org.jboss.jandex.MethodInfo getReadMethod()
public org.jboss.jandex.MethodInfo getWriteMethod()
public org.jboss.jandex.Type resolveType()
TypeResolverpublic boolean isIgnored()
public org.jboss.jandex.Type getResolvedType(org.jboss.jandex.Type fieldType)
TypeResolver's resolution stackfieldType - type to resolvepublic org.jboss.jandex.Type getResolvedType(org.jboss.jandex.ParameterizedType type)
TypeResolver's resolution stack.
If any of the type's arguments are wild card types, the resolution will fall back
to the basic getResolvedType(Type) method, resolving none of
the arguments.type - type to resolvepublic static Map<String,TypeResolver> getAllFields(AugmentedIndexView index, IgnoreResolver ignoreResolver, org.jboss.jandex.Type leaf, org.jboss.jandex.ClassInfo leafKlazz, org.jboss.jandex.AnnotationTarget reference)
Copyright © 2018–2021. All rights reserved.