Package tilda.parsing
Class Parser
- java.lang.Object
-
- tilda.parsing.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()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Schema
fromContents(java.lang.String contents, java.lang.String filePath)
protected static Schema
fromFileOrResource(java.lang.String FilePath, boolean allowResource)
protected static Schema
fromReader(java.io.Reader R, java.lang.String filePath)
static ParserSession
init(CodeGenSql CGSql, java.util.List<Schema> SchemaList)
static boolean
loadDependencies(ParserSession PS, Schema BaseSchema, java.util.Map<java.lang.String,Schema> SchemaCache)
static ParserSession
parse(java.lang.String FilePath, CodeGenSql CGSql, java.util.Map<java.lang.String,Schema> SchemaCache, boolean allowResource)
static ParserSession
parse(java.lang.String filePath, CodeGenSql CGSql, java.util.Map<java.lang.String,Schema> SchemaCache, boolean allowResource, java.lang.String contents)
static Schema
parseSchemaFromFile(java.lang.String FilePath, boolean allowResource)
-
-
-
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
-
-