public interface JavaParser
| Modifier and Type | Method and Description |
|---|---|
<T extends JavaSource<?>> |
create(Class<T> type)
Create a new empty
JavaSource instance. |
JavaUnit |
parseUnit(String data)
Read the given source and parse the data into a new
JavaUnit instance. |
List<Problem> |
validateSnippet(String code)
Checks which problems occur while parsing the provided source code.
|
<T extends JavaSource<?>> T create(Class<T> type)
JavaSource instance.T - the java typetype - desired source type for the java sourceT or null if the JavaSource type is not supported by this
JavaParser.JavaUnit parseUnit(String data)
JavaUnit instance.data - the source to parseJavaUnit or null if the data format is not recognised by this JavaParserParserException - if the source coudn't be parsedCopyright © 2019 JBoss by Red Hat. All rights reserved.