public ParserPluginFactory getPluginFactory() { if (pluginFactory == null) { pluginFactory = ParserPluginFactory.newInstance(); } return pluginFactory; }
/** * Parses the source to a CST. You can retrieve it with getCST(). */ public void parse() throws CompilationFailedException { if (this.phase > Phases.PARSING) { throw new GroovyBugError("parsing is already complete"); } if (this.phase == Phases.INITIALIZATION) { nextPhase(); } // // Create a reader on the source and run the parser. try (Reader reader = source.getReader()) { // let's recreate the parser each time as it tends to keep around state parserPlugin = getConfiguration().getPluginFactory().createParserPlugin(); cst = parserPlugin.parseCST(this, reader); } catch (IOException e) { getErrorCollector().addFatalError(new SimpleMessage(e.getMessage(), this)); } }
parserPlugin = getConfiguration().getPluginFactory().createParserPlugin();
/** * Creates a new instance of {@link ParserPluginFactory}. * * <p>The <code>useNewParser</code> parameter is not used, and this method * is kept for backward compatibility. * * @param useNewParser unused. * @return the new parser factory. * @deprecated use {@link #newInstance()} */ @Deprecated public static ParserPluginFactory newInstance(boolean useNewParser) { return newInstance(); }
parserPlugin = getConfiguration().getPluginFactory().createParserPlugin();
init.setJointCompilationOptions(initJoint); final ParserPluginFactory initPPF = ParserPluginFactory.newInstance(true); init.setPluginFactory(initPPF);
parserPlugin = getConfiguration().getPluginFactory().createParserPlugin();
public ParserPluginFactory getPluginFactory() { if (pluginFactory == null) { pluginFactory = ParserPluginFactory.newInstance(true); } return pluginFactory; }
parserPlugin = getConfiguration().getPluginFactory().createParserPlugin();
public ParserPluginFactory getPluginFactory() { if (pluginFactory == null) { pluginFactory = ParserPluginFactory.newInstance(true); } return pluginFactory; }
public ParserPluginFactory getPluginFactory() { if (pluginFactory == null) { pluginFactory = ParserPluginFactory.newInstance(true); } return pluginFactory; }
public ParserPluginFactory getPluginFactory() { if (pluginFactory == null) { pluginFactory = ParserPluginFactory.newInstance(true); } return pluginFactory; }