question: protected void switchState ( char testChar ) throws FBSQLParseException { if ( Character . isWhitespace ( testChar ) && ! isInState ( LITERAL_STATE ) ) { setState ( SPACE_STATE ) ; return ; } switch ( testChar ) { case '\'' : if ( isInState ( NORMAL_STATE ) ) setState ( LITERAL_STATE ) ; else if ( isInState ( LITERAL_STATE ) ) setState ( NORMAL_STATE ) ; break ; case ',' : if ( ! isInState ( LITERAL_STATE ) && ! isInState ( BRACE_STATE ) ) setState ( COMMA_STATE ) ; break ; case '(' : case ')' : if ( ! isInState ( LITERAL_STATE ) ) setState ( BRACE_STATE ) ; break ; case '{' : case '}' : if ( ! isInState ( LITERAL_STATE ) ) setState ( CURLY_BRACE_STATE ) ; break ; default : if ( ! isInState ( LITERAL_STATE ) && ! isInState ( BRACE_STATE ) ) setState ( NORMAL_STATE ) ; } }
target:  Test the character to be the state switching character and switches the state if necessary.