Uses of Interface
org.jboss.forge.roaster.model.JavaType
-
Packages that use JavaType 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 -
-
Uses of JavaType in org.jboss.forge.roaster
Methods in org.jboss.forge.roaster with type parameters of type JavaType Modifier and Type Method Description static <T extends JavaType<?>>
TRoaster. parse(java.lang.Class<T> type, char[] data)Read the given character array and parse its data into a newJavaTypeinstance of the given type.static <T extends JavaType<?>>
TRoaster. parse(java.lang.Class<T> type, java.io.File file)Read the givenFileand parse its data into a newJavaTypeinstance of the given type.static <T extends JavaType<?>>
TRoaster. parse(java.lang.Class<T> type, java.io.InputStream stream)Read the givenInputStreamand parse its data into a newJavaTypeinstance of the given type.static <T extends JavaType<?>>
TRoaster. parse(java.lang.Class<T> type, java.lang.String data)Read the given string and parse its data into a newJavaTypeinstance of the given type.static <T extends JavaType<?>>
TRoaster. parse(java.lang.Class<T> type, java.net.URL url)Read the givenURLand parse its data into a newJavaTypeinstance of the given type.Methods in org.jboss.forge.roaster that return JavaType Modifier and Type Method Description static JavaType<?>Roaster. parse(char[] data)Parse the given character array into a newJavaTypeinstance.static JavaType<?>Roaster. parse(java.io.File file)Open the givenFile, parsing its contents into a newJavaTypeinstance.static JavaType<?>Roaster. parse(java.io.InputStream stream)Read the givenInputStreamand parse the data into a newJavaTypeinstance.static JavaType<?>Roaster. parse(java.lang.String data)Parse the given String data into a newJavaTypeinstance.static JavaType<?>Roaster. parse(java.net.URL url)Parse the givenURLdata into a newJavaTypeinstance. -
Uses of JavaType in org.jboss.forge.roaster.model
Classes in org.jboss.forge.roaster.model with type parameters of type JavaType Modifier and Type Interface Description interfaceAnnotation<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).interfaceField<O extends JavaType<O>>interfaceFieldHolder<O extends JavaType<O>>Represents aJavaTypethat may contain field definitions.interfaceGenericCapable<O extends JavaType<O>>Represents a Java element that may define type variables.interfaceJavaType<T extends JavaType<T>>Represents a Java type.interfaceMember<O extends JavaType<O>>Represents aJavaTypemember.interfaceMemberHolder<O extends JavaType<O>>Represents aJavaTypethat may declare fields or methods.interfaceMethod<O extends JavaType<O>,T extends Method<O,T>>Represents a Java Method.interfaceMethodHolder<O extends JavaType<O>>Represents aJavaTypethat may declare methods.interfaceParameter<O extends JavaType<O>>Represents a parameter of aMethod.interfaceProperty<O extends JavaType<O>>APropertyis a convenience construct depicting a simple Java bean property.interfacePropertyHolder<O extends JavaType<O>>Represents aJavaTypethat may contain property definitions.interfaceType<O extends JavaType<O>>interfaceTypeHolder<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.model Modifier and Type Interface Description static interfaceEnumConstant.ReadBody<O extends EnumConstant.ReadBody<O>>Represents the anonymous subclass "body" of aEnumConstant.interfaceJavaAnnotation<O extends JavaAnnotation<O>>Represents a Java@interfaceannotation type.interfaceJavaClass<O extends JavaClass<O>>Represents a Javaclasstype.interfaceJavaEnum<O extends JavaEnum<O>>Represents a Javaenumtype.interfaceJavaInterface<O extends JavaInterface<O>>Represents a Javainterfacetype.interfaceJavaPackageInfo<O extends JavaPackageInfo<O>>Represents a Java Package Info descriptor.Methods in org.jboss.forge.roaster.model with type parameters of type JavaType Modifier and Type Method Description <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 JavaType Modifier and Type Method Description JavaType<?>JavaType. getEnclosingType()Return the enclosingJavaTypetype in which this class is defined.JavaType<?>TypeHolder. getNestedType(java.lang.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 JavaType Modifier and Type Method Description java.util.List<? extends JavaType<?>>TypeHolder. getNestedTypes()java.util.List<JavaType<?>>JavaUnit. getTopLevelTypes()Methods in org.jboss.forge.roaster.model with parameters of type JavaType Modifier and Type Method Description booleanTypeHolder. 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 JavaType Modifier and Type Interface Description interfaceAnnotationSource<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.source Modifier and Type Interface Description static interfaceEnumConstantSource.BodyRepresents the anonymous subclass "body" of anEnumConstantSource.interfaceJavaAnnotationSourceRepresents a Java@interfaceannotation source file as an in-memory modifiable element.interfaceJavaClassSourceRepresents a Javaclasssource file as an in-memory modifiable element.interfaceJavaEnumSourceRepresents a Javaenumsource file as an in-memory modifiable element.interfaceJavaInterfaceSourceRepresents a Javainterfacesource file as an in-memory modifiable element.interfaceJavaPackageInfoSourceRepresents a Java Package Info descriptor source file.interfaceJavaSource<T extends JavaSource<T>>Represents a Java type in source form.Methods in org.jboss.forge.roaster.model.source with type parameters of type JavaType Modifier and Type Method Description <T extends JavaType<?>>
ImportImporter. addImport(T type)Add an import for the givenJavaTypetype.<T extends JavaType<?>>
ImportImporter. getImport(T type)<T extends JavaType<T>>
booleanImporter. hasImport(T type)<T extends JavaType<?>>
OImporter. removeImport(T type)Methods in org.jboss.forge.roaster.model.source with parameters of type JavaType Modifier and Type Method Description ParameterSource<O>MethodSource. addParameter(JavaType<?> type, java.lang.String name)Add a parameter with the specifiedJavaTypetype and name to this methodPropertySource<O>PropertyHolderSource. addProperty(JavaType<?> type, java.lang.String name)Add a newPropertydeclaration to thisPropertyHolderSourceinstance.MethodSource<O>MethodSource. removeParameter(JavaType<?> type, java.lang.String name)Remove a parameter with the specifiedJavaTypetype and name to this methodTypeVariableSource<O>TypeVariableSource. setBounds(JavaType<?>... bounds)Set the bounds of this type variable.MethodSource<O>MethodSource. setReturnType(JavaType<?> type)Set thisMethodto return the given type.OExtendableSource. setSuperType(JavaType<?> type)Set this type's super class.AnnotationElementSourceAnnotationElementSource. setType(JavaType<?> entity)Set the type of thisAnnotationElementto the givenJavaSourcetype.FieldSource<O>FieldSource. setType(JavaType<?> entity)Set the type of thisFieldto the givenJavaSourcetype.PropertySource<O>PropertySource. setType(JavaType<?> entity) -
Uses of JavaType in org.jboss.forge.roaster.model.util
Methods in org.jboss.forge.roaster.model.util with type parameters of type JavaType Modifier and Type Method Description static <O extends JavaType<O>>
java.lang.StringTypes. rebuildGenericNameWithArrays(java.lang.String resolvedTypeName, Type<O> type)Methods in org.jboss.forge.roaster.model.util with parameters of type JavaType Modifier and Type Method Description static 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 Modifier and Type Method Description java.lang.StringWildcardImportResolver. resolve(JavaType<?> source, java.lang.String type)Resolves the wildcard type from the specified source
-