public static final class SignatureInformationCollector.Builder extends Object
SignatureInformation
instances. Its usage can be illustrated by:
// Create a builder for creating 'SignatureInformation' instance providing its 'label' and 'isActive' flagSignatureInformation
si =SignatureInformationCollector
.newBuilder("label", true) // add signature parameters .addParameter("param0", false, "param0 documentation") .addParameter("param1", true, "param1 documentation") // set signature documentation .documentation("documentation") // create a new 'SignatureInformation' instance .build();
Modifier and Type | Method and Description |
---|---|
SignatureInformationCollector.Builder |
addParameter(String label,
boolean isActive,
String documentation)
Adds parameter information to this signature.
|
SignatureInformation |
build()
Builds signature information.
|
SignatureInformationCollector.Builder |
documentation(String documentation)
A human-readable string that represents a doc-comment.
|
@NonNull public SignatureInformationCollector.Builder documentation(@NonNull String documentation)
@NonNull public SignatureInformationCollector.Builder addParameter(@NonNull String label, boolean isActive, @NullAllowed String documentation)
label
- label of the parameter informationisActive
- true if the the parameter is activedocumentation
- an optional doc-comment of the parameter@NonNull public SignatureInformation build()