Class ReservedWordSymbolProvider.Escaper

  • Enclosing class:
    ReservedWordSymbolProvider

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String escapeMemberName​(java.lang.String memberName)
      Escapes the given member name if needed.
      Symbol escapeSymbol​(Shape shape, Symbol symbol)
      Escapes the given symbol using the reserved words implementations registered for each component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.lang.String escapeMemberName​(java.lang.String memberName)
        Escapes the given member name if needed.
        Parameters:
        memberName - Member name to escape.
        Returns:
        Returns the possibly escaped member name.