Package software.amazon.smithy.utils
Interface CodeSection
public interface CodeSection
Interface used for strongly typed
AbstractCodeWriter
section values.-
Method Summary
Modifier and TypeMethodDescriptionstatic CodeSection
Creates a CodeSection that returns the givensectionName
.default String
Gets the name of the section.
-
Method Details
-
sectionName
Gets the name of the section.This class will return the canonical class of the implementing class by default.
- Returns:
- Returns the section name.
-
forName
Creates a CodeSection that returns the givensectionName
.- Parameters:
sectionName
- Section name to provide whensectionName
is called on the created CodeSection.- Returns:
- Returns CodeSection that uses the provided name.
-