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.LoggerLOG
-
Constructor Summary
Constructors Constructor Description Parser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static SchemafromContents(java.lang.String contents, java.lang.String filePath)protected static SchemafromFileOrResource(java.lang.String FilePath, boolean allowResource)protected static SchemafromReader(java.io.Reader R, java.lang.String filePath)static ParserSessioninit(CodeGenSql CGSql, java.util.List<Schema> SchemaList)static booleanloadDependencies(ParserSession PS, Schema BaseSchema, java.util.Map<java.lang.String,Schema> SchemaCache)static ParserSessionparse(java.lang.String FilePath, CodeGenSql CGSql, java.util.Map<java.lang.String,Schema> SchemaCache, boolean allowResource)static ParserSessionparse(java.lang.String filePath, CodeGenSql CGSql, java.util.Map<java.lang.String,Schema> SchemaCache, boolean allowResource, java.lang.String contents)static SchemaparseSchemaFromFile(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
-
-