public interface JavaParser
| Modifier and Type | Method and Description |
|---|---|
<T extends JavaSource<?>> |
create(Class<T> type)
Create a new empty
JavaSource instance. |
JavaType<?> |
parse(InputStream data)
Read the given
InputStream and parse the data into a new JavaType instance. |
<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.JavaType<?> parse(InputStream data)
InputStream and parse the data into a new JavaType instance.data - to parseJavaType, null if the data format is not recognized by this JavaParser.Copyright © 2014 JBoss by Red Hat. All rights reserved.