/** * Creates a normalizing TriggerSpecification parser. */ public TriggerSpecificationParser( NormalizerMappingResolver resolver ) { this.lexer = new ReusableAntlrTriggerSpecificationLexer( new StringReader( "" ) ); this.parser = new ReusableAntlrTriggerSpecificationParser( lexer ); this.parser.setNormalizerMappingResolver( resolver ); this.parser.init(); // this method MUST be called while we cannot do // constructor overloading for ANTLR generated parser this.isNormalizing = true; }
/** * Resets the state of an antlr parser. */ public void resetState() { // no set method for this protected field. this.traceDepth = 0; this.getInputState().reset(); } }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. * * @param * spec the specification to be parsed */ private synchronized void reset( String spec ) { StringReader in = new StringReader( spec ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Creates a TriggerSpecification parser. */ public TriggerSpecificationParser() { this.lexer = new ReusableAntlrTriggerSpecificationLexer( new StringReader( "" ) ); this.parser = new ReusableAntlrTriggerSpecificationParser( lexer ); this.parser.init(); // this method MUST be called while we cannot do // constructor overloading for antlr generated parser this.isNormalizing = false; }
triggerSpecification = this.parser.wrapperEntryPoint();
/** * Creates a TriggerSpecification parser. */ public TriggerSpecificationParser() { this.lexer = new ReusableAntlrTriggerSpecificationLexer( new StringReader( "" ) ); this.parser = new ReusableAntlrTriggerSpecificationParser( lexer ); this.parser.init(); // this method MUST be called while we cannot do // constructor overloading for antlr generated parser this.isNormalizing = false; }
triggerSpecification = this.parser.wrapperEntryPoint();
/** * Creates a normalizing TriggerSpecification parser. * * @param resolver the resolver */ public TriggerSpecificationParser( NormalizerMappingResolver resolver ) { this.lexer = new ReusableAntlrTriggerSpecificationLexer( new StringReader( "" ) ); this.parser = new ReusableAntlrTriggerSpecificationParser( lexer ); this.parser.setNormalizerMappingResolver( resolver ); this.parser.init(); // this method MUST be called while we cannot do // constructor overloading for ANTLR generated parser this.isNormalizing = true; }
/** * Resets the state of an antlr parser. */ public void resetState() { // no set method for this protected field. this.traceDepth = 0; this.getInputState().reset(); } }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. * * @param * spec the specification to be parsed */ private synchronized void reset( String spec ) { StringReader in = new StringReader( spec ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }