001/*******************************************************************************
002 * Copyright (c) 2018 Red Hat Inc
003 * All rights reserved. This program and the accompanying materials
004 * are made available under the terms of the Eclipse Public License v1.0
005 * which accompanies this distribution, and is available at
006 * http://www.eclipse.org/legal/epl-v10.html
007 *
008 * Contributors:
009 *     Jens Reimann - initial API and implementation
010 *******************************************************************************/
011package de.dentrassi.varlink.idl.parser.antlr;
012
013import java.io.InputStream;
014import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
015
016public class VarlinkIdlAntlrTokenFileProvider implements IAntlrTokenFileProvider {
017
018        @Override
019        public InputStream getAntlrTokenFile() {
020                ClassLoader classLoader = getClass().getClassLoader();
021                return classLoader.getResourceAsStream("de/dentrassi/varlink/idl/parser/antlr/internal/InternalVarlinkIdl.tokens");
022        }
023}