@Test public void testWithLanguageSchemeOption() throws Exception { TriggerSpecification triggerSpecification = null; String spec = "AFTER Modify CALL \"Logger.logModifyOperation\" {languageScheme \"Java\"}();"; triggerSpecification = parser.parse( spec ); assertNotNull( triggerSpecification ); assertEquals( triggerSpecification.getActionTime(), ActionTime.AFTER ); assertEquals( triggerSpecification.getLdapOperation(), LdapOperation.MODIFY ); List<SPSpec> spSpecs = triggerSpecification.getSPSpecs(); assertTrue( spSpecs != null ); assertTrue( spSpecs.size() == 1 ); SPSpec theSpec = spSpecs.get( 0 ); assertEquals( theSpec.getName(), "Logger.logModifyOperation" ); assertEquals( theSpec.getOptions().size(), 1 ); assertTrue( theSpec.getOptions().contains( new StoredProcedureLanguageSchemeOption( "Java" ) ) ); assertEquals( theSpec.getParameters().size(), 0 ); }
public synchronized TriggerSpecification parse( String spec ) throws ParseException { TriggerSpecification triggerSpecification; if ( Strings.isEmpty( spec ) ) { return null; } reset( spec ); try { triggerSpecification = this.parser.wrapperEntryPoint(); } catch ( TokenStreamException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } catch ( RecognitionException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, e.getColumn() ); } return triggerSpecification; }
TriggerSpecificationParser { public synchronized TriggerSpecification parse( String spec ) throws ParseException { TriggerSpecification triggerSpecification; if ( Strings.isEmpty( spec ) ) { return null; } reset( spec ); try { triggerSpecification = this.parser.wrapperEntryPoint(); } catch ( TokenStreamException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } catch ( RecognitionException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, e.getColumn() ); } return triggerSpecification; } }
TriggerSpecificationParser { public synchronized TriggerSpecification parse( String spec ) throws ParseException { TriggerSpecification triggerSpecification; if ( Strings.isEmpty( spec ) ) { return null; } reset( spec ); try { triggerSpecification = this.parser.wrapperEntryPoint(); } catch ( TokenStreamException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } catch ( RecognitionException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, e.getColumn() ); } return triggerSpecification; } TriggerSpecificationParser();  TriggerSpecificationParser( NormalizerMappingResolver<Normalizer> resolver ); }
TriggerSpecificationParser { public synchronized TriggerSpecification parse( String spec ) throws ParseException { TriggerSpecification triggerSpecification; if ( Strings.isEmpty( spec ) ) { return null; } reset( spec ); try { triggerSpecification = this.parser.wrapperEntryPoint(); } catch ( TokenStreamException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } catch ( RecognitionException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, e.getColumn() ); } return triggerSpecification; } TriggerSpecificationParser();  TriggerSpecificationParser( NormalizerMappingResolver<Normalizer> resolver ); synchronized TriggerSpecification parse( String spec ); boolean isNormizing(); }
TriggerSpecificationParser { public synchronized TriggerSpecification parse( String spec ) throws ParseException { TriggerSpecification triggerSpecification; if ( Strings.isEmpty( spec ) ) { return null; } reset( spec ); try { triggerSpecification = this.parser.wrapperEntryPoint(); } catch ( TokenStreamException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, 0 ); } catch ( RecognitionException e ) { String msg = I18n.err( I18n.ERR_11002_TRIGGER_SPECIFICATION_PARSER_FAILURE, spec, e.getLocalizedMessage() ); throw new ParseException( msg, e.getColumn() ); } return triggerSpecification; } TriggerSpecificationParser();  TriggerSpecificationParser( NormalizerMappingResolver<Normalizer> resolver ); synchronized TriggerSpecification parse( String spec ); boolean isNormizing();  }