Examples of ParserService


Examples of org.apache.aries.blueprint.ParserService

 
  @BeforeClass
  public static void setup() {
    BundleContext mockCtx = Skeleton.newMock(new BundleContextMock(), BundleContext.class);
    NamespaceHandlerRegistry nhri = new NamespaceHandlerRegistryImpl (mockCtx);
    ParserService parserService = new ParserServiceImpl(nhri);
    mockCtx.registerService(ParserService.class.getName(), parserService, new Hashtable<String, String>());
    _parserProxy = new ParserProxyImpl();
    ((ParserProxyImpl)_parserProxy).setParserService(parserService);
    ((ParserProxyImpl)_parserProxy).setBundleContext(mockCtx);
    _modellingManager = new ModellingManagerImpl();
View Full Code Here

Examples of org.apache.fulcrum.parser.ParserService

        Group group = is.getGroup("LoginIfcGroup");
        assertNotNull(group);
       
        Field userNameField = group.get("Username");
       
        ParserService ps = (ParserService) this.resolve( ParserService.class.getName() );
        ValueParser pp = ps.getParser(DefaultParameterParser.class);
       
        pp.setString(userNameField.getKey(), "Joe");
        userNameField.init(pp);
        userNameField.validate();
       
View Full Code Here

Examples of org.erlide.engine.services.parsing.ParserService

    public boolean internalBuildStructure(final IProgressMonitor pm) {
        setChildren(null);
        final String text = getInitialText();
        if (text != null) {
            final ParserService parser = ErlangEngine.getInstance().getParserService();
            parsed = parser.parse(this, scannerName, !parsed, getFilePath(), text, true);
            return parsed;
        }
        return true;
    }
View Full Code Here

Examples of org.erlide.engine.services.parsing.ParserService

        return this.parse(text, charset);
    }

    private ErlangAST parse(final String contents, final String encoding) {
        ErlangAST result = null;
        final ParserService parser = ErlangEngine.getInstance().getParserService();
        final OtpErlangObject parsed = parser.parse(createScannerName(), contents);
        if (Util.isOk(parsed)) {
            final OtpErlangTuple tuple = (OtpErlangTuple) parsed;
            result = new ErlangAST((OtpErlangTuple) tuple.elementAt(1));
        }
        return result;
View Full Code Here

Examples of org.erlide.engine.services.parsing.ParserService

        internalScanner.create(scannerModuleName);
        boolean result = false;
        try {
            ErlangEngine.getInstance().getScannerProviderService().get(scannerModuleName)
                    .initialScan(s, "", false);
            final ParserService parser = ErlangEngine.getInstance().getParserService();
            result = parser.parse(module, scannerModuleName, false, "", s, false);
        } finally {
            ErlangEngine.getInstance().getScannerProviderService().get(scannerModuleName)
                    .dispose();
        }
        return result;
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.