Package org.antlr.runtime
Class RuleReturnScope
java.lang.Object
org.antlr.runtime.RuleReturnScope
- Direct Known Subclasses:
ParserRuleReturnScope
,TreeRuleReturnScope
Rules can return start/stop info as well as possible trees and templates
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RuleReturnScope
public RuleReturnScope()
-
-
Method Details
-
getStart
Return the start token or tree -
getStop
Return the stop token or tree -
getTree
Has a value potentially if output=AST; -
getTemplate
Has a value potentially if output=template; Don't use StringTemplate type as it then causes a dependency with ST lib.
-