01: /*
02: * Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0
03: * (http://h2database.com/html/license.html).
04: * Initial Developer: H2 Group
05: */
06: package org.h2.bnf;
07:
08: /**
09: * Represents the head of a BNF rule.
10: */
11: public class RuleHead {
12: String section;
13: Rule rule;
14: private String topic;
15:
16: RuleHead(String section, String topic, Rule rule) {
17: this .section = section;
18: this .topic = topic;
19: this .rule = rule;
20: }
21:
22: public String getTopic() {
23: return topic;
24: }
25:
26: public Rule getRule() {
27: return rule;
28: }
29:
30: }
|