/** Get list of all delegators. This amounts to the grammars on the path * to the root of the delegation tree. */ public List<Grammar> getDelegators() { return composite.getDelegators(this); }
/** Get list of all delegators. This amounts to the grammars on the path * to the root of the delegation tree. */ public List<Grammar> getDelegators() { return composite.getDelegators(this); }
/** Get list of all delegators. This amounts to the grammars on the path * to the root of the delegation tree. */ public List<Grammar> getDelegators() { return composite.getDelegators(this); }
/** Get list of all delegators. This amounts to the grammars on the path * to the root of the delegation tree. */ public List<Grammar> getDelegators() { return composite.getDelegators(this); }
/** Get the name of the generated recognizer; may or may not be same * as grammar name. * Recognizer is TParser and TLexer from T if combined, else * just use T regardless of grammar type. */ public String getRecognizerName() { String suffix = ""; List<Grammar> grammarsFromRootToMe = composite.getDelegators(this); //System.out.println("grammarsFromRootToMe="+grammarsFromRootToMe); String qualifiedName = name; if ( grammarsFromRootToMe!=null ) { StringBuilder buf = new StringBuilder(); for (Grammar g : grammarsFromRootToMe) { buf.append(g.name); buf.append('_'); } buf.append(name); qualifiedName = buf.toString(); } if ( type==Grammar.COMBINED || (type==Grammar.LEXER && implicitLexer) ) { suffix = Grammar.grammarTypeToFileNameSuffix[type]; } return qualifiedName+suffix; }
/** Get the name of the generated recognizer; may or may not be same * as grammar name. * Recognizer is TParser and TLexer from T if combined, else * just use T regardless of grammar type. */ public String getRecognizerName() { String suffix = ""; List<Grammar> grammarsFromRootToMe = composite.getDelegators(this); //System.out.println("grammarsFromRootToMe="+grammarsFromRootToMe); String qualifiedName = name; if ( grammarsFromRootToMe!=null ) { StringBuffer buf = new StringBuffer(); for (Grammar g : grammarsFromRootToMe) { buf.append(g.name); buf.append('_'); } buf.append(name); qualifiedName = buf.toString(); } if ( type==Grammar.COMBINED || (type==Grammar.LEXER && implicitLexer) ) { suffix = Grammar.grammarTypeToFileNameSuffix[type]; } return qualifiedName+suffix; }
/** Get the name of the generated recognizer; may or may not be same * as grammar name. * Recognizer is TParser and TLexer from T if combined, else * just use T regardless of grammar type. */ public String getRecognizerName() { String suffix = ""; List<Grammar> grammarsFromRootToMe = composite.getDelegators(this); //System.out.println("grammarsFromRootToMe="+grammarsFromRootToMe); String qualifiedName = name; if ( grammarsFromRootToMe!=null ) { StringBuilder buf = new StringBuilder(); for (Grammar g : grammarsFromRootToMe) { buf.append(g.name); buf.append('_'); } buf.append(name); qualifiedName = buf.toString(); } if ( type==Grammar.COMBINED || (type==Grammar.LEXER && implicitLexer) ) { suffix = Grammar.grammarTypeToFileNameSuffix[type]; } return qualifiedName+suffix; }
/** Get the name of the generated recognizer; may or may not be same * as grammar name. * Recognizer is TParser and TLexer from T if combined, else * just use T regardless of grammar type. */ public String getRecognizerName() { String suffix = ""; List<Grammar> grammarsFromRootToMe = composite.getDelegators(this); //System.out.println("grammarsFromRootToMe="+grammarsFromRootToMe); String qualifiedName = name; if ( grammarsFromRootToMe!=null ) { StringBuffer buf = new StringBuffer(); for (Grammar g : grammarsFromRootToMe) { buf.append(g.name); buf.append('_'); } buf.append(name); qualifiedName = buf.toString(); } if ( type==Grammar.COMBINED || (type==Grammar.LEXER && implicitLexer) ) { suffix = Grammar.grammarTypeToFileNameSuffix[type]; } return qualifiedName+suffix; }