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
-
Field Summary
Modifier 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
-
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
-