Package software.amazon.smithy.utils
Interface CodeSection
-
public interface CodeSectionInterface used for strongly typedAbstractCodeWritersection values.
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static CodeSectionforName(java.lang.String sectionName)Creates a CodeSection that returns the givensectionName.default java.lang.StringsectionName()Gets the name of the section.
-
-
-
Method Detail
-
sectionName
default java.lang.String 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
static CodeSection forName(java.lang.String sectionName)
Creates a CodeSection that returns the givensectionName.- Parameters:
sectionName- Section name to provide whensectionNameis called on the created CodeSection.- Returns:
- Returns CodeSection that uses the provided name.
-
-