Class SourceDebugExtensionWriter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int copyInto​(byte[] buf, int offset)
      Copy the bytes into 'buf' at offset 'offset'.
      int getSize()  
      void setDebugInfo​(java.lang.String sourceDebug)  
      void setRawTable​(byte[] sourceDebug)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SourceDebugExtensionWriter

        public SourceDebugExtensionWriter​(ClassWriter w)
    • Method Detail

      • getSize

        public int getSize()
        Specified by:
        getSize in class ClassWriter.Element
        Returns:
        the number of bytes that will be generated.
      • copyInto

        public int copyInto​(byte[] buf,
                            int offset)
                     throws java.lang.IllegalArgumentException
        Description copied from class: ClassWriter.Element
        Copy the bytes into 'buf' at offset 'offset'.
        Specified by:
        copyInto in class ClassWriter.Element
        Returns:
        the number of bytes copies, which must be equal to getSize()
        Throws:
        java.lang.IllegalArgumentException
      • setRawTable

        public void setRawTable​(byte[] sourceDebug)
      • setDebugInfo

        public void setDebugInfo​(java.lang.String sourceDebug)