public static StringBuilder maybeQuoteIdentifier ( String s ) { final EscapeStringResult escapeString = escapeString ( s , ' ' ) ; final StringBuilder result = escapeString . buffer ; final boolean need_quotes = s . isEmpty ( ) || escapeString . needQuotes || KEYWORDS . contains ( s ) || ! IDENTIFIER_MATCHER . test ( s ) ; if ( need_quotes ) { result . insert ( 0 , ' ' ) ; result . append ( ' ' ) ; } return result ; }
Create an identifier configuration element .