public class EMV2AnnexParser extends java.lang.Object implements AnnexParser
Constructor and Description |
---|
EMV2AnnexParser() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.ecore.EObject |
parse(java.lang.String editString,
org.eclipse.xtext.ParserRule parserRule,
java.lang.String filename,
int line,
int offset,
ParseErrorReporter err) |
AnnexLibrary |
parseAnnexLibrary(java.lang.String annexName,
java.lang.String source,
java.lang.String filename,
int line,
int column,
ParseErrorReporter errReporter)
Parse the content of an annex library element found in an AADL
specification or package section.
|
AnnexSubclause |
parseAnnexSubclause(java.lang.String annexName,
java.lang.String source,
java.lang.String filename,
int line,
int column,
ParseErrorReporter errReporter)
Parse the content of an annex subclause element found in an AADL
classifier.
|
public AnnexLibrary parseAnnexLibrary(java.lang.String annexName, java.lang.String source, java.lang.String filename, int line, int column, ParseErrorReporter errReporter)
AnnexParser
parseAnnexLibrary
in interface AnnexParser
annexName
- the name of the annex.source
- the source text string in the annex library.filename
- the name of the currently parsed file.line
- the line where the annex library starts.column
- the column where the annex library starts.errReporter
- The parse error reporter associated with the source AADL file
being parsed. Call
ParseErrorReporter.error(String, int, String)
or
ParseErrorReporter.error(LocationReference, String)
to report
errors in parsing the annex text.public AnnexSubclause parseAnnexSubclause(java.lang.String annexName, java.lang.String source, java.lang.String filename, int line, int column, ParseErrorReporter errReporter)
AnnexParser
parseAnnexSubclause
in interface AnnexParser
annexName
- the name of the annex.source
- the source text string in the annex subclause.filename
- the name of the currently parsed file.line
- the line where the annex subclause starts.column
- the column where the annex subclause starts.errReporter
- The parse error reporter associated with the source AADL file
being parsed. Call
ParseErrorReporter.error(String, int, String)
or
ParseErrorReporter.error(LocationReference, String)
to report
errors in parsing the annex text.public org.eclipse.emf.ecore.EObject parse(java.lang.String editString, org.eclipse.xtext.ParserRule parserRule, java.lang.String filename, int line, int offset, ParseErrorReporter err)