|
Forge - Parent 1.0.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.forge.parser.JavaParser
public final class JavaParser
Responsible for parsing data into new JavaClass
instances.
Field Summary | |
---|---|
static ServiceLoader<JavaParserProvider> |
loader
|
Constructor Summary | |
---|---|
JavaParser()
|
Method Summary | ||
---|---|---|
static
|
create(Class<T> type)
Create a new empty JavaClass instance. |
|
static JavaSource<?> |
parse(char[] data)
Parse the given character array into a new JavaClass instance. |
|
static
|
parse(Class<T> type,
char[] data)
Read the given character array and parse its data into a new JavaSource instance of the given type. |
|
static
|
parse(Class<T> type,
File file)
Read the given File and parse its data into a new JavaSource instance of the given type. |
|
static
|
parse(Class<T> type,
InputStream data)
Read the given InputStream and parse its data into a new JavaSource instance of the given type. |
|
static
|
parse(Class<T> type,
String data)
Read the given string and parse its data into a new JavaSource instance of the given type. |
|
static JavaSource<?> |
parse(File file)
Open the given File , parsing its contents into a new JavaClass instance. |
|
static JavaSource<?> |
parse(InputStream data)
Read the given InputStream and parse the data into a new JavaClass instance. |
|
static JavaSource<?> |
parse(String data)
Parse the given String data into a new JavaClass instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ServiceLoader<JavaParserProvider> loader
Constructor Detail |
---|
public JavaParser()
Method Detail |
---|
public static JavaSource<?> parse(File file) throws FileNotFoundException
File
, parsing its contents into a new JavaClass
instance.
FileNotFoundException
public static JavaSource<?> parse(InputStream data)
InputStream
and parse the data into a new JavaClass
instance.
public static JavaSource<?> parse(char[] data)
JavaClass
instance.
public static JavaSource<?> parse(String data)
JavaClass
instance.
public static <T extends JavaSource<?>> T create(Class<T> type)
JavaClass
instance.
public static <T extends JavaSource<?>> T parse(Class<T> type, File file) throws FileNotFoundException
File
and parse its data into a new JavaSource
instance of the given type.
FileNotFoundException
public static <T extends JavaSource<?>> T parse(Class<T> type, InputStream data)
InputStream
and parse its data into a new JavaSource
instance of the given type.
public static <T extends JavaSource<?>> T parse(Class<T> type, char[] data)
JavaSource
instance of the given type.
public static <T extends JavaSource<?>> T parse(Class<T> type, String data)
JavaSource
instance of the given type.
|
Forge - Parent 1.0.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |