public class TypeResolver extends Object
| Modifier and Type | Method and Description |
|---|---|
static TypeResolver |
forClass(org.jboss.jandex.IndexView index,
org.jboss.jandex.ClassInfo clazz,
org.jboss.jandex.Type leaf)
Create a new TypeResolver for the given ClassInfo clazz and type.
|
static Map<String,TypeResolver> |
getAllFields(AnnotationScannerContext context,
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() |
List<org.jboss.jandex.AnnotationTarget> |
getConstraintTargets() |
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 |
resolve(org.jboss.jandex.Type type)
Resolve a parameterized type against this
TypeResolver's resolution stack. |
static org.jboss.jandex.ParameterizedType |
resolveParameterizedAncestor(AnnotationScannerContext context,
org.jboss.jandex.ParameterizedType pType,
org.jboss.jandex.Type seekType) |
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 org.jboss.jandex.Type resolve(org.jboss.jandex.Type 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 List<org.jboss.jandex.AnnotationTarget> getConstraintTargets()
public static TypeResolver forClass(org.jboss.jandex.IndexView index, org.jboss.jandex.ClassInfo clazz, org.jboss.jandex.Type leaf)
index - class scanning indexclazz - class to be resolvedleaf - the type of clazz where referencedpublic static Map<String,TypeResolver> getAllFields(AnnotationScannerContext context, org.jboss.jandex.Type leaf, org.jboss.jandex.ClassInfo leafKlazz, org.jboss.jandex.AnnotationTarget reference)
public static org.jboss.jandex.ParameterizedType resolveParameterizedAncestor(AnnotationScannerContext context, org.jboss.jandex.ParameterizedType pType, org.jboss.jandex.Type seekType)
Copyright © 2018–2021. All rights reserved.