Class IdentifiedSource


  • public class IdentifiedSource
    extends IdentifiedFile
    Java source file with its fully qualified name.
    • Field Detail

      • charset

        private final java.nio.charset.Charset charset
    • Constructor Detail

      • IdentifiedSource

        public IdentifiedSource​(ClassIdentifier classIdentifier,
                                byte[] file,
                                java.nio.charset.Charset charset)
        Parameters:
        classIdentifier - fully qualified name of class.
        file - java source code of class.
        charset - Character set of source which was used to get the byte[]. Default encoding is used if not provided.
      • IdentifiedSource

        public IdentifiedSource​(ClassIdentifier classIdentifier,
                                byte[] file)
    • Method Detail

      • getSourceCode

        public java.lang.String getSourceCode()