com.sun.tools.xjc.model
Class Constructor

java.lang.Object
  extended by com.sun.tools.xjc.model.Constructor

public class Constructor
extends java.lang.Object

Constructor declaration.

a constructor declaration consists of a set of fields to be initialized. For example, if a class is defined as:

 Class: Foo
   Field: String a
   Field: int b
   Field: BigInteger c
 
Then a constructor declaration of {"a","c"} will conceptually generate the following consturctor:
 Foo( String _a, BigInteger _c ) {
   a=_a; c=_c;
 }
 
(Only conceptually, because Foo will likely to become an interface so we can't simply generate a constructor like this.)


Field Summary
 java.lang.String[] fields
          array of field names to be initialized.
 
Constructor Summary
Constructor(java.lang.String[] _fields)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fields

public final java.lang.String[] fields
array of field names to be initialized.

Constructor Detail

Constructor

public Constructor(java.lang.String[] _fields)