Examples of ParserConfiguration


Examples of ca.uhn.hl7v2.parser.ParserConfiguration

        this();
        setExecutorService(executorService);
    }

    public DefaultHapiContext(ModelClassFactory modelClassFactory) {
        this(new ParserConfiguration(), ValidationContextFactory.defaultValidation(),
                modelClassFactory);
    }
View Full Code Here

Examples of com.gatehill.apib.parser.model.ParserConfiguration

        if (BlueprintFormat.MARKDOWN.equals(format)) {
            // convert to AST first
            LOGGER.info("Converting Markdown format blueprint '{}' to JSON AST", blueprintFile);

            final ParserConfiguration config = new ParserConfiguration();
            final ParsingResult<File> parsingResult =
                    blueprintParserService.convertToAstFile(config, blueprintFile, AstFormat.JSON);

            astFile = parsingResult.getAst();
            astFormat = AstFormat.JSON;
View Full Code Here

Examples of org.elasticsearch.common.mvel2.ParserConfiguration

    private final ParserConfiguration parserConfiguration;

    @Inject public MvelScriptEngineService(Settings settings) {
        super(settings);

        parserConfiguration = new ParserConfiguration();
        parserConfiguration.addPackageImport("java.util");
        parserConfiguration.addPackageImport("org.elasticsearch.common.trove");
        parserConfiguration.addPackageImport("org.elasticsearch.common.joda");
        parserConfiguration.addImport("time", MVEL.getStaticMethod(System.class, "currentTimeMillis", new Class[0]));
        // unboxed version of Math, better performance since conversion from boxed to unboxed my mvel is not needed
View Full Code Here

Examples of org.jruby.parser.ParserConfiguration

        globalVariables.defineReadonly(name, new ValueAccessor(value));
    }
   
    public Node parseFile(InputStream in, String file, DynamicScope scope) {
        if (parserStats != null) parserStats.addLoadParse();
        return parser.parse(file, in, scope, new ParserConfiguration(0, false, false, true));
    }
View Full Code Here

Examples of org.jruby.parser.ParserConfiguration

        return parser.parse(file, in, scope, new ParserConfiguration(0, false, false, true));
    }

    public Node parseInline(InputStream in, String file, DynamicScope scope) {
        if (parserStats != null) parserStats.addEvalParse();
        return parser.parse(file, in, scope, new ParserConfiguration(0, false, true));
    }
View Full Code Here

Examples of org.jruby.parser.ParserConfiguration

            bytes = content.getBytes();
        }
       
        if (parserStats != null) parserStats.addEvalParse();
        return parser.parse(file, new ByteArrayInputStream(bytes), scope,
                new ParserConfiguration(lineNumber, false));
    }
View Full Code Here

Examples of org.jruby.parser.ParserConfiguration

        } catch (UnsupportedEncodingException e) {
            bytes = content.getBytes();
        }

        return parser.parse(file, new ByteArrayInputStream(bytes), scope,
                new ParserConfiguration(lineNumber, extraPositionInformation, false));
    }
View Full Code Here

Examples of org.jruby.parser.ParserConfiguration

                new ParserConfiguration(lineNumber, extraPositionInformation, false));
    }
   
    public Node parseEval(ByteList content, String file, DynamicScope scope, int lineNumber) {
        if (parserStats != null) parserStats.addEvalParse();
        return parser.parse(file, content, scope, new ParserConfiguration(lineNumber, false));
    }
View Full Code Here

Examples of org.jruby.parser.ParserConfiguration

    public Node parse(ByteList content, String file, DynamicScope scope, int lineNumber,
            boolean extraPositionInformation) {
        if (parserStats != null) parserStats.addJRubyModuleParse();
        return parser.parse(file, content, scope,
                new ParserConfiguration(lineNumber, extraPositionInformation, false));
    }
View Full Code Here

Examples of org.jruby.parser.ParserConfiguration

    lexer = new RubyYaccLexer();

    ParserSupport parserSupport = new ParserSupport();
    RubyStepMeta meta = new RubyStepMeta();
    Ruby runtime = RubyStepFactory.createScriptingContainer(true,meta.getRubyVersion()).getProvider().getRuntime();
    ParserConfiguration parserConfig = new ParserConfiguration(runtime, 0, true, CompatVersion.BOTH);
    parserSupport.setConfiguration(parserConfig);
    parserSupport.setResult(new RubyParserResult());
    parserSupport.setWarnings(new RubyWarnings(null));
    parserSupport.initTopLocalVariables();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.