org.jpox.enhancer.method
Class DefaultConstructor

java.lang.Object
  extended byorg.jpox.enhancer.method.ClassElementBuilder
      extended byorg.jpox.enhancer.method.MethodBuilder
          extended byorg.jpox.enhancer.method.DefaultConstructor

public class DefaultConstructor
extends MethodBuilder

Representation of a (protected) Default Constructor. The constructor simply calls its superclass default constructor.

Version:
$Revision: 1.3 $

Field Summary
 
Fields inherited from class org.jpox.enhancer.method.MethodBuilder
argName, argType, factory, il, LOCALISER, methodGen, methodName, resultType, synthetic, type
 
Fields inherited from class org.jpox.enhancer.method.ClassElementBuilder
classConfig, classGen, className, constantPoolGen, gen, jdoConfig, packageConfig
 
Constructor Summary
DefaultConstructor(java.lang.String methodName, int type, org.apache.bcel.generic.Type resultType, org.apache.bcel.generic.Type[] argType, java.lang.String[] argName, boolean synthetic, GeneratorBase gen)
          Constructor
 
Method Summary
 void close()
          Close the method, updating the class.
 void execute()
          Execute the method
static DefaultConstructor getInstance(GeneratorBase gen)
           
 
Methods inherited from class org.jpox.enhancer.method.MethodBuilder
createThrowException, createThrowException, equals, hashCode, init, isSynthetic
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConstructor

public DefaultConstructor(java.lang.String methodName,
                          int type,
                          org.apache.bcel.generic.Type resultType,
                          org.apache.bcel.generic.Type[] argType,
                          java.lang.String[] argName,
                          boolean synthetic,
                          GeneratorBase gen)
Constructor

Parameters:
methodName - Name of the method ("" for a constructor)
type - Access type
resultType - Result type from the method
argType - Argument types
argName - Argument names
synthetic - Whether is synthetic or not
gen - The generator
Method Detail

getInstance

public static DefaultConstructor getInstance(GeneratorBase gen)

execute

public void execute()
Execute the method

Overrides:
execute in class MethodBuilder

close

public void close()
Close the method, updating the class.

Overrides:
close in class MethodBuilder


Copyright © -2007 . All Rights Reserved.