de.ispsoft.jaxme.generator.javasource
Class JavaConstructor

java.lang.Object
  extended byde.ispsoft.jaxme.generator.javasource.JavaSourceObject
      extended byde.ispsoft.jaxme.generator.javasource.JavaMethod
          extended byde.ispsoft.jaxme.generator.javasource.JavaConstructor

public class JavaConstructor
extends JavaMethod

An implementation of a Java constructor.

Author:
Jochen Wiedmann

Constructor Summary
JavaConstructor(JavaSource js)
          Creates a new JavaConstructor with default protection
JavaConstructor(JavaSource js, java.lang.String protection)
          Creates a new JavaConstructor with the given protection.
 
Method Summary
protected  java.lang.String getHeader()
          Adds a header line.
protected  java.lang.String toString(int i)
           
 
Methods inherited from class de.ispsoft.jaxme.generator.javasource.JavaMethod
addException, addLine, addParam, addParam, getExceptions, getLines, getParams, toString
 
Methods inherited from class de.ispsoft.jaxme.generator.javasource.JavaSourceObject
getComment, getFinal, getName, getProtection, getStatic, getType, isAbstract, setAbstract, setComment, setFinal, setName, setProtection, setStatic, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaConstructor

public JavaConstructor(JavaSource js)
Creates a new JavaConstructor with default protection


JavaConstructor

public JavaConstructor(JavaSource js,
                       java.lang.String protection)
Creates a new JavaConstructor with the given protection.

Method Detail

getHeader

protected java.lang.String getHeader()
Description copied from class: JavaMethod

Adds a header line.

Overrides:
getHeader in class JavaMethod

toString

protected java.lang.String toString(int i)