01: /* -*- mode: Java; c-basic-offset: 2; -*- */
02:
03: /**
04: * <interface> compiler
05: *
06: * @author ptw@openlaszlo.org
07: *
08: * Adds interface to schema
09: */package org.openlaszlo.compiler;
10:
11: import org.jdom.Element;
12:
13: /**
14: * Compiler for <code>interface</code> elements.
15: */
16: class InterfaceCompiler extends ClassCompiler {
17:
18: InterfaceCompiler(CompilationEnvironment env) {
19: super (env);
20: }
21:
22: /**
23: * Returns true iff this class applies to this element.
24: * @param element an element
25: * @return see doc
26: */
27: static boolean isElement(Element element) {
28: return element.getName().equals("interface");
29: }
30:
31: protected void compileClass(Element elt, ClassModel classModel,
32: String initobj) {
33: // Interface generates no code
34: }
35: }
36:
37: /**
38: * @copyright Copyright 2007 Laszlo Systems, Inc. All Rights
39: * Reserved. Use is subject to license terms.
40: */
|