Class ReservedWordsBuilder
java.lang.Object
software.amazon.smithy.codegen.core.ReservedWordsBuilder
Builds a 
ReservedWords implementation from explicit
 mappings and from line-delimited files that contain reserved words.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the reserved words.loadCaseInsensitiveWords(URL location) Load a list of case-insensitive, line-delimited reserved words from a file.loadCaseInsensitiveWords(URL location, Function<String, String> escaper) Load a list of case-insensitive, line-delimited reserved words from a file.Load a list of case-sensitive, line-delimited reserved words from a file.Load a list of case-sensitive, line-delimited reserved words from a file.Add a new reserved words.
- 
Constructor Details- 
ReservedWordsBuilderpublic ReservedWordsBuilder()
 
- 
- 
Method Details- 
buildBuilds the reserved words.- Returns:
- Returns the created reserved words implementation.
 
- 
putAdd a new reserved words.- Parameters:
- reservedWord- Reserved word to convert.
- conversion- Word to convert to.
- Returns:
- Returns the builder.
 
- 
loadWordsLoad a list of case-sensitive, line-delimited reserved words from a file.This method will escape words by prefixing them with "_". Use loadWords(URL, Function)to customize how words are escaped.Blank lines and lines that start with # are ignored. - Parameters:
- location- URL of the file to load.
- Returns:
- Returns the builder.
 
- 
loadWordsLoad a list of case-sensitive, line-delimited reserved words from a file.Blank lines and lines that start with # are ignored. - Parameters:
- location- URL of the file to load.
- escaper- Function used to escape reserved words.
- Returns:
- Returns the builder.
 
- 
loadCaseInsensitiveWordsLoad a list of case-insensitive, line-delimited reserved words from a file.This method will escape words by prefixing them with "_". Use loadCaseInsensitiveWords(URL, Function)to customize how words are escaped.Blank lines and lines that start with # are ignored. - Parameters:
- location- URL of the file to load.
- Returns:
- Returns the builder.
 
- 
loadCaseInsensitiveWordsLoad a list of case-insensitive, line-delimited reserved words from a file.Blank lines and lines that start with # are ignored. - Parameters:
- location- URL of the file to load.
- escaper- Function used to escape reserved words.
- Returns:
- Returns the builder.
 
 
-