org.antlr.runtime
Class RuleReturnScope

java.lang.Object
  extended by org.antlr.runtime.RuleReturnScope
Direct Known Subclasses:
ParserRuleReturnScope, TreeRuleReturnScope

public class RuleReturnScope
extends java.lang.Object

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


Constructor Summary
RuleReturnScope()
           
 
Method Summary
 java.lang.Object getStart()
          Return the start token or tree
 java.lang.Object getStop()
          Return the stop token or tree
 java.lang.Object getTemplate()
          Has a value potentially if output=template; Don't use StringTemplate type as it then causes a dependency with ST lib.
 java.lang.Object getTree()
          Has a value potentially if output=AST;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleReturnScope

public RuleReturnScope()
Method Detail

getStart

public java.lang.Object getStart()
Return the start token or tree


getStop

public java.lang.Object getStop()
Return the stop token or tree


getTree

public java.lang.Object getTree()
Has a value potentially if output=AST;


getTemplate

public java.lang.Object getTemplate()
Has a value potentially if output=template; Don't use StringTemplate type as it then causes a dependency with ST lib.



Copyright © 2013. All Rights Reserved.