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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetEndOffset(Object token) getLocation(Object token) intgetStartOffset(Object token) voidvoidsetCommentsAfter(Object ame, Object params_) voidsetCommentsBefore(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:
parsein classParserWrapper- Throws:
Exception
-
reportError
- Specified by:
reportErrorin 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:
setCommentsBeforein classParserWrapper
-
setCommentsAfter
- Specified by:
setCommentsAfterin classParserWrapper
-
getLocation
- Specified by:
getLocationin classParserWrapper
-
getStartOffset
- Specified by:
getStartOffsetin classParserWrapper
-
getEndOffset
- Specified by:
getEndOffsetin classParserWrapper
-
getLastToken
- Specified by:
getLastTokenin classParserWrapper
-