/** Get list of all delegates from all grammars directly or indirectly * imported into this grammar. */ public List<Grammar> getDelegates() { return composite.getDelegates(this); }
/** Get list of all delegates from all grammars directly or indirectly * imported into this grammar. */ public List<Grammar> getDelegates() { return composite.getDelegates(this); }
/** Get list of all delegates from all grammars directly or indirectly * imported into this grammar. */ public List<Grammar> getDelegates() { return composite.getDelegates(this); }
/** Get list of all delegates from all grammars directly or indirectly * imported into this grammar. */ public List<Grammar> getDelegates() { return composite.getDelegates(this); }
public List<String> getDelegateNames() { // compute delegates:{Grammar g | return g.name;} List<String> names = new ArrayList<String>(); List<Grammar> delegates = composite.getDelegates(this); if ( delegates!=null ) { for (Grammar g : delegates) { names.add(g.name); } } return names; }
public List<String> getDelegateNames() { // compute delegates:{Grammar g | return g.name;} List<String> names = new ArrayList<String>(); List<Grammar> delegates = composite.getDelegates(this); if ( delegates!=null ) { for (Grammar g : delegates) { names.add(g.name); } } return names; }
public List<String> getDelegateNames() { // compute delegates:{Grammar g | return g.name;} List<String> names = new ArrayList<String>(); List<Grammar> delegates = composite.getDelegates(this); if ( delegates!=null ) { for (Grammar g : delegates) { names.add(g.name); } } return names; }
public List<String> getDelegateNames() { // compute delegates:{Grammar g | return g.name;} List<String> names = new ArrayList<String>(); List<Grammar> delegates = composite.getDelegates(this); if ( delegates!=null ) { for (Grammar g : delegates) { names.add(g.name); } } return names; }
/** Get delegates below direct delegates of g */ public List<Grammar> getIndirectDelegates(Grammar g) { List<Grammar> direct = getDirectDelegates(g); List<Grammar> delegates = getDelegates(g); if ( direct!=null ) { delegates.removeAll(direct); } return delegates; }
/** Get delegates below direct delegates of g */ public List<Grammar> getIndirectDelegates(Grammar g) { List<Grammar> direct = getDirectDelegates(g); List<Grammar> delegates = getDelegates(g); if ( direct!=null ) { delegates.removeAll(direct); } return delegates; }
/** Get delegates below direct delegates of g */ public List<Grammar> getIndirectDelegates(Grammar g) { List<Grammar> direct = getDirectDelegates(g); List<Grammar> delegates = getDelegates(g); delegates.removeAll(direct); return delegates; }
/** Get delegates below direct delegates of g */ public List<Grammar> getIndirectDelegates(Grammar g) { List<Grammar> direct = getDirectDelegates(g); List<Grammar> delegates = getDelegates(g); if(direct != null) delegates.removeAll(direct); return delegates; }
@Override public String toString() { StringBuilder buf = new StringBuilder(); stats(root, buf); CompositeGrammar composite = root.composite; for (Grammar g : composite.getDelegates(root)) { stats(g, buf); } return buf.toString(); }
public String toString() { StringBuilder buf = new StringBuilder(); stats(root, buf); CompositeGrammar composite = root.composite; for (Grammar g : composite.getDelegates(root)) { stats(g, buf); } return buf.toString(); }
@Override public String toString() { StringBuilder buf = new StringBuilder(); stats(root, buf); CompositeGrammar composite = root.composite; for (Grammar g : composite.getDelegates(root)) { stats(g, buf); } return buf.toString(); }
/** * Return a list of File objects that name files ANTLR will read * to process T.g; This can be .tokens files if the grammar uses the tokenVocab option * as well as any imported grammar files. */ public List<File> getDependenciesFileList() { // Find all the things other than imported grammars List<File> files = getNonImportDependenciesFileList(); // Handle imported grammars List<Grammar> imports = grammar.composite.getDelegates(grammar.composite.getRootGrammar()); for (Grammar g : imports) { String libdir = tool.getLibraryDirectory(); String fileName = groomQualifiedFileName(libdir, g.fileName); files.add(new File(fileName)); } if (files.isEmpty()) { return null; } return files; }
/** * Return a list of File objects that name files ANTLR will read * to process T.g; This can be .tokens files if the grammar uses the tokenVocab option * as well as any imported grammar files. */ public List<File> getDependenciesFileList() { // Find all the things other than imported grammars List<File> files = getNonImportDependenciesFileList(); // Handle imported grammars List<Grammar> imports = grammar.composite.getDelegates(grammar.composite.getRootGrammar()); for (Grammar g : imports) { String libdir = tool.getLibraryDirectory(); String fileName = groomQualifiedFileName(libdir, g.fileName); files.add(new File(fileName)); } if (files.isEmpty()) { return null; } return files; }
/** * Return a list of File objects that name files ANTLR will read * to process T.g; This can be .tokens files if the grammar uses the tokenVocab option * as well as any imported grammar files. */ public List<File> getDependenciesFileList() { // Find all the things other than imported grammars List<File> files = getNonImportDependenciesFileList(); // Handle imported grammars List<Grammar> imports = grammar.composite.getDelegates(grammar.composite.getRootGrammar()); for (Grammar g : imports) { String libdir = tool.getLibraryDirectory(); String fileName = groomQualifiedFileName(libdir, g.fileName); files.add(new File(fileName)); } if (files.size() == 0) { return null; } return files; }
/** * Return a list of File objects that name files ANTLR will read * to process T.g; This can be .tokens files if the grammar uses the tokenVocab option * as well as any imported grammar files. */ public List<File> getDependenciesFileList() { // Find all the things other than imported grammars List<File> files = getNonImportDependenciesFileList(); // Handle imported grammars List<Grammar> imports = grammar.composite.getDelegates(grammar.composite.getRootGrammar()); for (Grammar g : imports) { String libdir = tool.getLibraryDirectory(); String fileName = groomQualifiedFileName(libdir, g.fileName); files.add(new File(fileName)); } if (files.size() == 0) { return null; } return files; }
grammar.composite.getDelegates(grammar.composite.getRootGrammar()); for (Grammar g : imports) { outputDir = tool.getOutputDirectory(g.getFileName());