public ParseEnvironmentBgpTableJob( Settings settings, String fileText, String hostname, Path file, Warnings warnings, SortedMap<BgpTableFormat, BgpTablePlugin> bgpTablePlugins) { super(settings); _bgpTablePlugins = bgpTablePlugins; _fileText = fileText; _file = file; _hostname = hostname; _ptSentences = new ParseTreeSentences(); _warnings = warnings; }
public ParseEnvironmentRoutingTableJob( Settings settings, String fileText, Path file, Warnings warnings, IBatfish batfish) { super(settings); _batfish = batfish; _fileText = fileText; _file = file; _hostname = file.getFileName().toString(); _ptSentences = new ParseTreeSentences(); _warnings = warnings; }
public ParseVendorConfigurationJob( Settings settings, String fileText, String filename, Warnings warnings, ConfigurationFormat configurationFormat, Multimap<String, String> duplicateHostnames, @Nullable SpanContext spanContext) { super(settings); _fileText = fileText; _filename = filename; _ptSentences = new ParseTreeSentences(); _warnings = warnings; _format = configurationFormat; _duplicateHostnames = duplicateHostnames; _spanContext = spanContext; }
private ParseTreePrettyPrinter( ParserRuleContext ctx, BatfishCombinedParser<?, ?> combinedParser, boolean printLineNumbers) { Parser grammar = combinedParser.getParser(); List<String> ruleNames = Arrays.asList(grammar.getRuleNames()); _vocabulary = grammar.getVocabulary(); _combinedParser = combinedParser; _ruleNames = ruleNames; _ctx = ctx; _ptSentences = new ParseTreeSentences(); _printLineNumbers = printLineNumbers; _indent = 0; }