Top Description Constructors Methods
org.antlr.runtime

public Class RuleReturnScope

extends Object
Class Inheritance
Known Direct Subclasses
org.antlr.runtime.tree.TreeRuleReturnScope, org.antlr.runtime.ParserRuleReturnScope

Rules can return start/stop info as well as possible trees and templates

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getStart()

Return the start token or tree

public Object
getStop()

Return the stop token or tree

public Object
getTemplate()

Has a value potentially if output=template; Don't use StringTemplate type as it then causes a dependency with ST lib.

public Object
getTree()

Has a value potentially if output=AST;

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RuleReturnScopeback to summary
public RuleReturnScope()

Method Detail

getStartback to summary
public Object getStart()

Return the start token or tree

getStopback to summary
public Object getStop()

Return the stop token or tree

getTemplateback to summary
public Object getTemplate()

Has a value potentially if output=template; Don't use StringTemplate type as it then causes a dependency with ST lib.

getTreeback to summary
public Object getTree()

Has a value potentially if output=AST;