/** * Creates a SubtreeSpecification using any of the default paramters that * may have been modified from their defaults. * * @return the newly created subtree specification */ public SubtreeSpecification getSubtreeSpecification() { return new BaseSubtreeSpecification( this.base, this.minBaseDistance, this.maxBaseDistance, this.chopAfter, this.chopBefore, this.filter ); }
/** * Creates a ReusableAntlrSubtreeSpecificationLexer instance. * * @param in * the input to the lexer */ public ReusableAntlrSubtreeSpecificationCheckerLexer( Reader in ) { super( in ); savedCaseSensitive = getCaseSensitive(); savedCaseSensitiveLiterals = getCaseSensitiveLiterals(); }
/** * Creates a ReusableAntlrSubtreeSpecificationLexer instance. * * @param in * the input to the lexer */ public ReusableAntlrSubtreeSpecificationLexer( Reader in ) { super( in ); savedCaseSensitive = getCaseSensitive(); savedCaseSensitiveLiterals = getCaseSensitiveLiterals(); }
/** * Creates a normalizing subtree specification parser. * * @param schemaManager The SchemaManager */ public SubtreeSpecificationChecker( SchemaManager schemaManager ) { // place holder for the first input StringReader in = new StringReader( "" ); this.lexer = new ReusableAntlrSubtreeSpecificationCheckerLexer( in ); this.parser = new ReusableAntlrSubtreeSpecificationChecker( lexer ); // this method MUST be called while we cannot do // constructor overloading for antlr generated parser this.parser.init( schemaManager ); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. param spec the specification to be parsed * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Creates an instance of SubtreeSpecificationSyntaxChecker * * @param oid The OID to use for this SyntaxChecker * @param schemaManager the SchemaManager instance */ private SubtreeSpecificationSyntaxChecker( String oid, SchemaManager schemaManager ) { super( oid ); subtreeSpecificationChecker = new SubtreeSpecificationChecker( schemaManager ); }
/** * Creates a normalizing subtree specification parser. * * @param schemaManager The SchemaManager */ public SubtreeSpecificationChecker( SchemaManager schemaManager ) { // place holder for the first input StringReader in = new StringReader( "" ); this.lexer = new ReusableAntlrSubtreeSpecificationCheckerLexer( in ); this.parser = new ReusableAntlrSubtreeSpecificationChecker( lexer ); // this method MUST be called while we cannot do // constructor overloading for antlr generated parser this.parser.init( schemaManager ); }
/** * Creates a ReusableAntlrSubtreeSpecificationLexer instance. * * @param in * the input to the lexer */ public ReusableAntlrSubtreeSpecificationCheckerLexer( Reader in ) { super( in ); savedCaseSensitive = getCaseSensitive(); savedCaseSensitiveLiterals = getCaseSensitiveLiterals(); }
/** * Creates a ReusableAntlrSubtreeSpecificationLexer instance. * * @param in * the input to the lexer */ public ReusableAntlrSubtreeSpecificationLexer( Reader in ) { super( in ); savedCaseSensitive = getCaseSensitive(); savedCaseSensitiveLiterals = getCaseSensitiveLiterals(); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. param spec the specification to be parsed * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Creates a SubtreeSpecification using any of the default paramters that * may have been modified from their defaults. * * @return the newly created subtree specification */ public SubtreeSpecification getSubtreeSpecification() { return new BaseSubtreeSpecification( this.base, this.minBaseDistance, this.maxBaseDistance, this.chopAfter, this.chopBefore, this.filter ); }
/** * Creates an instance of SubtreeSpecificationSyntaxChecker * * @param oid The OID to use for this SyntaxChecker * @param schemaManager the SchemaManager instance */ private SubtreeSpecificationSyntaxChecker( String oid, SchemaManager schemaManager ) { super( oid ); subtreeSpecificationChecker = new SubtreeSpecificationChecker( schemaManager ); }
/** * Creates a ReusableAntlrSubtreeSpecificationLexer instance. * * @param in * the input to the lexer */ public ReusableAntlrSubtreeSpecificationCheckerLexer( Reader in ) { super( in ); savedCaseSensitive = getCaseSensitive(); savedCaseSensitiveLiterals = getCaseSensitiveLiterals(); }
/** * Creates a ReusableAntlrSubtreeSpecificationLexer instance. * * @param in * the input to the lexer */ public ReusableAntlrSubtreeSpecificationLexer( Reader in ) { super( in ); savedCaseSensitive = getCaseSensitive(); savedCaseSensitiveLiterals = getCaseSensitiveLiterals(); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Initializes the plumbing by creating a pipe and coupling the parser/lexer * pair with it. param spec the specification to be parsed * * @param spec The specification to parse */ private synchronized void reset( String spec ) { // append end of input token StringReader in = new StringReader( spec + "end" ); this.lexer.prepareNextInput( in ); this.parser.resetState(); }
/** * Creates a SubtreeSpecification using any of the default paramters that * may have been modified from their defaults. * * @return the newly created subtree specification */ public SubtreeSpecification getSubtreeSpecification() { return new BaseSubtreeSpecification( this.base, this.minBaseDistance, this.maxBaseDistance, this.chopAfter, this.chopBefore, this.filter ); }
/** * Creates an instance of SubtreeSpecificationSyntaxChecker * * @param oid The OID to use for this SyntaxChecker * @param schemaManager the SchemaManager instance */ private SubtreeSpecificationSyntaxChecker( String oid, SchemaManager schemaManager ) { super( oid ); subtreeSpecificationChecker = new SubtreeSpecificationChecker( schemaManager ); }