public class ReferenceCreator extends Object
| Constructor and Description |
|---|
ReferenceCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the scanned references.
|
Reference |
createReference(Direction direction,
org.jboss.jandex.ClassInfo classInfo)
This method create a reference to type that might not yet exist.
|
Reference |
createReference(Direction direction,
org.jboss.jandex.ClassInfo classInfo,
boolean createType,
List<org.jboss.jandex.Type> parametrizedTypeArguments)
This method create a reference to type that might not yet exist.
|
Reference |
createReferenceForInterfaceField(org.jboss.jandex.Type methodType,
Annotations annotationsForThisMethod,
Reference parentObjectReference)
Get a reference to a field (method response) on an interface
Interfaces is only usable on Type, so the direction in OUT.
|
Reference |
createReferenceForOperationArgument(org.jboss.jandex.Type argumentType,
Annotations annotationsForThisArgument)
Get a reference to a argument type for an operation Direction is IN on an argument (and OUT on a field) In the
case of operation, there is no field (only methods)
|
Reference |
createReferenceForOperationField(org.jboss.jandex.Type fieldType,
Annotations annotationsForMethod)
Get a reference to a field type for an operation Direction is OUT on a field (and IN on an argument) In the case
of operations, there is no fields (only methods)
|
Reference |
createReferenceForPojoField(Direction direction,
org.jboss.jandex.Type fieldType,
org.jboss.jandex.Type methodType,
Annotations annotations,
Reference parentObjectReference)
Get a reference to a Field Type for a InputType or Type.
|
Reference |
createReferenceForSourceArgument(org.jboss.jandex.Type argumentType,
Annotations annotationsForThisArgument)
Get a reference to a source argument type for an operation Direction is OUT on an argument.
|
Queue<Reference> |
values(ReferenceType referenceType)
Get the values for a certain type
|
public void clear()
public Queue<Reference> values(ReferenceType referenceType)
referenceType - the typepublic Reference createReferenceForOperationField(org.jboss.jandex.Type fieldType, Annotations annotationsForMethod)
fieldType - the java typeannotationsForMethod - annotation on this operations methodpublic Reference createReferenceForOperationArgument(org.jboss.jandex.Type argumentType, Annotations annotationsForThisArgument)
argumentType - the java typeannotationsForThisArgument - annotations on this argumentpublic Reference createReferenceForSourceArgument(org.jboss.jandex.Type argumentType, Annotations annotationsForThisArgument)
argumentType - the java typeannotationsForThisArgument - annotations on this argumentpublic Reference createReferenceForInterfaceField(org.jboss.jandex.Type methodType, Annotations annotationsForThisMethod, Reference parentObjectReference)
methodType - the method response typeannotationsForThisMethod - annotations on this methodpublic Reference createReferenceForPojoField(Direction direction, org.jboss.jandex.Type fieldType, org.jboss.jandex.Type methodType, Annotations annotations, Reference parentObjectReference)
direction - in or outfieldType - the field typemethodType - the method typeannotations - the annotations on the field and methodparentObjectReference - Reference of the parent PoJo use so we can evaluate generics typespublic Reference createReference(Direction direction, org.jboss.jandex.ClassInfo classInfo)
direction - the direction (in or out)classInfo - the Java classpublic Reference createReference(Direction direction, org.jboss.jandex.ClassInfo classInfo, boolean createType, List<org.jboss.jandex.Type> parametrizedTypeArguments)
direction - the direction (in or out)classInfo - the Java classcreateType - create the type in the schemaCopyright © 2018–2020. All rights reserved.