Class ReservedWordSymbolProvider.Escaper

java.lang.Object
software.amazon.smithy.codegen.core.ReservedWordSymbolProvider.Escaper
Enclosing class:
ReservedWordSymbolProvider

public static final class ReservedWordSymbolProvider.Escaper extends Object
Uses to manually escape Symbols and member names.
  • Method Details

    • escapeSymbol

      public Symbol escapeSymbol(Shape shape, Symbol symbol)
      Escapes the given symbol using the reserved words implementations registered for each component.
      Parameters:
      shape - Shape being turned into a Symbol.
      symbol - Symbol to escape.
      Returns:
      Returns the escaped Symbol.
    • escapeMemberName

      public String escapeMemberName(String memberName)
      Escapes the given member name if needed.
      Parameters:
      memberName - Member name to escape.
      Returns:
      Returns the possibly escaped member name.