Class ParserWrapper
java.lang.Object
org.eclipse.m2m.atl.dsls.tcs.injector.wrappers.ParserWrapper
org.eclipse.m2m.atl.dsls.tcs.injector.wrappers.antlr3.ParserWrapper
-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.dsls.tcs.injector.wrappers.ParserWrapper
pack, runtime, TT_COMMENT, TT_NL, TT_WS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getEndOffset
(Object token) getLocation
(Object token) int
getStartOffset
(Object token) void
void
setCommentsAfter
(Object ame, Object params_) void
setCommentsBefore
(Object ame, Object params_) sets the comments before a model element.Methods inherited from class org.eclipse.m2m.atl.dsls.tcs.injector.wrappers.ParserWrapper
setRuntime
-
Constructor Details
-
ParserWrapper
public ParserWrapper()
-
-
Method Details
-
parse
public Object parse(int tabSize, String name, String productionRule, Reader isr, Map params) throws Exception - Specified by:
parse
in classParserWrapper
- Throws:
Exception
-
reportError
- Specified by:
reportError
in classParserWrapper
-
setCommentsBefore
sets the comments before a model element. the input is the current stream. the index is the index of the current token- Specified by:
setCommentsBefore
in classParserWrapper
-
setCommentsAfter
- Specified by:
setCommentsAfter
in classParserWrapper
-
getLocation
- Specified by:
getLocation
in classParserWrapper
-
getStartOffset
- Specified by:
getStartOffset
in classParserWrapper
-
getEndOffset
- Specified by:
getEndOffset
in classParserWrapper
-
getLastToken
- Specified by:
getLastToken
in classParserWrapper
-