Class TypeAnnotation

  • All Implemented Interfaces:
    Printable

    public class TypeAnnotation
    extends Annotation
    A type annotation element.
    • Constructor Detail

      • TypeAnnotation

        public TypeAnnotation​(ClassInfo classInfo,
                              int typeIndex,
                              java.util.List<AnnotationElement> elements,
                              TypeAnnotationTarget target,
                              TypeAnnotationPath path)
        Constructs a new TypeAnnotation instance.
        Parameters:
        classInfo - the ClassInfo instance this annotation attribute is part of.
        typeIndex - the annotation type index.
        elements - the annotation elements.
        target - the annotation target.
        path - the annotation path.
    • Method Detail

      • matchTargetType

        public boolean matchTargetType​(int targetType)