Interface CBTypeDeclarationBuilderType
- All Known Subinterfaces:
CBRecordBuilderType,CBVariantBuilderType
public interface CBTypeDeclarationBuilderType
The base type of type declaration builders.
-
Method Summary
Modifier and TypeMethodDescriptionaddTypeParameter(String name, List<String> documentation) Add a type parameter.findParameter(String name) Find an existing parameter with the given name.referenceParameter(String name) Reference an existing parameter with the given name.voidsetDocumentation(List<String> text) Set the documentation string for the declaration.voidsetExternalName(String externalPackageName, String name) Set the external type of this name
-
Method Details
-
ownerPackage
CBPackageBuilderType ownerPackage()- Returns:
- The package that owns the type
-
reference
CBTypeExpressionType.CBTypeExprNamedType reference()- Returns:
- A reference to this type
-
findParameter
Find an existing parameter with the given name.- Parameters:
name- The parameter name- Returns:
- A parameter
-
referenceParameter
Reference an existing parameter with the given name.- Parameters:
name- The parameter name- Returns:
- A parameter expression
-
addTypeParameter
Add a type parameter.- Parameters:
name- The parameter namedocumentation- The documentation- Returns:
- A type parameter
-
setDocumentation
Set the documentation string for the declaration.- Parameters:
text- The text
-
setExternalName
Set the external type of this name- Parameters:
externalPackageName- The package namename- The type name
-