java.lang.Object
io.helidon.codegen.classmodel.ClassBase
io.helidon.codegen.classmodel.ClassModel
Entry point to create class model.
This model contain all needed information for each generated type and handles resulting generation.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Default padding used in the generated type.static final String
Padding token used for identifying extra padding requirement for content formatting.static final String
Type token is used to prepend and append to the fully qualified type names to support import handling.static final String
Pattern in which are type names saved in the content templates. -
Method Summary
Modifier and TypeMethodDescriptionAccess modifier of this component.List of annotations on this component.static ClassModel.Builder
builder()
Create newClassModel.Builder
instance.Description (javadoc) of this component.name()
Name of this component.toString()
typeName()
Type name of this class.void
Write created type model.void
Write created type model.Methods inherited from class io.helidon.codegen.classmodel.ClassBase
constructors, fields, innerClasses, interfaceTypeNames, isAbstract, isFinal, isStatic, kind, methods, superTypeName
-
Field Details
-
PADDING_TOKEN
Padding token used for identifying extra padding requirement for content formatting.- See Also:
-
TYPE_TOKEN
Type token is used to prepend and append to the fully qualified type names to support import handling.- See Also:
-
TYPE_TOKEN_PATTERN
Pattern in which are type names saved in the content templates.- See Also:
-
DEFAULT_PADDING
Default padding used in the generated type.- See Also:
-
-
Method Details
-
builder
Create newClassModel.Builder
instance.- Returns:
- new builder instance
-
write
Write created type model. Default paddingDEFAULT_PADDING
is used.- Parameters:
writer
- writer to be used- Throws:
IOException
- write operation failure
-
write
Write created type model.- Parameters:
writer
- writer to be usedpadding
- padding to be used- Throws:
IOException
- write operation failure
-
typeName
Type name of this class.- Returns:
- type name
-
toString
-
annotations
List of annotations on this component.- Returns:
- annotations
-
name
Name of this component.- Returns:
- component name
-
accessModifier
Access modifier of this component.- Returns:
- access modifier
-
description
Description (javadoc) of this component.- Returns:
- description lines
-