/** * Parses an ACIItem without exhausting the parser. * * @param spec * the specification to be parsed * @throws ParseException * if there are any recognition errors (bad syntax) */ public synchronized void parse( String spec ) throws ParseException { if ( spec == null || spec.trim().equals( "" ) ) { return; } reset( spec ); // reset and initialize the parser / lexer pair try { this.checker.wrapperEntryPoint(); } catch ( TokenStreamException e ) { throw new ParseException( I18n .err( I18n.ERR_04004_PARSER_FAILURE_ACI_ITEM, spec, e.getLocalizedMessage() ), 0 ); } catch ( RecognitionException e ) { throw new ParseException( I18n .err( I18n.ERR_04004_PARSER_FAILURE_ACI_ITEM, spec, e.getLocalizedMessage() ), e.getColumn() ); } }
.err( I18n.ERR_07004_PARSER_FAILURE_ACI_ITEM, spec, e.getLocalizedMessage() ), 0 );
String msg = I18n.err( I18n.ERR_04329, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 );
String msg = I18n.err( I18n.ERR_04329, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 );
throw new ParseException( I18n.err( I18n.ERR_00004, spec, e.getLocalizedMessage() ), 0 );
String msg = I18n.err( I18n.ERR_04333, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 );
/** * Parses an ACIItem without exhausting the parser. * * @param spec * the specification to be parsed * @return the specification bean * @throws ParseException * if there are any recognition errors (bad syntax) */ public synchronized void parse( String spec ) throws ParseException { if ( spec == null || spec.trim().equals( "" ) ) { return; } reset( spec ); // reset and initialize the parser / lexer pair try { this.checker.wrapperEntryPoint(); } catch ( TokenStreamException e ) { throw new ParseException( I18n.err( I18n.ERR_00004, spec, e.getLocalizedMessage() ), 0 ); } catch ( RecognitionException e ) { throw new ParseException( I18n.err( I18n.ERR_00004, spec, e.getLocalizedMessage() ), e.getColumn() ); } return; }
.err( I18n.ERR_07004_PARSER_FAILURE_ACI_ITEM, spec, e.getLocalizedMessage() ), 0 );
String msg = I18n.err( I18n.ERR_04333, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 );
.err( I18n.ERR_07004_PARSER_FAILURE_ACI_ITEM, spec, e.getLocalizedMessage() ), 0 );
.err( I18n.ERR_04004_PARSER_FAILURE_ACI_ITEM, spec, e.getLocalizedMessage() ), 0 );
.err( I18n.ERR_07004_PARSER_FAILURE_ACI_ITEM, spec, e.getLocalizedMessage() ), 0 );
String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() );
String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() );