protected void TRACE(String rule, String message, EList<String> namelist) { TRACE(rule, message + makeString(namelist)); } }
/** * Define the input text as a given array of characters. * * @param buffer * the characters * @param fileName * the associated finleName of the input, or <code>null</code> if none. * @since 3.0 */ public void reset(char[] buffer, String fileName) { getLexer().reset(buffer, fileName); }
/** * @since 1.3 */ @Override @SuppressWarnings("deprecation") public AbstractOCLParser getAbstractParser() { return (AbstractOCLParser) super.getParser(); }
public String formatEClassName(EObject object) { return getFormatter().formatEClassName(object); }
public void ERROR(Object problemObject, String rule, String problemMessage) { getEnvironment().analyzerError(problemMessage, rule, problemObject); }
/** * 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 as a given array of characters. * * @param buffer * the characters * * @deprecated clients should invoke {@link #reset(char[], String)} */ @Deprecated public void initialize(char[] buffer) { reset(buffer, null); }
public AbstractLexer getLexer() { return getAbstractParser().getLexer(); }
public String formatPath(List<String> pathName, String name) { return getFormatter().formatPath(pathName, name); }
public void ERROR(List<?> problemObjects, String rule, String problemMessage) { getEnvironment().analyzerError(problemMessage, rule, problemObjects); }
/** * 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 as a given array of characters. * * @param buffer * the characters * * @deprecated clients should invoke {@link #reset(char[], String)} */ @Deprecated public void initialize(char[] buffer) { reset(buffer, null); }
public AbstractLexer getLexer() { return getAbstractParser().getLexer(); }
public String formatString(String string) { return getFormatter().formatString(string); }
protected void TRACE(String rule, String message, EList<String> namelist) { TRACE(rule, message + makeString(namelist)); } }
public void ERROR(Object problemObject, String rule, String problemMessage) { getEnvironment().analyzerError(problemMessage, rule, problemObject); }
/** * Define the input text as a given array of characters. * * @param buffer * the characters * @param fileName * the associated finleName of the input, or <code>null</code> if none. * @since 3.0 */ public void reset(char[] buffer, String fileName) { getLexer().reset(buffer, fileName); }
/** * Define the input text by reading from a reader. * * @param reader * providing the source text * @throws IOException * if reading fails * * @deprecated clients should invoke {@link #reset(Reader, String)} */ @Deprecated public void initialize(Reader reader) throws IOException { reset(reader, null); }
/** * 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()); }
/** * @since 1.3 */ @Override @SuppressWarnings("deprecation") public AbstractOCLParser getAbstractParser() { return (AbstractOCLParser) super.getParser(); }