Module io.helidon.codegen
Package io.helidon.codegen
Class CodegenEvent.BuilderBase<BUILDER extends CodegenEvent.BuilderBase<BUILDER>>
java.lang.Object
io.helidon.codegen.CodegenEvent.BuilderBase<BUILDER>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builder
- All Implemented Interfaces:
Builder<BUILDER,
,CodegenEvent> Supplier<CodegenEvent>
- Direct Known Subclasses:
CodegenEvent.Builder
- Enclosing interface:
CodegenEvent
public abstract static class CodegenEvent.BuilderBase<BUILDER extends CodegenEvent.BuilderBase<BUILDER>>
extends Object
implements Builder<BUILDER,CodegenEvent>
Fluent API builder base for
CodegenEvent
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdditional information, such as source elements.addObjects
(List<?> objects) Additional information, such as source elements.Clear existing value of this property.from
(CodegenEvent prototype) Update this builder from an existing prototype instance.from
(CodegenEvent.BuilderBase<?> builder) Update this builder from an existing prototype builder instance.level()
Level can be used directly (command line tools), mapped to Maven level (maven plugins), or mapped to diagnostics kind (annotation processing).level
(System.Logger.Level level) Level can be used directly (command line tools), mapped to Maven level (maven plugins), or mapped to diagnostics kind (annotation processing).message()
Message to be delivered to the user.Message to be delivered to the user.objects()
Additional information, such as source elements.Additional information, such as source elements.protected void
Handles providers and decorators.Throwable if available.Throwable if available.toString()
protected void
Validates required properties.
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
level
Level can be used directly (command line tools), mapped to Maven level (maven plugins), or mapped to diagnostics kind (annotation processing).Mapping table:
Level mappings Level Maven log level APT Diagnostic.Kind ERROR error ERROR WARNING warn WARNING INFO info NOTE DEBUG, TRACE debug N/A - only logged to logger - Parameters:
level
- level to use, defaults to INFO- Returns:
- updated builder instance
- See Also:
-
message
Message to be delivered to the user.- Parameters:
message
- the message- Returns:
- updated builder instance
- See Also:
-
clearThrowable
Clear existing value of this property.- Returns:
- updated builder instance
- See Also:
-
throwable
Throwable if available.- Parameters:
throwable
- throwable- Returns:
- updated builder instance
- See Also:
-
objects
Additional information, such as source elements. These may or may not be ignored by the final log destination.Expected supported types:
- APT:
Element
,AnnotationMirror
,AnnotationValue
- Classpath scanning:
ClassInfo
,MethodInfo
etc. - Any environment:
TypeName
,TypeInfo
, orTypedElementInfo
- Parameters:
objects
- list of objects causing this event to happen- Returns:
- updated builder instance
- See Also:
- APT:
-
addObjects
Additional information, such as source elements. These may or may not be ignored by the final log destination.Expected supported types:
- APT:
Element
,AnnotationMirror
,AnnotationValue
- Classpath scanning:
ClassInfo
,MethodInfo
etc. - Any environment:
TypeName
,TypeInfo
, orTypedElementInfo
- Parameters:
objects
- list of objects causing this event to happen- Returns:
- updated builder instance
- See Also:
- APT:
-
addObject
Additional information, such as source elements. These may or may not be ignored by the final log destination.Expected supported types:
- APT:
Element
,AnnotationMirror
,AnnotationValue
- Classpath scanning:
ClassInfo
,MethodInfo
etc. - Any environment:
TypeName
,TypeInfo
, orTypedElementInfo
- Parameters:
object
- list of objects causing this event to happen- Returns:
- updated builder instance
- See Also:
- APT:
-
level
Level can be used directly (command line tools), mapped to Maven level (maven plugins), or mapped to diagnostics kind (annotation processing).Mapping table:
Level mappings Level Maven log level APT Diagnostic.Kind ERROR error ERROR WARNING warn WARNING INFO info NOTE DEBUG, TRACE debug N/A - only logged to logger - Returns:
- the level
-
message
Message to be delivered to the user.- Returns:
- the message
-
throwable
Throwable if available.- Returns:
- the throwable
-
objects
Additional information, such as source elements. These may or may not be ignored by the final log destination.Expected supported types:
- APT:
Element
,AnnotationMirror
,AnnotationValue
- Classpath scanning:
ClassInfo
,MethodInfo
etc. - Any environment:
TypeName
,TypeInfo
, orTypedElementInfo
- Returns:
- the objects
- APT:
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-