Class BytecodeField


  • public final class BytecodeField
    extends Object
    Bytecode field.
    Since:
    0.2
    • Constructor Detail

      • BytecodeField

        public BytecodeField​(String name,
                             String descr,
                             String signature,
                             Object value,
                             int access)
        Constructor.
        Parameters:
        name - Name.
        descr - Descriptor.
        signature - Signature.
        value - Value.
        access - Access.
    • Method Detail

      • write

        public void write​(org.objectweb.asm.ClassVisitor visitor)
        Write field to a class.
        Parameters:
        visitor - Visitor.
      • withAnnotation

        public void withAnnotation​(String descr,
                                   boolean visible)
        Add annotation.
        Parameters:
        descr - Descriptor.
        visible - Visible.