All Downloads are FREE. Search and download functionalities are using the official Maven repository.

storm.parser.StormParserImpl Maven / Gradle / Ivy

package storm.parser;

import storm.parser.converter.StormConverter;
import storm.parser.metadata.StormMetadata;
import storm.parser.scheme.StormScheme;

/**
 * Created by Dimitry Ivanov on 24.01.2016.
 */
class StormParserImpl implements StormParser {

    private final ParserLazy mScheme;
    private final ParserLazy> mConverter;
    private final ParserLazy> mMetadata;

    StormParserImpl(
            ParserLazy scheme,
            ParserLazy> converter,
            ParserLazy> metadata
    ) {
        mScheme = scheme;
        mConverter = converter;
        mMetadata = metadata;
    }

    @Override
    public StormScheme scheme() throws StormParserException {
        return mScheme.get();
    }

    @Override
    public StormConverter converter() throws StormParserException {
        return mConverter.get();
    }

    @Override
    public StormMetadata metadata() throws StormParserException {
        return mMetadata.get();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy