Package org.snpsift.lang
Class LangFactory
java.lang.Object
org.snpsift.lang.LangFactory
Creates objects from an AST
- Author:
- pcingola
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLangFactory
(ArrayList<HashSet<String>> sets, org.snpeff.vcf.EffFormatVersion formatVersion, boolean exceptionIfNotFound) -
Method Summary
Modifier and TypeMethodDescriptionCreate an AST from a program (using ANTLR lexer invalid input: '&' parser) Returns null if error Use 'alreadyIncluded' to keep track of from 'include' statementsexpressionFactory
(org.antlr.v4.runtime.tree.ParseTree tree) Create 'Expressions' from TreeexpressionSetFactory
(org.antlr.v4.runtime.tree.ParseTree tree) Create FunctionBoolSet from ASTfieldFactory
(org.antlr.v4.runtime.tree.ParseTree tree) Create 'Expression' from TreefunctionBoolGenotypeFactory
(org.antlr.v4.runtime.tree.ParseTree tree) Create FunctionBoolGenotype from ASTfunctionFactory
(org.antlr.v4.runtime.tree.ParseTree tree) Create functionfunctionVcfEntryFactory
(org.antlr.v4.runtime.tree.ParseTree tree) Create Functions from tree Note: These functions that are calculated on the whole VcfEntry.
-
Field Details
-
debug
protected static boolean debug
-
-
Constructor Details
-
LangFactory
public LangFactory() -
LangFactory
-
-
Method Details
-
compile
Create an AST from a program (using ANTLR lexer invalid input: '&' parser) Returns null if error Use 'alreadyIncluded' to keep track of from 'include' statements -
expressionFactory
Create 'Expressions' from Tree -
expressionSetFactory
Create FunctionBoolSet from AST -
fieldFactory
Create 'Expression' from Tree -
functionBoolGenotypeFactory
Create FunctionBoolGenotype from AST -
functionFactory
Create function -
functionVcfEntryFactory
Create Functions from tree Note: These functions that are calculated on the whole VcfEntry.
-