Uses of Interface
org.jboss.forge.roaster.model.JavaType
Packages that use JavaType
Package
Description
-
Uses of JavaType in org.jboss.forge.roaster
Methods in org.jboss.forge.roaster with type parameters of type JavaTypeModifier and TypeMethodDescriptionstatic <T extends JavaType<?>>
TRead the given character array and parse its data into a newJavaTypeinstance of the given type.static <T extends JavaType<?>>
Tstatic <T extends JavaType<?>>
TRoaster.parse(Class<T> type, InputStream stream) Read the givenInputStreamand parse its data into a newJavaTypeinstance of the given type.static <T extends JavaType<?>>
TRead the given string and parse its data into a newJavaTypeinstance of the given type.static <T extends JavaType<?>>
TMethods in org.jboss.forge.roaster that return JavaTypeModifier and TypeMethodDescriptionstatic JavaType<?>Roaster.parse(char[] data) Parse the given character array into a newJavaTypeinstance.static JavaType<?>static JavaType<?>Roaster.parse(InputStream stream) Read the givenInputStreamand parse the data into a newJavaTypeinstance.static JavaType<?>Parse the given String data into a newJavaTypeinstance.static JavaType<?> -
Uses of JavaType in org.jboss.forge.roaster.model
Classes in org.jboss.forge.roaster.model with type parameters of type JavaTypeModifier and TypeInterfaceDescriptioninterfaceAnnotation<O extends JavaType<O>>Represents an annotation on a Java element.interfaceAnnotationTarget<O extends JavaType<O>>Represents a Java element that may carry annotations.interfaceExtendable<O extends JavaType<O>>Represents aJavaTypethat can extend other types (Java inheritance and interfaces).interfaceinterfaceFieldHolder<O extends JavaType<O>>Represents aJavaTypethat may contain field definitions.interfaceGenericCapable<O extends JavaType<O>>Represents a Java element that may define type variables.interfaceJavaRecordComponent<O extends JavaType<O>>Represents a Record component in aJavaRecord.interfaceRepresents a Java type.interfaceRepresents aJavaTypemember.interfaceMemberHolder<O extends JavaType<O>>Represents aJavaTypethat may declare fields or methods.interfaceRepresents a Java Method.interfaceMethodHolder<O extends JavaType<O>>Represents aJavaTypethat may declare methods.interfaceRepresents a parameter of aMethod.interfaceAPropertyis a convenience construct depicting a simple Java bean property.interfacePropertyHolder<O extends JavaType<O>>Represents aJavaTypethat may contain property definitions.interfaceinterfaceTypeHolder<O extends JavaType<O>>Represents aJavaTypethat may declare types.interfaceTypeVariable<O extends JavaType<O>>Represents a type variable of aGenericCapableJavaType.Subinterfaces of JavaType in org.jboss.forge.roaster.modelModifier and TypeInterfaceDescriptionstatic interfaceEnumConstant.ReadBody<O extends EnumConstant.ReadBody<O>>Represents the anonymous subclass "body" of aEnumConstant.interfaceJavaAnnotation<O extends JavaAnnotation<O>>Represents a Java@interfaceannotation type.interfaceRepresents a Javaclasstype.interfaceRepresents a Javaenumtype.interfaceJavaInterface<O extends JavaInterface<O>>Represents a Javainterfacetype.interfaceJavaPackageInfo<O extends JavaPackageInfo<O>>Represents a Java Package Info descriptor.interfaceJavaRecord<O extends JavaRecord<O>>Represents a Record class (available as a preview feature in JDK 14).Methods in org.jboss.forge.roaster.model with type parameters of type JavaTypeModifier and TypeMethodDescription<T extends JavaType<?>>
TJavaUnit.getGoverningType()A type in the source file governs the declaration environment such as 'package' and 'import' information.Methods in org.jboss.forge.roaster.model that return JavaTypeModifier and TypeMethodDescriptionJavaType<?>JavaType.getEnclosingType()Return the enclosingJavaTypetype in which this class is defined.JavaType<?>TypeHolder.getNestedType(String name) Get theJavaTypewith the given name and return it, otherwise, return null.Methods in org.jboss.forge.roaster.model that return types with arguments of type JavaTypeMethods in org.jboss.forge.roaster.model with parameters of type JavaTypeModifier and TypeMethodDescriptionbooleanTypeHolder.hasNestedType(JavaType<?> type) Return whether or not thisTypeHolderdeclares the givenJavaTypeinstance. -
Uses of JavaType in org.jboss.forge.roaster.model.source
Classes in org.jboss.forge.roaster.model.source with type parameters of type JavaTypeModifier and TypeInterfaceDescriptioninterfaceAnnotationSource<O extends JavaType<O>>Represents an annotation on some Java source element.interfaceExtendableSource<O extends JavaType<O>>Represents aJavaSourcethat can extend other types (Java inheritance and interfaces).Subinterfaces of JavaType in org.jboss.forge.roaster.model.sourceModifier and TypeInterfaceDescriptionstatic interfaceRepresents the anonymous subclass "body" of anEnumConstantSource.interfaceRepresents a Java@interfaceannotation source file as an in-memory modifiable element.interfaceRepresents a Javaclasssource file as an in-memory modifiable element.interfaceRepresents a Javaenumsource file as an in-memory modifiable element.interfaceRepresents a Javainterfacesource file as an in-memory modifiable element.interfaceRepresents a Java Package Info descriptor source file.interfaceinterfaceJavaSource<T extends JavaSource<T>>Represents a Java type in source form.Methods in org.jboss.forge.roaster.model.source with type parameters of type JavaTypeModifier and TypeMethodDescriptionImporter.addImport(T type) Add an import for the givenJavaTypetype.Importer.getImport(T type) <T extends JavaType<T>>
booleanImporter.hasImport(T type) Importer.removeImport(T type) Methods in org.jboss.forge.roaster.model.source with parameters of type JavaTypeModifier and TypeMethodDescriptionMethodSource.addParameter(JavaType<?> type, String name) Add a parameter with the specifiedJavaTypetype and name to this methodPropertyHolderSource.addProperty(JavaType<?> type, String name) Add a newPropertydeclaration to thisPropertyHolderSourceinstance.MethodSource.removeParameter(JavaType<?> type, String name) Remove a parameter with the specifiedJavaTypetype and name to this methodSet the bounds of this type variable.MethodSource.setReturnType(JavaType<?> type) Set thisMethodto return the given type.ExtendableSource.setSuperType(JavaType<?> type) Set this type's super class.Set the type of thisAnnotationElementto the givenJavaSource<?>type.Set the type of thisFieldto the givenJavaSource<?>type. -
Uses of JavaType in org.jboss.forge.roaster.model.util
Methods in org.jboss.forge.roaster.model.util with type parameters of type JavaTypeModifier and TypeMethodDescriptionTypes.rebuildGenericNameWithArrays(String resolvedTypeName, Type<O> type) Methods in org.jboss.forge.roaster.model.util with parameters of type JavaTypeModifier and TypeMethodDescriptionstatic JavaClassSourceDesignPatterns.createDecorator(JavaType<?> javaSource) Creates a class based on the Decorator design pattern. -
Uses of JavaType in org.jboss.forge.roaster.spi
Methods in org.jboss.forge.roaster.spi with parameters of type JavaType