| Package | Description |
|---|---|
| org.jboss.forge.roaster | |
| org.jboss.forge.roaster.model | |
| org.jboss.forge.roaster.model.source | |
| org.jboss.forge.roaster.model.util | |
| org.jboss.forge.roaster.spi |
| Modifier and Type | Method and Description |
|---|---|
static <T extends JavaType<?>> |
Roaster.parse(Class<T> type,
char[] data)
Read the given character array and parse its data into a new
JavaType instance of the given type. |
static <T extends JavaType<?>> |
Roaster.parse(Class<T> type,
File file)
|
static <T extends JavaType<?>> |
Roaster.parse(Class<T> type,
InputStream data)
Read the given
InputStream and parse its data into a new JavaType instance of the given type. |
static <T extends JavaType<?>> |
Roaster.parse(Class<T> type,
String data)
Read the given string and parse its data into a new
JavaType instance of the given type. |
static <T extends JavaType<?>> |
Roaster.parse(Class<T> type,
URL url)
|
| Modifier and Type | Method and Description |
|---|---|
static JavaType<?> |
Roaster.parse(char[] data)
Parse the given character array into a new
JavaType instance. |
static JavaType<?> |
Roaster.parse(File file)
|
static JavaType<?> |
Roaster.parse(InputStream data)
Read the given
InputStream and parse the data into a new JavaType instance. |
static JavaType<?> |
Roaster.parse(String data)
Parse the given String data into a new
JavaType instance. |
static JavaType<?> |
Roaster.parse(URL data)
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Annotation<O extends JavaType<O>>
Represents an annotation on some Java element.
|
interface |
AnnotationTarget<O extends JavaType<O>>
Represents a Java element that may carry annotations.
|
interface |
Extendable<O extends JavaType<O>>
Represents a
JavaType that can extend other types (Java inheritance and interfaces). |
interface |
Field<O extends JavaType<O>>
|
interface |
FieldHolder<O extends JavaType<O>>
Represents a
JavaType that may contain field definitions. |
interface |
GenericCapable<O extends JavaType<O>>
Represents a Java element that may define type variables.
|
interface |
JavaType<T extends JavaType<T>>
Represents a Java type.
|
interface |
Member<O extends JavaType<O>>
Represents a
JavaType member. |
interface |
MemberHolder<O extends JavaType<O>>
Represents a
JavaType that may declare fields or methods. |
interface |
Method<O extends JavaType<O>,T extends Method<O,T>>
Represents a Java Method.
|
interface |
MethodHolder<O extends JavaType<O>>
Represents a
JavaType that may declare methods. |
interface |
Parameter<O extends JavaType<O>>
Represents a parameter of a
Method. |
interface |
Property<O extends JavaType<O>>
A
Property is a convenience construct depicting a simple Java bean property. |
interface |
PropertyHolder<O extends JavaType<O>>
Represents a
JavaType that may contain property definitions. |
interface |
Type<O extends JavaType<O>> |
interface |
TypeHolder<O extends JavaType<O>>
Represents a
JavaType that may declare types. |
interface |
TypeVariable<O extends JavaType<O>>
Represents a type variable of a
GenericCapable JavaType. |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EnumConstant.ReadBody<O extends EnumConstant.ReadBody<O>>
Represents the anonymous subclass "body" of a
EnumConstant. |
interface |
JavaAnnotation<O extends JavaAnnotation<O>>
Represents a Java
@interface annotation type. |
interface |
JavaClass<O extends JavaClass<O>>
Represents a Java
class type. |
interface |
JavaEnum<O extends JavaEnum<O>>
Represents a Java
enum type. |
interface |
JavaInterface<O extends JavaInterface<O>>
Represents a Java
interface type. |
interface |
JavaPackageInfo<O extends JavaPackageInfo<O>>
Represents a Java Package Info descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends JavaType<?>> |
JavaUnit.getGoverningType()
A type in the source file governs the declaration environment such as 'package' and 'import' information.
|
| Modifier and Type | Method and Description |
|---|---|
JavaType<?> |
JavaType.getEnclosingType()
Return the enclosing
JavaType type in which this class is defined. |
JavaType<?> |
TypeHolder.getNestedType(String name)
Get the
JavaType with the given name and return it, otherwise, return null. |
| Modifier and Type | Method and Description |
|---|---|
List<? extends JavaType<?>> |
TypeHolder.getNestedTypes()
|
List<JavaType<?>> |
JavaUnit.getTopLevelTypes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TypeHolder.hasNestedType(JavaType<?> type)
Return whether or not this
O declares the given JavaType instance. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AnnotationSource<O extends JavaType<O>>
Represents an annotation on some Java source element.
|
interface |
ExtendableSource<O extends JavaType<O>>
Represents a
JavaSource that can extend other types (Java inheritance and interfaces). |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
EnumConstantSource.Body
Represents the anonymous subclass "body" of an
EnumConstantSource. |
interface |
JavaAnnotationSource
Represents a Java
@interface annotation source file as an in-memory modifiable element. |
interface |
JavaClassSource
Represents a Java
class source file as an in-memory modifiable element. |
interface |
JavaEnumSource
Represents a Java
enum source file as an in-memory modifiable element. |
interface |
JavaInterfaceSource
Represents a Java
interface source file as an in-memory modifiable element. |
interface |
JavaPackageInfoSource
Represents a Java Package Info descriptor source file.
|
interface |
JavaSource<T extends JavaSource<T>>
Represents a Java type in source form.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends JavaType<?>> |
Importer.addImport(T type)
Add an import for the given
JavaType type. |
<T extends JavaType<?>> |
Importer.getImport(T type)
Get the
Import for the given T type, if it exists; otherwise, return null; |
<T extends JavaType<T>> |
Importer.hasImport(T type)
Return whether or not this
O has an import for the given T type. |
<T extends JavaType<?>> |
Importer.removeImport(T type)
Remove any
Import for the given T type, if it exists; otherwise, do nothing; |
| Modifier and Type | Method and Description |
|---|---|
ParameterSource<O> |
MethodSource.addParameter(JavaType<?> type,
String name)
Add a parameter with the specified
JavaType type and name to this method |
PropertySource<O> |
PropertyHolderSource.addProperty(JavaType<?> type,
String name)
Add a new
Property declaration to this O instance. |
MethodSource<O> |
MethodSource.removeParameter(JavaType<?> type,
String name)
Remove a parameter with the specified
JavaType type and name to this method |
TypeVariableSource<O> |
TypeVariableSource.setBounds(JavaType<?>... bounds)
Set the bounds of this type variable.
|
MethodSource<O> |
MethodSource.setReturnType(JavaType<?> type)
|
O |
ExtendableSource.setSuperType(JavaType<?> type)
Set this type's super class.
|
PropertySource<O> |
PropertySource.setType(JavaType<?> entity)
Set the type of this
Property to the given JavaType> type. |
AnnotationElementSource |
AnnotationElementSource.setType(JavaType<?> entity)
Set the type of this
AnnotationElement to the given JavaSource> type. |
FieldSource<O> |
FieldSource.setType(JavaType<?> entity)
Set the type of this
Field to the given JavaSource> type. |
| Modifier and Type | Method and Description |
|---|---|
static <O extends JavaType<O>> |
Types.rebuildGenericNameWithArrays(String resolvedTypeName,
Type<O> type) |
| Modifier and Type | Method and Description |
|---|---|
static JavaClassSource |
DesignPatterns.createDecorator(JavaType<?> javaSource)
Creates a class based on the Decorator design pattern.
|
| Modifier and Type | Method and Description |
|---|---|
String |
WildcardImportResolver.resolve(JavaType<?> source,
String type)
Resolves the wildcard type from the specified source
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.