01: package org.kohsuke.rngom.parse.host;
02:
03: import org.kohsuke.rngom.ast.builder.Annotations;
04: import org.kohsuke.rngom.ast.builder.BuildException;
05: import org.kohsuke.rngom.ast.builder.Div;
06: import org.kohsuke.rngom.ast.om.Location;
07:
08: /**
09: *
10: * @author
11: * Kohsuke Kawaguchi (kk@kohsuke.org)
12: */
13: public class DivHost extends GrammarSectionHost implements Div {
14: private final Div lhs;
15: private final Div rhs;
16:
17: DivHost(Div lhs, Div rhs) {
18: super (lhs, rhs);
19: this .lhs = lhs;
20: this .rhs = rhs;
21: }
22:
23: public void endDiv(Location _loc, Annotations _anno)
24: throws BuildException {
25: LocationHost loc = cast(_loc);
26: AnnotationsHost anno = cast(_anno);
27:
28: lhs.endDiv(loc.lhs, anno.lhs);
29: rhs.endDiv(loc.rhs, anno.rhs);
30: }
31:
32: }
|