Class LangConverter


  • public class LangConverter
    extends Object
    Class for converting AST objects into Lang objects.
    Since:
    0.1.0
    • Method Detail

      • convert

        public static Lang convert​(AST ast)
        Converts an AST object into a Lang object.
        Parameters:
        ast - the AST to convert
        Returns:
        a Lang
        Since:
        0.1.0
      • convert

        public static Lang convert​(AST ast,
                                   boolean verbose,
                                   boolean debug)
        Converts an AST object into a Lang object.
        Parameters:
        ast - the AST to convert
        verbose - whether verbose information should be logged
        debug - whether debug information should be logged
        Returns:
        a Lang
        Since:
        0.1.0
      • convert

        public static Lang convert​(AST ast,
                                   Map<String,​byte[]> svgIcons,
                                   Map<String,​byte[]> pngIcons,
                                   String license,
                                   String notice)
        Converts an AST object into a Lang object.
        Parameters:
        ast - the AST to convert
        svgIcons - the SVG icons of the language, or null
        pngIcons - the PNG icons of the language, or null
        license - the license of the language, or null
        notice - the notice of the language, or null
        Returns:
        a Lang
        Since:
        0.1.0
      • convert

        public static Lang convert​(AST ast,
                                   boolean verbose,
                                   boolean debug,
                                   Map<String,​byte[]> svgIcons,
                                   Map<String,​byte[]> pngIcons,
                                   String license,
                                   String notice)
        Converts an AST object into a Lang object.
        Parameters:
        ast - the AST to convert
        verbose - whether verbose information should be logged
        debug - whether debug information should be logged
        svgIcons - the SVG icons of the language, or null
        pngIcons - the PNG icons of the language, or null
        license - the license of the language, or null
        notice - the notice of the language, or null
        Returns:
        a Lang
        Since:
        0.1.0