org.enhydra.xml.xmlc.codegen
Class JavaParameter

java.lang.Object
  |
  +--org.enhydra.xml.xmlc.codegen.JavaVariable
        |
        +--org.enhydra.xml.xmlc.codegen.JavaParameter

public final class JavaParameter
extends JavaVariable

Class to store a method parameter. Objects of this class are immutable.


Fields inherited from class org.enhydra.xml.xmlc.codegen.JavaVariable
fDoc, fModifiers, fName, fType
 
Constructor Summary
JavaParameter(String name, String type, String doc)
          Constructor with doc string.
JavaParameter(String name, String type, String[] doc)
          Constructor with doc array.
 
Method Summary
 void printJavaDoc(IndentWriter out)
          Print the param JavaDoc entry for this parameter, if there is any.
 
Methods inherited from class org.enhydra.xml.xmlc.codegen.JavaVariable
getDoc, getModifiers, getName, getType, printDefinition
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaParameter

public JavaParameter(String name,
                     String type,
                     String[] doc)
Constructor with doc array.
Parameters:
name - The parameter name.
type - The parameter type.
doc - The parameter documentation, where each row is a line of the document. If null, no documention is created.
See Also:
JavaModifiers

JavaParameter

public JavaParameter(String name,
                     String type,
                     String doc)
Constructor with doc string.
Parameters:
name - The parameter name.
type - The parameter type.
doc - The parameter documentation. If null, no documention is created.
See Also:
JavaModifiers
Method Detail

printJavaDoc

public void printJavaDoc(IndentWriter out)
Print the param JavaDoc entry for this parameter, if there is any.


Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.