@Exported public interface JavaSourceFactory
| Modifier and Type | Method and Description |
|---|---|
<T extends org.jboss.forge.parser.java.JavaSource<?>> |
create(Class<T> type)
Create a new empty
JavaClass instance. |
org.jboss.forge.parser.java.JavaSource<?> |
parse(char[] data)
Parse the given character array into a new
JavaClass instance. |
<T extends org.jboss.forge.parser.java.JavaSource<?>> |
parse(Class<T> type,
char[] data)
Read the given character array and parse its data into a new
JavaSource instance of the given type. |
<T extends org.jboss.forge.parser.java.JavaSource<?>> |
parse(Class<T> type,
File file)
Read the given
File and parse its data into a new JavaSource instance of the given type. |
<T extends org.jboss.forge.parser.java.JavaSource<?>> |
parse(Class<T> type,
InputStream data)
Read the given
InputStream and parse its data into a new JavaSource instance of the given type. |
<T extends org.jboss.forge.parser.java.JavaSource<?>> |
parse(Class<T> type,
String data)
Read the given string and parse its data into a new
JavaSource instance of the given type. |
org.jboss.forge.parser.java.JavaSource<?> |
parse(File file)
Open the given
File, parsing its contents into a new JavaClass instance. |
org.jboss.forge.parser.java.JavaSource<?> |
parse(InputStream data)
Read the given
InputStream and parse the data into a new JavaClass instance. |
org.jboss.forge.parser.java.JavaSource<?> |
parse(String data)
Parse the given String data into a new
JavaClass instance. |
org.jboss.forge.parser.java.JavaSource<?> parse(File file) throws FileNotFoundException
File, parsing its contents into a new JavaClass instance.FileNotFoundExceptionorg.jboss.forge.parser.java.JavaSource<?> parse(InputStream data)
InputStream and parse the data into a new JavaClass instance.org.jboss.forge.parser.java.JavaSource<?> parse(char[] data)
JavaClass instance.org.jboss.forge.parser.java.JavaSource<?> parse(String data)
JavaClass instance.<T extends org.jboss.forge.parser.java.JavaSource<?>> T create(Class<T> type)
JavaClass instance.<T extends org.jboss.forge.parser.java.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<T extends org.jboss.forge.parser.java.JavaSource<?>> T parse(Class<T> type, InputStream data)
InputStream and parse its data into a new JavaSource instance of the given type.<T extends org.jboss.forge.parser.java.JavaSource<?>> T parse(Class<T> type, char[] data)
JavaSource instance of the given type.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.