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)
|
List<Problem> |
validateSnippet(String code)
Checks if the code is valid
|
<T extends JavaSource<?>> T create(Class<T> type)
JavaSource instance.type - desired source typeT, null if the JavaSource type is not supported by this
JavaParser.JavaUnit parseUnit(String data)
data - to parseJavaUnit, null if the data format is not recognized by this JavaParser.List<Problem> validateSnippet(String code) throws ParserException
code - ParserException - if it's notCopyright © 2017 JBoss by Red Hat. All rights reserved.