public class JavaParserImpl extends Object implements JavaParser
| 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.ASTNode declaration)
|
JavaUnit |
parseUnit(String data) |
List<Problem> |
validateSnippet(String snippet) |
public JavaUnit parseUnit(String data)
parseUnit in interface JavaParserpublic static JavaSource<?> getJavaSource(JavaSource<?> enclosingType, org.eclipse.jface.text.Document document, org.eclipse.jdt.core.dom.CompilationUnit unit, org.eclipse.jdt.core.dom.ASTNode declaration)
public <T extends JavaSource<?>> T create(Class<T> type)
create in interface JavaParserpublic List<Problem> validateSnippet(String snippet)
validateSnippet in interface JavaParserCopyright © 2017 JBoss by Red Hat. All rights reserved.