本文整理汇总了Java中org.aikodi.chameleon.input.ParseException类的典型用法代码示例。如果您正苦于以下问题:Java ParseException类的具体用法?Java ParseException怎么用?Java ParseException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ParseException类属于org.aikodi.chameleon.input包,在下文中一共展示了ParseException类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setUp
import org.aikodi.chameleon.input.ParseException; //导入依赖的package包/类
@Before
public void setUp() throws MalformedURLException, FileNotFoundException, ParseException, IOException, Exception {
addTestFiles();
Java7 language = new Java7LanguageFactory().create();
Project project = new Project("output test", new File("."), new JavaView(new RootNamespace(new EagerNamespaceFactory()),language));
//FIXME I think this entire test class has to be deleted.
throw new Error();
// _args = new ArgumentParser(project,true).parse(arguments(), _extension,inputSourceFactory);
}
示例2: parse
import org.aikodi.chameleon.input.ParseException; //导入依赖的package包/类
@Override
public void parse(InputStream inputStream, Document document) throws IOException, ParseException {
JavaView view = document.view(JavaView.class);
JLoParser parser = getParser(inputStream, view);
CompilationUnitContext compilationUnit = parser.compilationUnit();
new JLoConvertor(document, view, (CommonTokenStream) parser.getTokenStream()).visit(compilationUnit);
}
示例3: BatchTranslator
import org.aikodi.chameleon.input.ParseException; //导入依赖的package包/类
public BatchTranslator(View view, ElementProvider<Namespace> namespaceProvider, File outputDir) throws ParseException, IOException {
_sourceView = view;
_typeProvider = new BasicDescendantProvider<RegularJLoType>(namespaceProvider, RegularJLoType.class);
_builder = new JLoBuilder(_sourceView);
_outputDir = outputDir;
}