01: /*
02: * Copyright 2005 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.directwebremoting.drapgen.ast;
17:
18: import static org.directwebremoting.drapgen.ast.SerializationStrings.*;
19:
20: /**
21: * We are assuming that there is no point to non-public constructors for Drapgen
22: * @see java.lang.reflect.Constructor
23: * @author Joe Walker [joe at getahead dot ltd dot uk]
24: */
25: public class Constructor extends Subroutine {
26: /**
27: * All {@link Constructor}s need a parent {@link Type}
28: * @param parent the type of which we are a part
29: */
30: protected Constructor(Type parent) {
31: super (parent);
32: }
33:
34: /**
35: * Create a XOM Element from this
36: * @return a Element representing this Type
37: */
38: protected nu.xom.Element toXomElement() {
39: return super.toXomElement(CONSTRUCTOR);
40: }
41: }
|