File D:\maven-qcr-plugin-testsunitaires\qcr4java\h2-1.3.170-sources\target\site\qc\lecode\bnf\RuleHead.java.html

1 /*
2 * Copyright 2004-2011 H2 Group. Multiple-Licensed under the H2 License,
3 * Version 1.0, and under the Eclipse Public License, Version 1.0
4 * (http://h2database.com/html/license.html).
5 * Initial Developer: H2 Group
6 */
7 package org.h2.bnf;
8
9 /**
10 * Represents the head of a BNF rule.
11 */
12 public class RuleHead {
13 private final String section;
14 private final String topic;
15 private Rule rule;
16
17 RuleHead(String section, String topic, Rule rule) {
18 this.section = section;
19 this.topic = topic;
20 this.rule = rule;
21 }
22
23 public String getTopic() {
24 return topic;
25 }
26
27 public Rule getRule() {
28 return rule;
29 }
30
31 void setRule(Rule rule) {
32 this.rule = rule;
33 }
34
35 public String getSection() {
36 return section;
37 }
38
39 }
40