01: package org.antlr.runtime;
02:
03: /** Rules can return start/stop info as well as possible trees and templates */
04: public class RuleReturnScope {
05: /** Return the start token or tree */
06: public Object getStart() {
07: return null;
08: }
09:
10: /** Return the stop token or tree */
11: public Object getStop() {
12: return null;
13: }
14:
15: /** Has a value potentially if output=AST; */
16: public Object getTree() {
17: return null;
18: }
19:
20: /** Has a value potentially if output=template; Don't use StringTemplate
21: * type as it then causes a dependency with ST lib.
22: */
23: public Object getTemplate() {
24: return null;
25: }
26: }
|