final int getKeywordToken ( String key ) { int tok ; try { Integer itok = ( Integer ) Keywords . getKeyWord ( key ) ; tok = ( null != itok ) ? itok . intValue ( ) : 0 ; } catch ( NullPointerException npe ) { tok = 0 ; } catch ( ClassCastException cce ) { tok = 0 ; } return tok ; }
Given a string return the corresponding keyword token .