Class ReservedWordSymbolProvider.Escaper
java.lang.Object
software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Escaper
- Enclosing class:
- ReservedWordSymbolProvider
Uses to manually escape
Symbol
s and member names.-
Method Summary
Modifier and TypeMethodDescriptionescapeMemberName
(String memberName) Escapes the given member name if needed.escapeSymbol
(Shape shape, Symbol symbol) Escapes the given symbol using the reserved words implementations registered for each component.
-
Method Details
-
escapeSymbol
Escapes the given symbol using the reserved words implementations registered for each component.- Parameters:
shape
- Shape being turned into aSymbol
.symbol
-Symbol
to escape.- Returns:
- Returns the escaped
Symbol
.
-
escapeMemberName
Escapes the given member name if needed.- Parameters:
memberName
- Member name to escape.- Returns:
- Returns the possibly escaped member name.
-