edu.cmu.sei.aadl.annex
Class AnnexParserProxy
java.lang.Object
edu.cmu.sei.aadl.annex.AnnexParserProxy
- All Implemented Interfaces:
- AnnexParser
public class AnnexParserProxy
- extends java.lang.Object
- implements AnnexParser
- Version:
- $Id: AnnexParserProxy.java,v 1.5 2007-06-28 22:02:41 jseibel Exp $
- Author:
- lwrage
Field Summary |
protected java.lang.String |
annexName
|
protected static java.lang.String |
ATT_ANNEXNAME
|
protected static java.lang.String |
ATT_CLASS
|
protected static java.lang.String |
ATT_ID
|
protected static java.lang.String |
ATT_NAME
|
protected java.lang.String |
className
|
protected org.eclipse.core.runtime.IConfigurationElement |
configElem
|
protected java.lang.String |
id
|
protected java.lang.String |
name
|
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATT_ID
protected static final java.lang.String ATT_ID
- See Also:
- Constant Field Values
ATT_NAME
protected static final java.lang.String ATT_NAME
- See Also:
- Constant Field Values
ATT_ANNEXNAME
protected static final java.lang.String ATT_ANNEXNAME
- See Also:
- Constant Field Values
ATT_CLASS
protected static final java.lang.String ATT_CLASS
- See Also:
- Constant Field Values
configElem
protected final org.eclipse.core.runtime.IConfigurationElement configElem
id
protected final java.lang.String id
name
protected final java.lang.String name
annexName
protected final java.lang.String annexName
className
protected final java.lang.String className
parseAnnexLibrary
public AnnexLibrary parseAnnexLibrary(java.lang.String annexName,
java.lang.String source,
java.lang.String filename,
int line,
int column,
ParseErrorReporter errReporter)
throws antlr.RecognitionException
- Description copied from interface:
AnnexParser
- Parse the content of an annex library element found in an AADL
specification or package section.
- Specified by:
parseAnnexLibrary
in interface AnnexParser
- Parameters:
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.
- Returns:
- An instance of a subclass of AnnexLibrary. The specific class
returned will depend on the annex model.
- Throws:
antlr.RecognitionException
- in case of a syntax error.
parseAnnexSubclause
public AnnexSubclause parseAnnexSubclause(java.lang.String annexName,
java.lang.String source,
java.lang.String filename,
int line,
int column,
ParseErrorReporter errReporter)
throws antlr.RecognitionException
- Description copied from interface:
AnnexParser
- Parse the content of an annex subclause element found in an AADL
classifier.
- Specified by:
parseAnnexSubclause
in interface AnnexParser
- Parameters:
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.
- Returns:
- An instance of a subclass of AnnexSubclause. The specific class
returned will depend on the annex model.
- Throws:
antlr.RecognitionException
- in case of a syntax error.