- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
GeneratedMethod.BuilderBase.GeneratedMethodImpl
A method to be generated.
Rules for referenced static custom methods:
- The first parameter must be the Prototype type for custom prototype methods
- The first parameter must be the BuilderBase type for custom builder methods
- Custom factory methods are simply referenced
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forGeneratedMethod.static classGeneratedMethod.BuilderBase<BUILDER extends GeneratedMethod.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends GeneratedMethod> Fluent API builder base forGeneratedMethod. -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratedMethod.Builderbuilder()Create a new fluent API builder to customize configuration.static GeneratedMethod.Builderbuilder(GeneratedMethod instance) Create a new fluent API builder from an existing instance.Generator for the method content.javadoc()Javadoc for this method.method()Definition of this method, including annotations (such asOverride).
-
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
-
method
TypedElementInfo method()Definition of this method, including annotations (such asOverride).- Returns:
- method definition
-
contentBuilder
Consumer<ContentBuilder<?>> contentBuilder()Generator for the method content.- Returns:
- content builder consumer
-
javadoc
Javadoc for this method. We intentionally ignore documentation onmethod(), as it may be complicated to update it.If not configured, no javadoc will be generated (useful for methods that override documented interface methods).
- Returns:
- javadoc for this method if defined
-