public boolean finish ( ) { if ( ! parse ( finishSpace ( ) ) ) return false ; switch ( stateStack . current ( ) ) { case PARSE_ERROR : case LEXICAL_ERROR : case HANDLER_CANCEL : case HANDLER_EXCEPTION : throw new AssertionError ( "exception should be thrown directly from parse()" ) ; case GOT_VALUE : case PARSE_COMPLETE : return true ; default : return flags . contains ( ALLOW_PARTIAL_VALUES ) || parseError ( "premature EOF" ) ; } }
Processes the last token .