Skip navigation links
Forge Roaster - API 2.17.4.Final
A C D E F G H I J M N O P R S T U V W 

A

Abstractable<T> - Interface in org.jboss.forge.roaster.model
Represents a Java element that may be declared abstract.
AbstractableSource<T> - Interface in org.jboss.forge.roaster.model.source
Represents a Java source element that may be declared abstract.
addAnnotation() - Method in interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
Add a new annotation instance to this T (note that an import statement must be added manually if required).
addAnnotation(Class<? extends Annotation>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
Add a new annotation instance to this T, using the given Class as the annotation type.
addAnnotation(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
Add a new annotation instance to this T, using the given String className as the annotation type.
addAnnotationElement() - Method in interface org.jboss.forge.roaster.model.source.JavaAnnotationSource
Add a new Java AnnotationElementSource to this JavaAnnotationSource instance.
addAnnotationElement(String) - Method in interface org.jboss.forge.roaster.model.source.JavaAnnotationSource
Add a new AnnotationElementSource declaration to this JavaAnnotationSource instance, using the given String as the declaration.
addAnnotationValue() - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Add an annotation value.
addAnnotationValue(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Add a named annotation value.
addAnnotationValue(Class<? extends Annotation>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Add an annotation value.
addAnnotationValue(String, Class<? extends Annotation>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Add an annotation value.
addEnumConstant() - Method in interface org.jboss.forge.roaster.model.source.JavaEnumSource
Add a new EnumConstant
addEnumConstant(String) - Method in interface org.jboss.forge.roaster.model.source.JavaEnumSource
Add a new EnumConstant using the given declaration.
addField() - Method in interface org.jboss.forge.roaster.model.source.FieldHolderSource
Add a new Java Field to this O instance.
addField(String) - Method in interface org.jboss.forge.roaster.model.source.FieldHolderSource
Add a new Field declaration to this O instance, using the given String as the declaration.
addImport(String) - Method in interface org.jboss.forge.roaster.model.source.Importer
Add an import by qualified class name.
addImport(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.Importer
Add an import for the given Class type.
addImport(Import) - Method in interface org.jboss.forge.roaster.model.source.Importer
Add an import for the given Import type.
addImport(T) - Method in interface org.jboss.forge.roaster.model.source.Importer
Add an import for the given JavaType type.
addImport(Type<?>) - Method in interface org.jboss.forge.roaster.model.source.Importer
Ensures the type passed as argument is included in the list of imports for this java source.
addInterface(String) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Implements the specified interface name
addInterface(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Implements the specified Class interface
addInterface(JavaInterface<?>) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Implements the specified JavaInterface
addMethod() - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Add an uninitialized MethodSource declaration to this O instance.
addMethod(String) - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Add a new MethodSource declaration to this O instance, using the given String as the method declaration.
addMethod(Method) - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Add a new MethodSource declaration to this O instance, using the given Method as the method declaration.
addMethod(Method<?, ?>) - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Add a new MethodSource declaration to this O instance, using the given Method as the method declaration.
addNestedType(Class<NESTED_TYPE>) - Method in interface org.jboss.forge.roaster.model.source.TypeHolderSource
Creates a nested type in this JavaSource.
addNestedType(String) - Method in interface org.jboss.forge.roaster.model.source.TypeHolderSource
Add a new type declaration to this instance, using the given String as the declaration.
addNestedType(NESTED_TYPE) - Method in interface org.jboss.forge.roaster.model.source.TypeHolderSource
Adds a type as a nested type in this JavaSource.
addParameter(Class<?>, String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Add a parameter with the specified Class type and name to this method
addParameter(String, String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Add a parameter with the specified type and name to this method
addParameter(JavaType<?>, String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Add a parameter with the specified JavaType type and name to this method
addProperty(String, String) - Method in interface org.jboss.forge.roaster.model.source.PropertyHolderSource
Add a new Property declaration to this O instance.
addProperty(Class<?>, String) - Method in interface org.jboss.forge.roaster.model.source.PropertyHolderSource
Add a new Property declaration to this O instance.
addProperty(JavaType<?>, String) - Method in interface org.jboss.forge.roaster.model.source.PropertyHolderSource
Add a new Property declaration to this O instance.
addTagValue(String, String) - Method in interface org.jboss.forge.roaster.model.source.JavaDocSource
Add a tag value for this JavaDocSource
addTagValue(JavaDocTag) - Method in interface org.jboss.forge.roaster.model.source.JavaDocSource
Add a tag value given an existing JavaDocTag
addThrows(String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Add a thrown Exception to this method's signature.
addThrows(Class<? extends Exception>) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Add a thrown Exception to this method's signature.
addTypeVariable() - Method in interface org.jboss.forge.roaster.model.source.GenericCapableSource
Adds a type variable.
addTypeVariable(String) - Method in interface org.jboss.forge.roaster.model.source.GenericCapableSource
Annotation<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents an annotation on some Java element.
AnnotationElement<O extends JavaAnnotation<O>> - Interface in org.jboss.forge.roaster.model
Represents an element definition of a JavaAnnotation.
AnnotationElement.ReadDefaultValue<O extends JavaAnnotation<O>> - Interface in org.jboss.forge.roaster.model
Represents the default value of a given AnnotationElement.
AnnotationElementSource - Interface in org.jboss.forge.roaster.model.source
Represents an element definition of a JavaAnnotationSource.
AnnotationElementSource.DefaultValue - Interface in org.jboss.forge.roaster.model.source
Represents the default value of an AnnotationElementSource and provides mechanisms to set that value.
AnnotationSource<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model.source
Represents an annotation on some Java source element.
AnnotationTarget<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a Java element that may carry annotations.
AnnotationTargetSource<O extends JavaSource<O>,T> - Interface in org.jboss.forge.roaster.model.source
Represents a Java source element that may carry annotations.
areEqual(String, String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
areEqualTrimmed(String, String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
areEquivalent(String, String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
Assert - Class in org.jboss.forge.roaster.model.util
 
Assert() - Constructor for class org.jboss.forge.roaster.model.util.Assert
 

C

capitalize(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
Capitalize the given String: "input" -> "Input"
countNumberOfOccurences(String, String) - Static method in class org.jboss.forge.roaster.model.util.Strings
Deprecated.
countNumberOfOccurrences(String, String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
create(Class<T>) - Static method in class org.jboss.forge.roaster.Roaster
Create a new empty JavaSource instance.
create(Class<T>) - Method in interface org.jboss.forge.roaster.spi.JavaParser
Create a new empty JavaSource instance.
createAccessor() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Create the accessor method.
createBuilder(JavaClassSource) - Static method in class org.jboss.forge.roaster.model.util.DesignPatterns
Creates a class based on the Builder Design pattern.
createDecorator(JavaType<?>) - Static method in class org.jboss.forge.roaster.model.util.DesignPatterns
Creates a class based on the Decorator design pattern.
createEquals(JavaClassSource, FieldSource<?>...) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Create an equals implementation for the given class and fields.
createField() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Create the storing field.
createGetterAndSetter(JavaClassSource, FieldSource<JavaClassSource>) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Generates a getXXX and setXXX method for the supplied field
createHashCode(JavaClassSource, FieldSource<?>...) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Create a hashCode implementation for the given class and fields.
createHashCodeAndEquals(JavaClassSource) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Deprecated.
Use Refactory#createHashCodeAndEquals(JavaClass, Field...) instead, since this method relies on the existence of the id field
createHashCodeAndEquals(JavaClassSource, FieldSource<?>...) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Create a hashCode and equals implementation for the given class and fields.
createMutator() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Create the mutator method.
createToStringFromFields(JavaClassSource) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Create a toString implementation using all the fields in this class
createToStringFromFields(JavaClassSource, FieldSource<JavaClassSource>...) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Create a toString implementation using the supplied fields
createToStringFromFields(JavaClassSource, List<FieldSource<JavaClassSource>>) - Static method in class org.jboss.forge.roaster.model.util.Refactory
Create a toString implementation using the supplied fields

D

DesignPatterns - Class in org.jboss.forge.roaster.model.util
Design patterns from GoF
DesignPatterns() - Constructor for class org.jboss.forge.roaster.model.util.DesignPatterns
 

E

enquote(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
EnumConstant<O extends JavaEnum<O>> - Interface in org.jboss.forge.roaster.model
Represents one of the constant members of a JavaEnum.
EnumConstant.ReadBody<O extends EnumConstant.ReadBody<O>> - Interface in org.jboss.forge.roaster.model
Represents the anonymous subclass "body" of a EnumConstant.
EnumConstantSource - Interface in org.jboss.forge.roaster.model.source
Represents one of the constant members of a JavaEnumSource.
EnumConstantSource.Body - Interface in org.jboss.forge.roaster.model.source
Represents the anonymous subclass "body" of an EnumConstantSource.
Extendable<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that can extend other types (Java inheritance and interfaces).
ExtendableSource<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that can extend other types (Java inheritance and interfaces).
extendSuperType(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.ExtendableSource
Set this type's super class and import their abstract methods, if any.
extendSuperType(JavaClass<?>) - Method in interface org.jboss.forge.roaster.model.source.ExtendableSource
Set this type's super class and import their abstract methods, if any.

F

Field<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a field of a JavaClass, JavaInterface, or JavaEnum.
FieldHolder<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may contain field definitions.
FieldHolderSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that may contain field definitions.
FieldSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a field of a JavaClassSource, JavaInterfaceSource, or JavaEnumSource.
FinalCapable - Interface in org.jboss.forge.roaster.model
Represents a Java element that can be modified
FinalCapableSource<T> - Interface in org.jboss.forge.roaster.model.source
Represents a Java element that supports the final keyword.
fixArray(String, boolean) - Static method in class org.jboss.forge.roaster.model.util.Types
 
format(String) - Static method in class org.jboss.forge.roaster.Roaster
Format the given String as a Java source file, using the built in code format style.
format(Properties, String) - Static method in class org.jboss.forge.roaster.Roaster
Format the given String as a Java source type, using the given code format Properties
format(String) - Method in interface org.jboss.forge.roaster.spi.FormatterProvider
Format the provided source code
format(Properties, String) - Method in interface org.jboss.forge.roaster.spi.FormatterProvider
Format the source code, given the required Properties
FormatterProfileReader - Class in org.jboss.forge.roaster.model.util
Reads Formatter profiles
FormatterProvider - Interface in org.jboss.forge.roaster.spi
Allows attaching a custom source formatter.
fromEclipseXml(InputStream) - Static method in class org.jboss.forge.roaster.model.util.FormatterProfileReader
Creates a new FormatterProfileReader instance

G

generateParameterNames(Class<?>[]) - Static method in class org.jboss.forge.roaster.model.util.Methods
 
GenericCapable<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a Java element that may define type variables.
GenericCapableSource<O extends JavaSource<O>,T> - Interface in org.jboss.forge.roaster.model.source
Represents a Java source element that may define type variables.
getAccessor() - Method in interface org.jboss.forge.roaster.model.Property
Get this property's accessor method.
getAccessor() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Override.
getAnnotation() - Method in interface org.jboss.forge.roaster.model.AnnotationElement.ReadDefaultValue
 
getAnnotation(Class<? extends Annotation>) - Method in interface org.jboss.forge.roaster.model.AnnotationTarget
Returns the annotation bound of the given type in this AnnotationTarget or null if it doesn't exist
getAnnotation(String) - Method in interface org.jboss.forge.roaster.model.AnnotationTarget
Returns the annotation bound of the given type in this AnnotationTarget or null if it doesn't exist
getAnnotation() - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
getAnnotation(Class<? extends Annotation>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
 
getAnnotation(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
 
getAnnotationArrayValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getAnnotationArrayValue(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getAnnotationArrayValue() - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
getAnnotationArrayValue(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
getAnnotationElement(String) - Method in interface org.jboss.forge.roaster.model.JavaAnnotation
Get the AnnotationElement with the given name and return it, otherwise, return null.
getAnnotationElement(String) - Method in interface org.jboss.forge.roaster.model.source.JavaAnnotationSource
Get the AnnotationElementSource with the given name and return it, otherwise, return null.
getAnnotationElements() - Method in interface org.jboss.forge.roaster.model.JavaAnnotation
Get a list of all AnnotationElements declared by this JavaAnnotation, or return an empty list if no AnnotationElements are declared.
getAnnotationElements() - Method in interface org.jboss.forge.roaster.model.source.JavaAnnotationSource
Get a list of all AnnotationElementSources declared by this JavaAnnotation, or return an empty list if no AnnotationElementSources are declared.
getAnnotations() - Method in interface org.jboss.forge.roaster.model.AnnotationTarget
Returns a List of Annotation elements bound to this AnnotationTarget instance
getAnnotations() - Method in interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
 
getAnnotationValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getAnnotationValue(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getAnnotationValue() - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
getAnnotationValue(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
getArrayDimension(String) - Static method in class org.jboss.forge.roaster.model.util.Types
Returns the dimension of the array.
getArrayDimensions() - Method in interface org.jboss.forge.roaster.model.Type
 
getBasicArrayDimension(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
getBody() - Method in interface org.jboss.forge.roaster.model.EnumConstant
Get the EnumConstantSource.Body of this enum constant.
getBody() - Method in interface org.jboss.forge.roaster.model.Method
Get the inner body of this Method
getBody() - Method in interface org.jboss.forge.roaster.model.source.EnumConstantSource
 
getBounds() - Method in interface org.jboss.forge.roaster.model.TypeVariable
Get the upper bounds of this type variable.
getCanonicalName() - Method in interface org.jboss.forge.roaster.model.JavaType
Return the canonical name of this T instance.
getClassArray() - Method in interface org.jboss.forge.roaster.model.AnnotationElement.ReadDefaultValue
 
getClassArrayValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getClassArrayValue(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getClassValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getClassValue(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getColumn() - Method in interface org.jboss.forge.roaster.model.SyntaxError
Get the 0 based column number for the error start whenever it's possible to calculate it, or < 0 when the column is unknown.
getConstructorArguments() - Method in interface org.jboss.forge.roaster.model.EnumConstant
Get the constructor arguments of this enum constant.
getDefaultProperties() - Method in class org.jboss.forge.roaster.model.util.FormatterProfileReader
 
getDefaultValue() - Method in interface org.jboss.forge.roaster.model.AnnotationElement
 
getDefaultValue() - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource
 
getDefaultValue(Class<?>) - Static method in class org.jboss.forge.roaster.model.util.Types
Returns the default value for a given type
getDefaultValue(String) - Static method in class org.jboss.forge.roaster.model.util.Types
Returns the default value for a given type
getDescription() - Method in interface org.jboss.forge.roaster.model.SyntaxError
Get a textual description of the type of problem encountered.
getEnclosingType() - Method in interface org.jboss.forge.roaster.model.JavaType
Return the enclosing JavaType type in which this class is defined.
getEnclosingType() - Method in interface org.jboss.forge.roaster.model.source.JavaSource
Returns the JavaSource enclosing this type
getEnum(Class<T>) - Method in interface org.jboss.forge.roaster.model.AnnotationElement.ReadDefaultValue
 
getEnumArray(Class<T>) - Method in interface org.jboss.forge.roaster.model.AnnotationElement.ReadDefaultValue
 
getEnumArrayValue(Class<T>) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getEnumArrayValue(Class<T>, String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getEnumConstant(String) - Method in interface org.jboss.forge.roaster.model.JavaEnum
Return the EnumConstant with the given name, or return null if no such constant exists.
getEnumConstant(String) - Method in interface org.jboss.forge.roaster.model.source.JavaEnumSource
Return the EnumConstant with the given name, or return null if no such constant exists.
getEnumConstants() - Method in interface org.jboss.forge.roaster.model.JavaEnum
Return all declared EnumConstant types for this JavaEnum
getEnumConstants() - Method in interface org.jboss.forge.roaster.model.source.JavaEnumSource
Return all declared EnumConstant types for this JavaEnum
getEnumValue(Class<T>) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getEnumValue(Class<T>, String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getField(String) - Method in interface org.jboss.forge.roaster.model.FieldHolder
Get the Field with the given name and return it, otherwise, return null.
getField() - Method in interface org.jboss.forge.roaster.model.Property
Get the field that stores the value of the property.
getField(String) - Method in interface org.jboss.forge.roaster.model.source.FieldHolderSource
Get the Field with the given name and return it, otherwise, return null.
getField() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Override.
getFields() - Method in interface org.jboss.forge.roaster.model.FieldHolder
Get a list of all Fields declared by this O, or return an empty list if no Fields are declared.
getFields() - Method in interface org.jboss.forge.roaster.model.source.FieldHolderSource
Get a list of all Fields declared by this O, or return an empty list if no Fields are declared.
getFrom(VisibilityScoped) - Static method in enum org.jboss.forge.roaster.model.Visibility
 
getFullText() - Method in interface org.jboss.forge.roaster.model.JavaDoc
Returns the full text for this JavaDoc, including tags
getGenerics(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
getGenericsTypeParameter(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
getGoverningType() - Method in interface org.jboss.forge.roaster.model.JavaUnit
A type in the source file governs the declaration environment such as 'package' and 'import' information.
getImport(String) - Method in interface org.jboss.forge.roaster.model.source.Importer
Get the Import for the given fully-qualified class name, if it exists; otherwise, return null;
getImport(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.Importer
Get the Import for the given Class type, if it exists; otherwise, return null;
getImport(T) - Method in interface org.jboss.forge.roaster.model.source.Importer
Get the Import for the given T type, if it exists; otherwise, return null;
getImport(Import) - Method in interface org.jboss.forge.roaster.model.source.Importer
Get the Import of the given Import type, if it exists; otherwise, return null;
getImports() - Method in interface org.jboss.forge.roaster.model.source.Importer
Get an immutable list of all Imports currently imported by this O
getInterfaces() - Method in interface org.jboss.forge.roaster.model.InterfaceCapable
 
getInternal() - Method in interface org.jboss.forge.roaster.Internal
Returns the implementation-specific Object representing this.
getJavaDoc() - Method in interface org.jboss.forge.roaster.model.JavaDocCapable
Returns the JavaDoc for this element.
getJavaDoc() - Method in interface org.jboss.forge.roaster.model.source.JavaDocCapableSource
 
getLevenshteinDistance(CharSequence, CharSequence) - Static method in class org.jboss.forge.roaster.model.util.Strings
Find the Levenshtein distance between two Strings.
getLevenshteinDistance(CharSequence, CharSequence, int) - Static method in class org.jboss.forge.roaster.model.util.Strings
Find the Levenshtein distance between two Strings if it's less than or equal to a given threshold.
getLine() - Method in interface org.jboss.forge.roaster.model.SyntaxError
Gets the 1 based line number for the syntax error whenever it's possible to calculate it, or < 0 when the line is unknown.
getLiteral() - Method in interface org.jboss.forge.roaster.model.AnnotationElement.ReadDefaultValue
 
getLiteralInitializer() - Method in interface org.jboss.forge.roaster.model.Field
 
getLiteralValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getLiteralValue(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getLiteralValue() - Method in interface org.jboss.forge.roaster.model.ValuePair
 
getMembers() - Method in interface org.jboss.forge.roaster.model.MemberHolder
Return a list of all class members (fields, methods, etc.)
getMembers() - Method in interface org.jboss.forge.roaster.model.source.MemberHolderSource
Return a list of all class members (fields, methods, etc.)
getMethod(String) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return the Method with the given name and zero parameters; otherwise return null.
getMethod(String, String...) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return the Method with the given name and signature types; otherwise return null.
getMethod(String, Class<?>...) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return the Method with the given name and signature types; otherwise return null.
getMethod(String) - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Return the MethodSource with the given name and zero parameters; otherwise return null.
getMethod(String, String...) - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Return the MethodSource with the given name and signature types; otherwise return null.
getMethod(String, Class<?>...) - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Return the MethodSource with the given name and signature types; otherwise return null.
getMethods() - Method in interface org.jboss.forge.roaster.model.MethodHolder
Get a List of all Methods declared by this O instance, if any; otherwise, return an empty List
getMethods() - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Get a List of all MethodSources declared by this O instance, if any; otherwise, return an empty List
getMutator() - Method in interface org.jboss.forge.roaster.model.Property
Get this property's mutator method.
getMutator() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Override.
getName() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getName() - Method in interface org.jboss.forge.roaster.model.JavaDocTag
The tag name
getName() - Method in interface org.jboss.forge.roaster.model.Named
Get the simple name of this T instance.
getName() - Method in interface org.jboss.forge.roaster.model.Parameter
 
getName() - Method in interface org.jboss.forge.roaster.model.Type
Returns the type's name after erasing any type parameters.
getName() - Method in interface org.jboss.forge.roaster.model.ValuePair
 
getNestedType(String) - Method in interface org.jboss.forge.roaster.model.source.TypeHolderSource
 
getNestedType(String) - Method in interface org.jboss.forge.roaster.model.TypeHolder
Get the JavaType with the given name and return it, otherwise, return null.
getNestedTypes() - Method in interface org.jboss.forge.roaster.model.source.TypeHolderSource
Return a list containing JavaSource instances for each nested Class declaration found within this.
getNestedTypes() - Method in interface org.jboss.forge.roaster.model.TypeHolder
Return a list containing JavaType instances for each nested Class declaration found within this.
getOrigin() - Method in interface org.jboss.forge.roaster.Origin
 
getPackage() - Method in interface org.jboss.forge.roaster.model.Packaged
Get the package of this T, or return null if it is in the default package.
getPackage() - Method in interface org.jboss.forge.roaster.model.source.Import
 
getPackage(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
getParameters() - Method in interface org.jboss.forge.roaster.model.Method
Get a list of this Method's parameters.
getParameters() - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Get a list of this Method's parameters.
getParentType() - Method in interface org.jboss.forge.roaster.model.Type
 
getProfileNames() - Method in class org.jboss.forge.roaster.model.util.FormatterProfileReader
Returns the profile names in this FormatterProfileReader
getProperties() - Method in interface org.jboss.forge.roaster.model.PropertyHolder
Get a list of all Properties declared by this O, or return an empty list if no Properties are declared.
getProperties() - Method in interface org.jboss.forge.roaster.model.source.PropertyHolderSource
 
getPropertiesFor(String) - Method in class org.jboss.forge.roaster.model.util.FormatterProfileReader
Returns the Properties related to the formatter name
getProperty(String) - Method in interface org.jboss.forge.roaster.model.PropertyHolder
Get the Property with the given name and return it, otherwise, return null.
getProperty(String) - Method in interface org.jboss.forge.roaster.model.source.PropertyHolderSource
 
getQualifiedName() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getQualifiedName() - Method in interface org.jboss.forge.roaster.model.JavaType
Get the qualified-name of this T instance, where the qualified-name contains both the Java package and simple class name of the type represented by this T instance.
getQualifiedName() - Method in interface org.jboss.forge.roaster.model.source.Import
 
getQualifiedName() - Method in interface org.jboss.forge.roaster.model.Type
Returns the type's qualified name, expanding simple names according to imports
getQualifiedNameWithGenerics() - Method in interface org.jboss.forge.roaster.model.Type
Returns the type's qualified name, preserving type parameters (which are also qualified) Preserves array dimensions.
getReturnType() - Method in interface org.jboss.forge.roaster.model.Method
Get the return Type of this Method.
getSimpleName() - Method in interface org.jboss.forge.roaster.model.source.Import
 
getSimpleName() - Method in interface org.jboss.forge.roaster.model.Type
Returns the type's name, simplifying qualified names based on imports Preserves generic parameters, simplifying them recursively Preserves array dimensions
getSingleClass() - Method in interface org.jboss.forge.roaster.model.AnnotationElement.ReadDefaultValue
 
getString() - Method in interface org.jboss.forge.roaster.model.AnnotationElement.ReadDefaultValue
 
getStringArrayValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getStringArrayValue(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getStringInitializer() - Method in interface org.jboss.forge.roaster.model.Field
 
getStringValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getStringValue(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
getStringValue() - Method in interface org.jboss.forge.roaster.model.ValuePair
 
getSuperType() - Method in interface org.jboss.forge.roaster.model.Extendable
Get this type's super class.
getSyntaxErrors() - Method in interface org.jboss.forge.roaster.model.JavaType
Get a list of all SyntaxErrors detected in the current T.
getTagNames() - Method in interface org.jboss.forge.roaster.model.JavaDoc
Return the tag names for this JavaDoc
getTags(String) - Method in interface org.jboss.forge.roaster.model.JavaDoc
Returns a list of JavaDocTag values for the given tag name (eg: @param) or an empty list if not found
getTags() - Method in interface org.jboss.forge.roaster.model.JavaDoc
Returns a list of JavaDocTag values for the given tag name (eg: @param) or an empty list if not found
getText() - Method in interface org.jboss.forge.roaster.model.JavaDoc
Returns the text for this JavaDoc, excluding tags
getThrownExceptions() - Method in interface org.jboss.forge.roaster.model.Method
Get a list of qualified (if possible) Exception class names thrown by this method.
getTopLevelTypes() - Method in interface org.jboss.forge.roaster.model.JavaUnit
 
getType() - Method in interface org.jboss.forge.roaster.model.AnnotationElement
Get this annotation element's Type.
getType() - Method in interface org.jboss.forge.roaster.model.Field
Get this field's Type.
getType() - Method in interface org.jboss.forge.roaster.model.Parameter
 
getType() - Method in interface org.jboss.forge.roaster.model.Property
Get this property's Type.
getTypeArguments() - Method in interface org.jboss.forge.roaster.model.Type
 
getTypeVariable(String) - Method in interface org.jboss.forge.roaster.model.GenericCapable
Returns the named TypeVariable.
getTypeVariable(String) - Method in interface org.jboss.forge.roaster.model.source.GenericCapableSource
 
getTypeVariables() - Method in interface org.jboss.forge.roaster.model.GenericCapable
Returns all the generic types associated with this object
getTypeVariables() - Method in interface org.jboss.forge.roaster.model.source.GenericCapableSource
 
getValue() - Method in interface org.jboss.forge.roaster.model.JavaDocTag
The tag value
getValues() - Method in interface org.jboss.forge.roaster.model.Annotation
 
getVisibility() - Method in interface org.jboss.forge.roaster.model.VisibilityScoped
 

H

hasAnnotation(Class<? extends Annotation>) - Method in interface org.jboss.forge.roaster.model.AnnotationTarget
Check if annotation bound of the given type in this AnnotationTarget exists
hasAnnotation(String) - Method in interface org.jboss.forge.roaster.model.AnnotationTarget
Check if annotation bound of the given type in this AnnotationTarget exists
hasAnnotationElement(String) - Method in interface org.jboss.forge.roaster.model.JavaAnnotation
Return whether or not this JavaAnnotation declares an AnnotationElement with the given name.
hasAnnotationElement(AnnotationElement<?>) - Method in interface org.jboss.forge.roaster.model.JavaAnnotation
Return whether or not this JavaAnnotation declares the given AnnotationElement instance.
hasField(String) - Method in interface org.jboss.forge.roaster.model.FieldHolder
Return whether or not this O declares a Field with the given name.
hasField(Field<O>) - Method in interface org.jboss.forge.roaster.model.FieldHolder
Return whether or not this O declares the given Field instance.
hasField() - Method in interface org.jboss.forge.roaster.model.Property
Learn whether this property is backed by a Field.
hasImport(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.Importer
Return whether or not this O has an import for the given Class type.
hasImport(String) - Method in interface org.jboss.forge.roaster.model.source.Importer
Return whether or not this O has an import for the given fully-qualified class name.
hasImport(T) - Method in interface org.jboss.forge.roaster.model.source.Importer
Return whether or not this O has an import for the given T type.
hasImport(Import) - Method in interface org.jboss.forge.roaster.model.source.Importer
Return whether or not this O has the given Import type.
hasInterface(String) - Method in interface org.jboss.forge.roaster.model.InterfaceCapable
 
hasInterface(Class<?>) - Method in interface org.jboss.forge.roaster.model.InterfaceCapable
 
hasInterface(JavaInterface<?>) - Method in interface org.jboss.forge.roaster.model.InterfaceCapable
 
hasJavaDoc() - Method in interface org.jboss.forge.roaster.model.JavaDocCapable
Returns if this JavaType already has a JavaDoc
hasMethod(Method<O, ?>) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return true if this O has a method with the given name and zero parameters; otherwise return false.
hasMethodSignature(Method<?, ?>) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return true if this O has a method with signature matching the given method's signature.
hasMethodSignature(String) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return true if this O has a method with the given name and zero parameters; otherwise return false.
hasMethodSignature(String, String...) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return true if this O has a method with the given name and signature types; otherwise return false.
hasMethodSignature(String, Class<?>...) - Method in interface org.jboss.forge.roaster.model.MethodHolder
Return true if this O has a method with the given name and signature types; otherwise return false.
hasNestedType(String) - Method in interface org.jboss.forge.roaster.model.TypeHolder
Return whether or not this O declares a type with the given name.
hasNestedType(JavaType<?>) - Method in interface org.jboss.forge.roaster.model.TypeHolder
Return whether or not this O declares the given JavaType instance.
hasNestedType(Class<?>) - Method in interface org.jboss.forge.roaster.model.TypeHolder
Return whether or not this O declares the given Class instance.
hasProperty(String) - Method in interface org.jboss.forge.roaster.model.PropertyHolder
Return whether or not this O declares a Property with the given name.
hasProperty(Property<O>) - Method in interface org.jboss.forge.roaster.model.PropertyHolder
Return whether or not this O declares the given Property instance.
hasSyntaxErrors() - Method in interface org.jboss.forge.roaster.model.JavaType
Return whether or not this T currently has any SyntaxError s.

I

implementAbstractMethods(MethodHolder<?>, MethodHolderSource<?>) - Static method in class org.jboss.forge.roaster.model.util.Methods
Implement the abstract methods present in a MethodHolder to the specified MethodHolderSource
implementAbstractMethods(Class<?>, MethodHolderSource<?>) - Static method in class org.jboss.forge.roaster.model.util.Methods
Implement the abstract methods present in a Class to the specified MethodHolderSource
implementInterface(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Implements the specified Class interface and import their abstract methods, if any.
implementInterface(JavaInterface<?>) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Implements the specified JavaInterface and import their abstract methods, if any.
implementMethod(MethodSource<?>) - Static method in class org.jboss.forge.roaster.model.util.Methods
Adds a default method implementation to the given MethodSource.
Import - Interface in org.jboss.forge.roaster.model.source
Represents an imported element in a JavaSource.
Importer<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Defines the aspect of JavaSource that handles type imports.
InterfaceCapable - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may implement one or more interfaces.
InterfaceCapableSource<T extends JavaSource<T>> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that may implement one or more interfaces.
Internal - Interface in org.jboss.forge.roaster
Represents an object that stores implementation-specific data.
isAbstract() - Method in interface org.jboss.forge.roaster.model.Abstractable
 
isAccessible() - Method in interface org.jboss.forge.roaster.model.Property
Learn whether this property is accessible (i.e.
isAnnotation() - Method in interface org.jboss.forge.roaster.model.JavaType
Return true if this JavaType represents a JavaAnnotation
isArray() - Method in interface org.jboss.forge.roaster.model.Type
 
isArray(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
isBasicType(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
isBlank(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
isClass() - Method in interface org.jboss.forge.roaster.model.JavaType
Return true if this JavaType represents a JavaClass
isConstructor() - Method in interface org.jboss.forge.roaster.model.Method
Return true if this Method is a constructor for the class in which it is defined.
isDefault() - Method in interface org.jboss.forge.roaster.model.Method
 
isDefaultPackage() - Method in interface org.jboss.forge.roaster.model.Packaged
Return whether or not this T is in the default package.
isEnum() - Method in interface org.jboss.forge.roaster.model.JavaType
Return true if this JavaType represents a JavaEnum
isError() - Method in interface org.jboss.forge.roaster.model.SyntaxError
True if the syntax error is an error, false in any other case.
isFalse(boolean, String) - Static method in class org.jboss.forge.roaster.model.util.Assert
 
isFinal() - Method in interface org.jboss.forge.roaster.model.FinalCapable
 
isGeneric(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
isInterface() - Method in interface org.jboss.forge.roaster.model.JavaType
Return true if this JavaType represents a JavaClass interface.
isJavaLang(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
isLocalClass() - Method in interface org.jboss.forge.roaster.model.JavaClass
Returns true if this JavaClass represents a local class.
isMarker() - Method in interface org.jboss.forge.roaster.model.Annotation
 
isMutable() - Method in interface org.jboss.forge.roaster.model.Property
Learn whether this property is mutable (i.e.
isNative() - Method in interface org.jboss.forge.roaster.model.Method
 
isNormal() - Method in interface org.jboss.forge.roaster.model.Annotation
 
isNullOrEmpty(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
isPackagePrivate() - Method in interface org.jboss.forge.roaster.model.VisibilityScoped
 
isParameterized() - Method in interface org.jboss.forge.roaster.model.Type
 
isPrimitive() - Method in interface org.jboss.forge.roaster.model.Type
 
isPrimitive(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
isPrivate() - Method in interface org.jboss.forge.roaster.model.VisibilityScoped
 
isProtected() - Method in interface org.jboss.forge.roaster.model.VisibilityScoped
 
isPublic() - Method in interface org.jboss.forge.roaster.model.VisibilityScoped
 
isQualified() - Method in interface org.jboss.forge.roaster.model.Type
 
isQualified(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
isReturnTypeVoid() - Method in interface org.jboss.forge.roaster.model.Method
Convenience method to learn whether the Method has a primitive void return type.
isSimpleName(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
isSingleValue() - Method in interface org.jboss.forge.roaster.model.Annotation
 
isStatic() - Method in interface org.jboss.forge.roaster.model.StaticCapable
 
isSynchronized() - Method in interface org.jboss.forge.roaster.model.Method
 
isTransient() - Method in interface org.jboss.forge.roaster.model.Field
 
isTrue(boolean, String) - Static method in class org.jboss.forge.roaster.model.util.Assert
 
isTrue(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
isType(Class<?>) - Method in interface org.jboss.forge.roaster.model.Type
 
isType(String) - Method in interface org.jboss.forge.roaster.model.Type
 
isTypeElementDefined(String) - Method in interface org.jboss.forge.roaster.model.Annotation
 
isVarArgs() - Method in interface org.jboss.forge.roaster.model.Parameter
 
isVolatile() - Method in interface org.jboss.forge.roaster.model.Field
 
isWarning() - Method in interface org.jboss.forge.roaster.model.SyntaxError
True if the syntax error is a warning, false in any other case.
isWildcard() - Method in interface org.jboss.forge.roaster.model.source.Import
 
isWildcard() - Method in interface org.jboss.forge.roaster.model.Type
 

J

JavaAnnotation<O extends JavaAnnotation<O>> - Interface in org.jboss.forge.roaster.model
Represents a Java @interface annotation type.
JavaAnnotationSource - Interface in org.jboss.forge.roaster.model.source
Represents a Java @interface annotation source file as an in-memory modifiable element.
JavaClass<O extends JavaClass<O>> - Interface in org.jboss.forge.roaster.model
Represents a Java class type.
JavaClassSource - Interface in org.jboss.forge.roaster.model.source
Represents a Java class source file as an in-memory modifiable element.
JavaDoc<O> - Interface in org.jboss.forge.roaster.model
A JavaDoc represents Javadoc-style doc comment
JavaDocCapable<O> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may support JavaDoc
JavaDocCapableSource<O> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource element that can hold JavaDoc
JavaDocSource<O> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaDoc entry of a JavaType.
JavaDocTag - Interface in org.jboss.forge.roaster.model
Represents a JavaDoc tag, like the author tag below
JavaEnum<O extends JavaEnum<O>> - Interface in org.jboss.forge.roaster.model
Represents a Java enum type.
JavaEnumSource - Interface in org.jboss.forge.roaster.model.source
Represents a Java enum source file as an in-memory modifiable element.
JavaInterface<O extends JavaInterface<O>> - Interface in org.jboss.forge.roaster.model
Represents a Java interface type.
JavaInterfaceSource - Interface in org.jboss.forge.roaster.model.source
Represents a Java interface source file as an in-memory modifiable element.
JavaPackageInfo<O extends JavaPackageInfo<O>> - Interface in org.jboss.forge.roaster.model
Represents a Java Package Info descriptor.
JavaPackageInfoSource - Interface in org.jboss.forge.roaster.model.source
Represents a Java Package Info descriptor source file.
JavaParser - Interface in org.jboss.forge.roaster.spi
Roaster SPI for parser implementations
JavaSource<T extends JavaSource<T>> - Interface in org.jboss.forge.roaster.model.source
Represents a Java type in source form.
JavaType<T extends JavaType<T>> - Interface in org.jboss.forge.roaster.model
Represents a Java type.
JavaUnit - Interface in org.jboss.forge.roaster.model
A JavaUnit represents a Java compilation unit.
join(Collection<?>, String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 

M

Member<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a JavaType member.
MemberHolder<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may declare fields or methods.
MemberHolderSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that may declare fields or methods.
MemberSource<O extends JavaSource<O>,T> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource member.
Method<O extends JavaType<O>,T extends Method<O,T>> - Interface in org.jboss.forge.roaster.model
Represents a Java Method.
MethodHolder<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may declare methods.
MethodHolderSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that may declare methods.
Methods - Class in org.jboss.forge.roaster.model.util
Utility methods for MethodSource objects
Methods() - Constructor for class org.jboss.forge.roaster.model.util.Methods
 
MethodSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a Java Method in source form.

N

Named - Interface in org.jboss.forge.roaster.model
Represents a named Java element.
NamedSource<T> - Interface in org.jboss.forge.roaster.model.source
Represents a named Java source element.
notNull(Object, String) - Static method in class org.jboss.forge.roaster.model.util.Assert
 

O

org.jboss.forge.roaster - package org.jboss.forge.roaster
 
org.jboss.forge.roaster.model - package org.jboss.forge.roaster.model
 
org.jboss.forge.roaster.model.source - package org.jboss.forge.roaster.model.source
 
org.jboss.forge.roaster.model.util - package org.jboss.forge.roaster.model.util
 
org.jboss.forge.roaster.spi - package org.jboss.forge.roaster.spi
 
Origin<T> - Interface in org.jboss.forge.roaster
Represents an object that has a root ancestor that should be made accessible to its clients.

P

Packaged<T> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may be declared as belonging to a particular Java package.
PackagedSource<T> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that may be declared as belonging to a particular Java package.
Parameter<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a parameter of a Method.
ParameterSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a parameter of a MethodSource.
parse(File) - Static method in class org.jboss.forge.roaster.Roaster
Open the given File, parsing its contents into a new JavaType instance.
parse(URL) - Static method in class org.jboss.forge.roaster.Roaster
Parse the given URL data into a new JavaType instance.
parse(InputStream) - Static method in class org.jboss.forge.roaster.Roaster
Read the given InputStream and parse the data into a new JavaType instance.
parse(char[]) - Static method in class org.jboss.forge.roaster.Roaster
Parse the given character array into a new JavaType instance.
parse(String) - Static method in class org.jboss.forge.roaster.Roaster
Parse the given String data into a new JavaType instance.
parse(Class<T>, URL) - Static method in class org.jboss.forge.roaster.Roaster
Read the given URL and parse its data into a new JavaType instance of the given type.
parse(Class<T>, File) - Static method in class org.jboss.forge.roaster.Roaster
Read the given File and parse its data into a new JavaType instance of the given type.
parse(Class<T>, char[]) - Static method in class org.jboss.forge.roaster.Roaster
Read the given character array and parse its data into a new JavaType instance of the given type.
parse(Class<T>, String) - Static method in class org.jboss.forge.roaster.Roaster
Read the given string and parse its data into a new JavaType instance of the given type.
parse(Class<T>, InputStream) - Static method in class org.jboss.forge.roaster.Roaster
Read the given InputStream and parse its data into a new JavaType instance of the given type.
ParserException - Exception in org.jboss.forge.roaster
 
ParserException() - Constructor for exception org.jboss.forge.roaster.ParserException
 
ParserException(String) - Constructor for exception org.jboss.forge.roaster.ParserException
 
ParserException(Throwable) - Constructor for exception org.jboss.forge.roaster.ParserException
 
ParserException(String, Throwable) - Constructor for exception org.jboss.forge.roaster.ParserException
 
parseUnit(String) - Static method in class org.jboss.forge.roaster.Roaster
Read the given String and parse its data into a new JavaUnit instance of the given type.
parseUnit(InputStream) - Static method in class org.jboss.forge.roaster.Roaster
Read the given InputStream and parse its data into a new JavaUnit instance of the given type.
parseUnit(String) - Method in interface org.jboss.forge.roaster.spi.JavaParser
Read the given String and parse the data into a new JavaUnit instance.
Property<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
A Property is a convenience construct depicting a simple Java bean property.
PropertyHolder<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may contain property definitions.
PropertyHolderSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that may contain PropertySource definitions.
PropertySource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Source variant of Property interface.

R

rebuildGenericNameWithArrays(String, Type<O>) - Static method in class org.jboss.forge.roaster.model.util.Types
 
Refactory - Class in org.jboss.forge.roaster.model.util
Utility refactory methods for JavaClassSource objects
Refactory() - Constructor for class org.jboss.forge.roaster.model.util.Refactory
 
removeAccessor() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Remove the accessor method.
removeAllTags() - Method in interface org.jboss.forge.roaster.model.source.JavaDocSource
Remove all tags
removeAllValues() - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
removeAnnotation(Annotation<O>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationTargetSource
Remove an annotation instance from this T.
removeAnnotationElement(AnnotationElement<?>) - Method in interface org.jboss.forge.roaster.model.source.JavaAnnotationSource
Remove the given AnnotationElement from this JavaAnnotationSource instance, if it exists; otherwise, do nothing.
removeAnnotationValue(Annotation<O>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Remove element from the array of values associated with the "value" annotation element.
removeAnnotationValue(String, Annotation<O>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Remove element from the array of values associated with the specified annotation element.
removeBody() - Method in interface org.jboss.forge.roaster.model.source.EnumConstantSource
Remove the EnumConstantSource.Body of this enum constant.
removeBounds() - Method in interface org.jboss.forge.roaster.model.source.TypeVariableSource
Remove any bounds declared on this type variable.
removeField(Field<O>) - Method in interface org.jboss.forge.roaster.model.source.FieldHolderSource
Remove the given Field from this O instance, if it exists; otherwise, do nothing.
removeField() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Remove the storing field.
removeImport(String) - Method in interface org.jboss.forge.roaster.model.source.Importer
Remove any Import for the given fully-qualified class name, if it exists; otherwise, do nothing;
removeImport(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.Importer
Remove any Import for the given Class type, if it exists; otherwise, do nothing;
removeImport(T) - Method in interface org.jboss.forge.roaster.model.source.Importer
Remove any Import for the given T type, if it exists; otherwise, do nothing;
removeImport(Import) - Method in interface org.jboss.forge.roaster.model.source.Importer
Remove the given Import from this O instance, if it exists; otherwise, do nothing;
removeInterface(String) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Removes the specified interface FQN
removeInterface(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Removes the specified interface
removeInterface(JavaInterface<?>) - Method in interface org.jboss.forge.roaster.model.source.InterfaceCapableSource
Removes the specified interface
removeJavaDoc() - Method in interface org.jboss.forge.roaster.model.source.JavaDocCapableSource
Remove the associated JavaDoc
removeMethod(Method<O, ?>) - Method in interface org.jboss.forge.roaster.model.source.MethodHolderSource
Remove the given MethodSource declaration from this O instance, if it exists; otherwise, do nothing.
removeMutator() - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Remove the mutator method.
removeNestedType(JavaSource<?>) - Method in interface org.jboss.forge.roaster.model.source.TypeHolderSource
Remove the nested type instance, if it exists; otherwise, do nothing.
removeParameter(ParameterSource<O>) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Remove a parameter from this method
removeParameter(Class<?>, String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Remove a parameter with the specified Class type and name from this method
removeParameter(String, String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Remove a parameter with the specified type and name from this method
removeParameter(JavaType<?>, String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Remove a parameter with the specified JavaType type and name to this method
removeProperty(Property<O>) - Method in interface org.jboss.forge.roaster.model.source.PropertyHolderSource
Remove the given Property from this O instance, if it exists; otherwise, do nothing.
removeTag(JavaDocTag) - Method in interface org.jboss.forge.roaster.model.source.JavaDocSource
Removes the given JavaDocTag
removeTags(String) - Method in interface org.jboss.forge.roaster.model.source.JavaDocSource
Removes the given tagName from this JavaDoc
removeThrows(String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Remove a thrown Exception to this method's signature.
removeThrows(Class<? extends Exception>) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Remove a thrown Exception to this method's signature.
removeTypeVariable(String) - Method in interface org.jboss.forge.roaster.model.source.GenericCapableSource
Removes a type variable.
removeTypeVariable(TypeVariable<?>) - Method in interface org.jboss.forge.roaster.model.source.GenericCapableSource
Removes a type variable.
removeValue(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
requiresImport(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.Importer
Return whether or not this O would require an import to reference the given Class type.
requiresImport(String) - Method in interface org.jboss.forge.roaster.model.source.Importer
Return whether or not this O would require an import to reference the given fully-qualified class name.
resolve(JavaType<?>, String) - Method in interface org.jboss.forge.roaster.spi.WildcardImportResolver
Resolves the wildcard type from the specified source
resolveType(String) - Method in interface org.jboss.forge.roaster.model.source.Importer
Given a simple or qualified type, resolve that type against the available imports and return the referenced type.
Roaster - Class in org.jboss.forge.roaster
Responsible for parsing data into new JavaType instances.
Roaster() - Constructor for class org.jboss.forge.roaster.Roaster
 

S

scope() - Method in enum org.jboss.forge.roaster.model.Visibility
private, public, protected, package private("")
set(T, Visibility) - Static method in enum org.jboss.forge.roaster.model.Visibility
 
setAbstract(boolean) - Method in interface org.jboss.forge.roaster.model.source.AbstractableSource
 
setAccessible(boolean) - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Set whether this property is accessible.
setAnnotation() - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
setAnnotationValue() - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Set an annotation value.
setAnnotationValue(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
Set a named annotation value.
setBody(String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Set the inner body of this Method
setBounds(JavaType<?>...) - Method in interface org.jboss.forge.roaster.model.source.TypeVariableSource
Set the bounds of this type variable.
setBounds(Class<?>...) - Method in interface org.jboss.forge.roaster.model.source.TypeVariableSource
Set the bounds of this type variable.
setBounds(String...) - Method in interface org.jboss.forge.roaster.model.source.TypeVariableSource
Set the bounds of this type variable.
setClassArray(Class<?>...) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
setClassArrayValue(String, Class<?>...) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setClassArrayValue(Class<?>...) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setClassValue(String, Class<?>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setClassValue(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setConstructor(boolean) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Toggle this method as a constructor.
setConstructorArguments(String...) - Method in interface org.jboss.forge.roaster.model.source.EnumConstantSource
Set the constructor arguments for this enum constant.
setDefault(boolean) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Sets the default keyword in this method
setDefaultPackage() - Method in interface org.jboss.forge.roaster.model.source.PackagedSource
Set this T to be in the default package (removes any current package declaration.)
setEnum(T) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
setEnumArray(T...) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
setEnumArrayValue(String, Enum<?>...) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setEnumArrayValue(Enum<?>...) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setEnumValue(String, Enum<?>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setEnumValue(Enum<?>...) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setFinal(boolean) - Method in interface org.jboss.forge.roaster.model.source.FinalCapableSource
Sets the final keyword in this element.
setFullText(String) - Method in interface org.jboss.forge.roaster.model.source.JavaDocSource
Sets the whole JavaDoc text, including tags
setLiteral(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
setLiteralInitializer(String) - Method in interface org.jboss.forge.roaster.model.source.FieldSource
 
setLiteralValue(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setLiteralValue(String, String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setMutable(boolean) - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Set whether this property is mutable.
setName(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setName(String) - Method in interface org.jboss.forge.roaster.model.source.Import
 
setName(String) - Method in interface org.jboss.forge.roaster.model.source.NamedSource
Set the simple-name of this T instance.
setNative(boolean) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Sets this method to be native IMPORTANT: Setting it to true will remove the method body.
setPackage(String) - Method in interface org.jboss.forge.roaster.model.source.PackagedSource
Set this T' package.
setPackagePrivate() - Method in interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
 
setParameters(String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Set this Method's parameters.
setPrivate() - Method in interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
 
setProtected() - Method in interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
 
setPublic() - Method in interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
 
setReturnType(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Set this Method to return the given type.
setReturnType(String) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Set this Method to return the given type.
setReturnType(JavaType<?>) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Set this Method to return the given JavaType type.
setReturnTypeVoid() - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Set this Method to return 'void'
setSingleClass(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
setStatic(boolean) - Method in interface org.jboss.forge.roaster.model.source.StaticCapableSource
Sets the static keyword in this element.
setString(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource.DefaultValue
 
setStringArrayValue(String, String[]) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setStringArrayValue(String[]) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setStringInitializer(String) - Method in interface org.jboss.forge.roaster.model.source.FieldSource
 
setStringValue(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setStringValue(String, String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationSource
 
setSuperType(JavaType<?>) - Method in interface org.jboss.forge.roaster.model.source.ExtendableSource
Set this type's super class.
setSuperType(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.ExtendableSource
Set this type's super class.
setSuperType(String) - Method in interface org.jboss.forge.roaster.model.source.ExtendableSource
Set this type's super class.
setSynchronized(boolean) - Method in interface org.jboss.forge.roaster.model.source.MethodSource
Sets the synchronized keyword in this element.
setText(String) - Method in interface org.jboss.forge.roaster.model.source.JavaDocSource
Sets the text for this JavaDoc (without any tags)
setTransient(boolean) - Method in interface org.jboss.forge.roaster.model.source.FieldSource
 
setType(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource
Set the type of this AnnotationElement to the given Class type.
setType(String) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource
Set the type of this AnnotationElement to the given type.
setType(JavaType<?>) - Method in interface org.jboss.forge.roaster.model.source.AnnotationElementSource
Set the type of this AnnotationElement to the given JavaSource type.
setType(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.FieldSource
Set the type of this Field to the given Class type.
setType(String) - Method in interface org.jboss.forge.roaster.model.source.FieldSource
Set the type of this Field to the given type.
setType(JavaType<?>) - Method in interface org.jboss.forge.roaster.model.source.FieldSource
Set the type of this Field to the given JavaSource type.
setType(Class<?>) - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Set the type of this Property to the given Class type.
setType(String) - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Set the type of this Property to the given type.
setType(JavaType<?>) - Method in interface org.jboss.forge.roaster.model.source.PropertySource
Set the type of this Property to the given JavaType type.
setVarArgs(boolean) - Method in interface org.jboss.forge.roaster.model.source.ParameterSource
 
setVisibility(Visibility) - Method in interface org.jboss.forge.roaster.model.source.VisibilityScopedSource
 
setVolatile(boolean) - Method in interface org.jboss.forge.roaster.model.source.FieldSource
 
StaticCapable - Interface in org.jboss.forge.roaster.model
Represents a Java element that may support the static keyword
StaticCapableSource<T> - Interface in org.jboss.forge.roaster.model.source
Represents a Java element that supports the static keyword.
Strings - Class in org.jboss.forge.roaster.model.util
String utilities.
Strings() - Constructor for class org.jboss.forge.roaster.model.util.Strings
 
stripArray(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
stripGenerics(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
stripQuotes(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
SyntaxError - Interface in org.jboss.forge.roaster.model
Describes a syntax problem in a JavaClass.

T

tokenizeClassName(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
toSignature() - Method in interface org.jboss.forge.roaster.model.Method
Convert this Method into a string representing its unique signature.
toSimpleName(String) - Static method in class org.jboss.forge.roaster.model.util.Types
 
toString() - Method in enum org.jboss.forge.roaster.model.Visibility
 
toUnformattedString() - Method in interface org.jboss.forge.roaster.model.JavaType
Return the generated code without any formatting.
toUnformattedString() - Method in interface org.jboss.forge.roaster.model.JavaUnit
Return the generated code without any formatting.
Type<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
 
TypeHolder<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a JavaType that may declare types.
TypeHolderSource<T extends JavaSource<T>> - Interface in org.jboss.forge.roaster.model.source
Represents a JavaSource that may declare types.
Types - Class in org.jboss.forge.roaster.model.util
Types utilities
Types() - Constructor for class org.jboss.forge.roaster.model.util.Types
 
TypeVariable<O extends JavaType<O>> - Interface in org.jboss.forge.roaster.model
Represents a type variable of a GenericCapable JavaType.
TypeVariableSource<O extends JavaSource<O>> - Interface in org.jboss.forge.roaster.model.source
Represents a type variable of a GenericCapableSource JavaSource.

U

uncapitalize(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 
unquote(String) - Static method in class org.jboss.forge.roaster.model.util.Strings
 

V

valueOf(String) - Static method in enum org.jboss.forge.roaster.model.Visibility
Returns the enum constant of this type with the specified name.
ValuePair - Interface in org.jboss.forge.roaster.model
 
values() - Static method in enum org.jboss.forge.roaster.model.Visibility
Returns an array containing the constants of this enum type, in the order they are declared.
Visibility - Enum in org.jboss.forge.roaster.model
 
VisibilityScoped - Interface in org.jboss.forge.roaster.model
Represents a Java element that has a certain visibility scope.
VisibilityScopedSource<T> - Interface in org.jboss.forge.roaster.model.source
Represents a Java source element that has a certain visibility scope.

W

WildcardImportResolver - Interface in org.jboss.forge.roaster.spi
Responsible for providing additional import resolution functionality for situations where classes have referenced a package or wild-card import.
A C D E F G H I J M N O P R S T U V W 
Skip navigation links
Forge Roaster - API 2.17.4.Final

Copyright © 2015 JBoss by Red Hat. All rights reserved.