Class KotlinSMAP


  • public final class KotlinSMAP
    extends java.lang.Object
    Parsed representation of SourceDebugExtension attribute.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  KotlinSMAP.Mapping
      Parsed representation of a single LineSection from SourceDebugExtension attribute.
    • Constructor Summary

      Constructors 
      Constructor Description
      KotlinSMAP​(java.lang.String sourceFileName, java.lang.String smap)
      Creates parsed representation of provided SourceDebugExtension attribute.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void expectLine​(java.io.BufferedReader br, java.lang.String expected)  
      java.util.List<KotlinSMAP.Mapping> mappings()
      Returns list of mappings.
      • Methods inherited from class java.lang.Object

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

      • LINE_INFO_PATTERN

        private static final java.util.regex.Pattern LINE_INFO_PATTERN
      • FILE_INFO_PATTERN

        private static final java.util.regex.Pattern FILE_INFO_PATTERN
    • Constructor Detail

      • KotlinSMAP

        public KotlinSMAP​(java.lang.String sourceFileName,
                          java.lang.String smap)
        Creates parsed representation of provided SourceDebugExtension attribute.
        Parameters:
        sourceFileName - the name of the source file from which the class with SMAP was compiled
        smap - value of SourceDebugExtension attribute to parse
    • Method Detail

      • mappings

        public java.util.List<KotlinSMAP.Mapping> mappings()
        Returns list of mappings.
        Returns:
        list of mappings
      • expectLine

        private static void expectLine​(java.io.BufferedReader br,
                                       java.lang.String expected)
                                throws java.io.IOException
        Throws:
        java.io.IOException