Interface ModuleTypeInfo
- All Superinterfaces:
Annotated, Prototype.Api
- All Known Implementing Classes:
ModuleTypeInfo.BuilderBase.ModuleTypeInfoImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forModuleTypeInfo.static classModuleTypeInfo.BuilderBase<BUILDER extends ModuleTypeInfo.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ModuleTypeInfo>Fluent API builder base forModuleTypeInfo. -
Method Summary
Modifier and TypeMethodDescriptionstatic ModuleTypeInfo.Builderbuilder()Create a new fluent API builder to customize configuration.static ModuleTypeInfo.Builderbuilder(ModuleTypeInfo instance) Create a new fluent API builder from an existing instance.Description, such as javadoc, if available.exports()List of exports directives.booleanisOpen()Whether this is an open module.name()Module name.opens()List of opens directives.The element used to create this instance.default ObjectThe element used to create this instance, orTypeInfo.typeName()if none provided.provides()List of provides directives.requires()List of requires directives.uses()List of uses directives.Methods inherited from interface Annotated
allAnnotations, annotation, annotations, findAnnotation, hasAnnotation, inheritedAnnotationsModifier and TypeMethodDescriptiondefault List<Annotation> List of all annotations - bothAnnotated.annotations()andAnnotated.inheritedAnnotations().default Annotationannotation(TypeName annotationType) Get an annotation on this annotated type.List of declared and known annotations for this element.default Optional<Annotation> findAnnotation(TypeName annotationType) Find an annotation on this annotated type.default booleanhasAnnotation(TypeName annotationType) Check if the annotation exists on this annotated.List of all inherited annotations for this element.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
originatingElementValue
The element used to create this instance, orTypeInfo.typeName()if none provided. The type of the object depends on the environment we are in - it may be anTypeElementin annotation processing, or aClassInfowhen using classpath scanning.- Returns:
- originating element, or the type of this type info
-
name
-
description
-
isOpen
boolean isOpen()Whether this is an open module.- Returns:
- if open
-
requires
-
exports
-
opens
-
uses
-
provides
-
originatingElement
-