Package tilda.parsing

Class Parser


  • public abstract class Parser
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.logging.log4j.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      Parser()  
    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
    • Constructor Detail

      • Parser

        public Parser()
    • Method Detail

      • init

        public static ParserSession init​(CodeGenSql CGSql,
                                         java.util.List<Schema> SchemaList)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parseSchemaFromFile

        public static Schema parseSchemaFromFile​(java.lang.String FilePath,
                                                 boolean allowResource)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parse

        public static ParserSession parse​(java.lang.String FilePath,
                                          CodeGenSql CGSql,
                                          java.util.Map<java.lang.String,​Schema> SchemaCache,
                                          boolean allowResource)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • parse

        public static ParserSession parse​(java.lang.String filePath,
                                          CodeGenSql CGSql,
                                          java.util.Map<java.lang.String,​Schema> SchemaCache,
                                          boolean allowResource,
                                          java.lang.String contents)
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • fromFileOrResource

        protected static Schema fromFileOrResource​(java.lang.String FilePath,
                                                   boolean allowResource)
      • fromContents

        protected static Schema fromContents​(java.lang.String contents,
                                             java.lang.String filePath)
      • fromReader

        protected static Schema fromReader​(java.io.Reader R,
                                           java.lang.String filePath)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • loadDependencies

        public static boolean loadDependencies​(ParserSession PS,
                                               Schema BaseSchema,
                                               java.util.Map<java.lang.String,​Schema> SchemaCache)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception