Class LangFactory

java.lang.Object
org.snpsift.lang.LangFactory

public class LangFactory extends Object
Creates objects from an AST
Author:
pcingola
  • Field Details

    • debug

      protected static boolean debug
  • Constructor Details

    • LangFactory

      public LangFactory()
    • LangFactory

      public LangFactory(ArrayList<HashSet<String>> sets, org.snpeff.vcf.EffFormatVersion formatVersion, boolean exceptionIfNotFound)
  • Method Details

    • compile

      public Expression compile(String expression)
      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

      public Expression expressionFactory(org.antlr.v4.runtime.tree.ParseTree tree)
      Create 'Expressions' from Tree
    • expressionSetFactory

      public Function expressionSetFactory(org.antlr.v4.runtime.tree.ParseTree tree)
      Create FunctionBoolSet from AST
    • fieldFactory

      public Field fieldFactory(org.antlr.v4.runtime.tree.ParseTree tree)
      Create 'Expression' from Tree
    • functionBoolGenotypeFactory

      public FunctionBoolGenotype functionBoolGenotypeFactory(org.antlr.v4.runtime.tree.ParseTree tree)
      Create FunctionBoolGenotype from AST
    • functionFactory

      public Function functionFactory(org.antlr.v4.runtime.tree.ParseTree tree)
      Create function
    • functionVcfEntryFactory

      public Function functionVcfEntryFactory(org.antlr.v4.runtime.tree.ParseTree tree)
      Create Functions from tree Note: These functions that are calculated on the whole VcfEntry.