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