public class JavaParserImpl extends Object implements JavaParserProvider
| Constructor and Description |
|---|
JavaParserImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T extends JavaSource<?>> |
create(Class<T> type) |
static JavaSource<?> |
getJavaSource(JavaSource<?> enclosingType,
org.eclipse.jface.text.Document document,
org.eclipse.jdt.core.dom.CompilationUnit unit,
org.eclipse.jdt.core.dom.BodyDeclaration declaration)
Create a
JavaSource instance from the given Document, CompilationUnit,
TypeDeclaration, and enclosing JavaSource type. |
JavaSource<?> |
parse(char[] data) |
<T extends JavaSource<?>> |
parse(Class<T> type,
char[] data) |
<T extends JavaSource<?>> |
parse(Class<T> type,
File file) |
<T extends JavaSource<?>> |
parse(Class<T> type,
InputStream data) |
<T extends JavaSource<?>> |
parse(Class<T> type,
String data) |
JavaSource<?> |
parse(File file) |
JavaSource<?> |
parse(InputStream data) |
JavaSource<?> |
parse(String data) |
public JavaSource<?> parse(File file) throws FileNotFoundException
parse in interface JavaParserProviderFileNotFoundExceptionpublic JavaSource<?> parse(InputStream data)
parse in interface JavaParserProviderpublic JavaSource<?> parse(char[] data)
parse in interface JavaParserProviderpublic JavaSource<?> parse(String data)
parse in interface JavaParserProviderpublic static JavaSource<?> getJavaSource(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.BodyDeclaration declaration)
JavaSource instance from the given Document, CompilationUnit,
TypeDeclaration, and enclosing JavaSource type.public <T extends JavaSource<?>> T create(Class<T> type)
create in interface JavaParserProviderpublic <T extends JavaSource<?>> T parse(Class<T> type, InputStream data)
parse in interface JavaParserProviderpublic <T extends JavaSource<?>> T parse(Class<T> type, char[] data)
parse in interface JavaParserProviderpublic <T extends JavaSource<?>> T parse(Class<T> type, String data)
parse in interface JavaParserProviderpublic <T extends JavaSource<?>> T parse(Class<T> type, File file) throws FileNotFoundException
parse in interface JavaParserProviderFileNotFoundExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.