本文整理匯總了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;
}