| Package | Description |
|---|---|
| org.jboss.forge.parser | |
| org.jboss.forge.parser.java | |
| org.jboss.forge.parser.spi |
| Modifier and Type | Method and Description |
|---|---|
static <T extends JavaSource<?>> |
JavaParser.create(Class<T> type)
Create a new empty
JavaClass instance. |
static <T extends JavaSource<?>> |
JavaParser.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 <T extends JavaSource<?>> |
JavaParser.parse(Class<T> type,
File file)
Read the given
File and parse its data into a new JavaSource instance of the given type. |
static <T extends JavaSource<?>> |
JavaParser.parse(Class<T> type,
InputStream data)
Read the given
InputStream and parse its data into a new JavaSource instance of the given type. |
static <T extends JavaSource<?>> |
JavaParser.parse(Class<T> type,
String data)
Read the given string and parse its data into a new
JavaSource instance of the given type. |
static <T extends JavaSource<?>> |
JavaParser.parse(Class<T> type,
URL url)
Read the given
URL and parse its data into a new JavaSource instance of the given type. |
| Modifier and Type | Method and Description |
|---|---|
static JavaSource<?> |
JavaParser.parse(char[] data)
Parse the given character array into a new
JavaClass instance. |
static JavaSource<?> |
JavaParser.parse(File file)
|
static JavaSource<?> |
JavaParser.parse(InputStream data)
Read the given
InputStream and parse the data into a new JavaClass instance. |
static JavaSource<?> |
JavaParser.parse(String data)
Parse the given String data into a new
JavaClass instance. |
static JavaSource<?> |
JavaParser.parse(URL data)
Parse the given
URL data into a new JavaSource instance. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Annotation<O extends JavaSource<O>> |
interface |
AnnotationTarget<O extends JavaSource<O>,T> |
interface |
EnumConstant<O extends JavaSource<O>> |
interface |
Extendable<O extends JavaSource<O>>
Represents a
JavaSource that can extend other types. |
interface |
Field<O extends JavaSource<O>> |
interface |
FieldHolder<O extends JavaSource<O>> |
interface |
Importer<O extends JavaSource<O>> |
interface |
InterfaceCapable<T extends JavaSource<T>> |
interface |
JavaSource<T extends JavaSource<T>> |
interface |
JavaType<T extends JavaSource<T>> |
interface |
Member<O extends JavaSource<O>,T>
Represents a
JavaClass member. |
interface |
MemberHolder<O extends JavaSource<O>,T> |
interface |
Method<O extends JavaSource<O>>
Represents a Java Method.
|
interface |
MethodHolder<O extends JavaSource<O>> |
interface |
Parameter<O extends JavaSource<O>> |
interface |
Type<O extends JavaSource<O>> |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EnumConstant.Body
Represents the anonymous subclass "body" of an enum constant.
|
interface |
JavaAnnotation
Represents a Java
Annotation source file as an in-memory modifiable
element. |
interface |
JavaClass
Represents a Java
Class or interface source file as an in-memory modifiable element. |
interface |
JavaEnum
Represents a Java
Enum source file as an in-memory modifiable element. |
interface |
JavaInterface |
interface |
JavaPackageInfo
Represents a Java Package Info.
|
interface |
JavaType<T extends JavaSource<T>> |
| Modifier and Type | Method and Description |
|---|---|
<T extends JavaSource<?>> |
Importer.addImport(T type)
Add an import for the given
JavaSource type. |
<T extends JavaSource<?>> |
Importer.getImport(T type)
Get the
Import for the given T type, if it exists; otherwise, return null; |
<T extends JavaSource<T>> |
Importer.hasImport(T type)
Return whether or not this
O has an import for the given T type. |
<T extends JavaSource<?>> |
Importer.removeImport(T type)
Remove any
Import for the given T type, if it exists; otherwise, do nothing; |
| Modifier and Type | Method and Description |
|---|---|
JavaSource<?> |
JavaSource.getEnclosingType()
Return the enclosing
JavaSource type in which this class is defined. |
| Modifier and Type | Method and Description |
|---|---|
List<JavaSource<?>> |
JavaSource.getNestedClasses()
|
| Modifier and Type | Method and Description |
|---|---|
Method<O> |
Method.setReturnType(JavaSource<?> type)
Set this
Method to return the given JavaSource type. |
AnnotationElement |
AnnotationElement.setType(JavaSource<?> entity)
Set the type of this
AnnotationElement to the given JavaSource> type. |
Field<O> |
Field.setType(JavaSource<?> entity)
Set the type of this
Field to the given JavaSource> type. |
| Modifier and Type | Method and Description |
|---|---|
<T extends JavaSource<?>> |
JavaParserProvider.create(Class<T> type)
Create a new empty
JavaClass instance. |
<T extends JavaSource<?>> |
JavaParserProvider.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 JavaSource<?>> |
JavaParserProvider.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 JavaSource<?>> |
JavaParserProvider.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 JavaSource<?>> |
JavaParserProvider.parse(Class<T> type,
String data)
Read the given string and parse its data into a new
JavaSource instance of the given type. |
<T extends JavaSource<?>> |
JavaParserProvider.parse(Class<T> type,
URL url)
Read the given
URL and parse its data into a new JavaSource instance of the given type. |
| Modifier and Type | Method and Description |
|---|---|
JavaSource<?> |
JavaParserProvider.parse(char[] data)
Parse the given character array into a new
JavaSource instance. |
JavaSource<?> |
JavaParserProvider.parse(File file)
Open the given
File, parsing its contents into a new JavaSource instance. |
JavaSource<?> |
JavaParserProvider.parse(InputStream data)
Read the given
InputStream and parse the data into a new JavaSource instance. |
JavaSource<?> |
JavaParserProvider.parse(String data)
Parse the given String data into a new
JavaSource instance. |
JavaSource<?> |
JavaParserProvider.parse(URL url)
Open the given
URL, parsing its contents into a new JavaSource instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
WildcardImportResolver.resolve(JavaSource<?> source,
String type) |
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.