Package software.amazon.smithy.utils
Interface CodeSection
- All Known Implementing Classes:
 AuthSection,BoundOperationSection,BoundOperationsSection,BoundResourceSection,BoundResourcesSection,ClassSection,ConfSection,EnumVariantSection,ErrorsSection,ExampleSection,ExamplesSection,GetterSection,IndexSection,JavaDocSection,LifecycleOperationSection,LifecycleSection,MakefileSection,MemberSection,ProtocolSection,ProtocolsSection,RequirementsSection,ShapeDetailsSection,ShapeMembersSection,ShapeSection,ShapeSubheadingSection,WindowsMakeSection
public interface CodeSection
Interface used for strongly typed 
AbstractCodeWriter section values.- 
Method Summary
Modifier and TypeMethodDescriptionstatic CodeSectionCreates a CodeSection that returns the givensectionName.default StringGets 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 whensectionNameis called on the created CodeSection.- Returns:
 - Returns CodeSection that uses the provided name.
 
 
 -