Class CTypeAnnotation

    • Field Detail

      • typeRef

        protected int typeRef
        a reference to the annotated type. The sort of this type reference must be TypeReference.CLASS_TYPE_PARAMETER, TypeReference.CLASS_TYPE_PARAMETER_BOUND or TypeReference.CLASS_EXTENDS See TypeReference.
      • typePath

        protected String typePath
        the path to the annotated type argument, wildcard bound, array element type, or static inner type within 'typeRef'. May be null if the annotation targets 'typeRef' as a whole.
      • descriptor

        protected String descriptor
      • visible

        protected boolean visible
    • Constructor Detail

      • CTypeAnnotation

        public CTypeAnnotation()
        Конструктор по умолчанию
      • CTypeAnnotation

        public CTypeAnnotation​(int typeRef,
                               String typePath,
                               String descriptor,
                               boolean visible)
      • CTypeAnnotation

        public CTypeAnnotation​(CTypeAnnotation sample)
        Конструктор копирования
        Parameters:
        sample - образец
    • Method Detail

      • configure

        public CTypeAnnotation configure​(Consumer<CTypeAnnotation> conf)
        Конфигурация экземпляра
        Parameters:
        conf - конфигурация
        Returns:
        SELF ссылка
      • getTypeRef

        public int getTypeRef()
      • setTypeRef

        public void setTypeRef​(int typeRef)
      • getTypePath

        public String getTypePath()
      • setTypePath

        public void setTypePath​(String typePath)
      • getDescriptor

        public String getDescriptor()
      • setDescriptor

        public void setDescriptor​(String descriptor)
      • isVisible

        public boolean isVisible()
      • setVisible

        public void setVisible​(boolean visible)
      • nodes

        public xyz.cofe.iter.Eterable<ByteCode> nodes()
        Возвращает дочерние узлы
        Specified by:
        nodes in interface ByteCode
        Specified by:
        nodes in interface xyz.cofe.collection.ImTree<ByteCode>
        Returns:
        дочерние узлы
      • write

        public void write​(org.objectweb.asm.ClassWriter v)
        Specified by:
        write in interface ClazzWriter