Class LegacyParser


  • @Deprecated
    public class LegacyParser
    extends java.lang.Object
    Deprecated.
    as of 3.0.0, as files are now stored via XML
    Parses a .language file, and allows various parts to be accessed
    Author:
    alex
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static net.oijon.olog.Log log
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      LegacyParser​(java.io.File file)
      Deprecated.
      Creates an object to hold the contents of a .language structured file
      LegacyParser​(java.lang.String input)
      Deprecated.
      Creates an object to hold the contents of a .language structured string
    • Field Detail

      • log

        public static net.oijon.olog.Log log
        Deprecated.
    • Constructor Detail

      • LegacyParser

        public LegacyParser​(java.lang.String input)
        Deprecated.
        Creates an object to hold the contents of a .language structured string
        Parameters:
        input - The string to be parsed.
      • LegacyParser

        public LegacyParser​(java.io.File file)
        Deprecated.
        Creates an object to hold the contents of a .language structured file
        Parameters:
        file - The file to be read
    • Method Detail

      • getPHOSYSTag

        public Multitag getPHOSYSTag()
        Deprecated.
        Gets the containing tag, including all subtags
        Returns:
        The containing tag
      • parsePhonoSys

        public PhonoSystem parsePhonoSys()
                                  throws java.lang.Exception
        Deprecated.
        Parses a phonology system from a Parser
        Returns:
        A PhonoSystem object with data from the Parser.
        Throws:
        java.lang.Exception - Thrown when a phonology system could not be found
      • parsePhono

        public Phonology parsePhono()
                             throws java.lang.Exception
        Deprecated.
        Parses a phonology from a Parser
        Returns:
        A Phonology object with data from the Parser.
        Throws:
        java.lang.Exception - Thrown when a phonology could not be found
      • parseLanguage

        public Language parseLanguage()
                               throws java.lang.Exception
        Deprecated.
        Parses a language from a Parser
        Returns:
        A Language object with data from the Parser.
        Throws:
        java.lang.Exception - Thrown when a language could not be found
      • parseOrtho

        public Orthography parseOrtho()
        Deprecated.
      • parseLexicon

        public Lexicon parseLexicon()
        Deprecated.
        Parses a lexicon from a Parser
        Returns:
        A Lexicon object with data from the Parser.
      • getLog

        public static net.oijon.olog.Log getLog()
        Deprecated.
        Gets the log the parser outputs to. Useful for parse methods in data types.
        Returns:
        The log the parser is outputting to.