Class SimpleTypeTarget

java.lang.Object
io.smallrye.openapi.internal.support.SimpleTypeTarget
All Implemented Interfaces:
org.jboss.jandex.AnnotationTarget

public final class SimpleTypeTarget extends Object implements org.jboss.jandex.AnnotationTarget
Simple wrapper type that may be used to allow a Type to be accessed like an AnnotationTarget.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jboss.jandex.AnnotationTarget

    org.jboss.jandex.AnnotationTarget.Kind
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jboss.jandex.AnnotationInstance
    annotation(org.jboss.jandex.DotName name)
     
    Collection<org.jboss.jandex.AnnotationInstance>
     
    Collection<org.jboss.jandex.AnnotationInstance>
    annotations(org.jboss.jandex.DotName name)
     
    Collection<org.jboss.jandex.AnnotationInstance>
    annotationsWithRepeatable(org.jboss.jandex.DotName name, org.jboss.jandex.IndexView index)
     
    org.jboss.jandex.ClassInfo
     
    org.jboss.jandex.Declaration
     
    org.jboss.jandex.FieldInfo
     
    org.jboss.jandex.MethodInfo
     
    org.jboss.jandex.MethodParameterInfo
     
    org.jboss.jandex.RecordComponentInfo
     
    org.jboss.jandex.TypeTarget
     
    static final SimpleTypeTarget
    create(org.jboss.jandex.Type type)
     
    org.jboss.jandex.AnnotationInstance
    declaredAnnotation(org.jboss.jandex.DotName name)
     
    Collection<org.jboss.jandex.AnnotationInstance>
     
    Collection<org.jboss.jandex.AnnotationInstance>
    declaredAnnotationsWithRepeatable(org.jboss.jandex.DotName name, org.jboss.jandex.IndexView index)
     
    boolean
    hasAnnotation(org.jboss.jandex.DotName name)
     
    boolean
    hasDeclaredAnnotation(org.jboss.jandex.DotName name)
     
    boolean
     
    org.jboss.jandex.AnnotationTarget.Kind
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.jandex.AnnotationTarget

    annotation, annotation, annotations, annotations, annotationsWithRepeatable, annotationsWithRepeatable, declaredAnnotation, declaredAnnotation, declaredAnnotationsWithRepeatable, declaredAnnotationsWithRepeatable, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation
  • Method Details

    • create

      public static final SimpleTypeTarget create(org.jboss.jandex.Type type)
    • kind

      public org.jboss.jandex.AnnotationTarget.Kind kind()
      Specified by:
      kind in interface org.jboss.jandex.AnnotationTarget
    • isDeclaration

      public boolean isDeclaration()
      Specified by:
      isDeclaration in interface org.jboss.jandex.AnnotationTarget
    • asDeclaration

      public org.jboss.jandex.Declaration asDeclaration()
      Specified by:
      asDeclaration in interface org.jboss.jandex.AnnotationTarget
    • asClass

      public org.jboss.jandex.ClassInfo asClass()
      Specified by:
      asClass in interface org.jboss.jandex.AnnotationTarget
    • asField

      public org.jboss.jandex.FieldInfo asField()
      Specified by:
      asField in interface org.jboss.jandex.AnnotationTarget
    • asMethod

      public org.jboss.jandex.MethodInfo asMethod()
      Specified by:
      asMethod in interface org.jboss.jandex.AnnotationTarget
    • asMethodParameter

      public org.jboss.jandex.MethodParameterInfo asMethodParameter()
      Specified by:
      asMethodParameter in interface org.jboss.jandex.AnnotationTarget
    • asType

      public org.jboss.jandex.TypeTarget asType()
      Specified by:
      asType in interface org.jboss.jandex.AnnotationTarget
    • asRecordComponent

      public org.jboss.jandex.RecordComponentInfo asRecordComponent()
      Specified by:
      asRecordComponent in interface org.jboss.jandex.AnnotationTarget
    • hasAnnotation

      public boolean hasAnnotation(org.jboss.jandex.DotName name)
      Specified by:
      hasAnnotation in interface org.jboss.jandex.AnnotationTarget
    • annotation

      public org.jboss.jandex.AnnotationInstance annotation(org.jboss.jandex.DotName name)
      Specified by:
      annotation in interface org.jboss.jandex.AnnotationTarget
    • annotations

      public Collection<org.jboss.jandex.AnnotationInstance> annotations(org.jboss.jandex.DotName name)
      Specified by:
      annotations in interface org.jboss.jandex.AnnotationTarget
    • annotationsWithRepeatable

      public Collection<org.jboss.jandex.AnnotationInstance> annotationsWithRepeatable(org.jboss.jandex.DotName name, org.jboss.jandex.IndexView index)
      Specified by:
      annotationsWithRepeatable in interface org.jboss.jandex.AnnotationTarget
    • annotations

      public Collection<org.jboss.jandex.AnnotationInstance> annotations()
      Specified by:
      annotations in interface org.jboss.jandex.AnnotationTarget
    • hasDeclaredAnnotation

      public boolean hasDeclaredAnnotation(org.jboss.jandex.DotName name)
      Specified by:
      hasDeclaredAnnotation in interface org.jboss.jandex.AnnotationTarget
    • declaredAnnotation

      public org.jboss.jandex.AnnotationInstance declaredAnnotation(org.jboss.jandex.DotName name)
      Specified by:
      declaredAnnotation in interface org.jboss.jandex.AnnotationTarget
    • declaredAnnotationsWithRepeatable

      public Collection<org.jboss.jandex.AnnotationInstance> declaredAnnotationsWithRepeatable(org.jboss.jandex.DotName name, org.jboss.jandex.IndexView index)
      Specified by:
      declaredAnnotationsWithRepeatable in interface org.jboss.jandex.AnnotationTarget
    • declaredAnnotations

      public Collection<org.jboss.jandex.AnnotationInstance> declaredAnnotations()
      Specified by:
      declaredAnnotations in interface org.jboss.jandex.AnnotationTarget