private void parsePriority ( ) throws Exception { lookahead = st . nextToken ( ) ; if ( lookahead == ' ' ) { if ( priority == null ) { String pr = st . sval ; if ( pr . toLowerCase ( ) . equals ( "grant" ) ) { priority = Priority . GRANT ; } else { if ( pr . toLowerCase ( ) . equals ( "deny" ) ) { priority = Priority . DENY ; } else { throw new Exception ( "ER035: grant or deny priority expected." ) ; } } } } else { throw new Exception ( "ER036: quotes expected after priority keyword." ) ; } lookahead = st . nextToken ( ) ; if ( lookahead == ' ' ) { return ; } else { throw new Exception ( "ER037: [;] expected at the end of priority entry." ) ; } }
Private method for parsing priority entry .