public AbstractLexer getLexer() { return getAbstractParser().getLexer(); }
public AbstractLexer getLexer() { return getAbstractParser().getLexer(); }
/** * Obtains the text from which the specified CST <code>node</code> was * parsed. * * @param node * a concrete syntax node * * @return its text */ public String computeInputString(CSTNode node) { return getAbstractParser().computeInputString(node.getStartOffset(), node.getEndOffset()); }
/** * Obtains the text from which the specified CST <code>node</code> was * parsed. * * @param node * a concrete syntax node * * @return its text */ public String computeInputString(CSTNode node) { return getAbstractParser().computeInputString(node.getStartOffset(), node.getEndOffset()); }
/** * Define the input text by reading from a reader. * * @param reader * providing the source text * @param fileName * the associated finleName of the input, or <code>null</code> if none. * @throws IOException * if reading fails * @since 3.0 */ public void reset(Reader reader, String fileName) throws IOException { AbstractLexer lexer = getLexer(); lexer.reset(reader, fileName); AbstractParser parser = getAbstractParser(); if (parser.getIPrsStream() == null) { parser.reset(lexer.getILexStream()); } }
/** * Define the input text by reading from a reader. * * @param reader * providing the source text * @param fileName * the associated finleName of the input, or <code>null</code> if none. * @throws IOException * if reading fails * @since 3.0 */ public void reset(Reader reader, String fileName) throws IOException { AbstractLexer lexer = getLexer(); lexer.reset(reader, fileName); AbstractParser parser = getAbstractParser(); if (parser.getIPrsStream() == null) { parser.reset(lexer.getILexStream()); } }