org.datanucleus.enhancer.bcel.method
Class DefaultConstructor

java.lang.Object
  extended by org.datanucleus.enhancer.ClassMethod
      extended by org.datanucleus.enhancer.bcel.BCELClassMethod
          extended by org.datanucleus.enhancer.bcel.method.DefaultConstructor

public class DefaultConstructor
extends BCELClassMethod

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


Field Summary
 
Fields inherited from class org.datanucleus.enhancer.bcel.BCELClassMethod
classGen, className, cmd, constantPoolGen, factory, il, LOCALISER, methodGen, synthetic
 
Fields inherited from class org.datanucleus.enhancer.ClassMethod
access, argNames, argTypes, enhancer, exceptions, methodName, returnType
 
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, BCELClassEnhancer gen)
          Constructor
 
Method Summary
 void close()
          Close the method, updating the class.
 void execute()
          Execute the method
static DefaultConstructor getInstance(BCELClassEnhancer gen)
           
 
Methods inherited from class org.datanucleus.enhancer.bcel.BCELClassMethod
createThrowException, createThrowException, getClassEnhancer, initialise
 
Methods inherited from class org.datanucleus.enhancer.ClassMethod
equals, getAccess, getMethodAdditionMessage, getName, hashCode
 
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,
                          BCELClassEnhancer 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(BCELClassEnhancer gen)

execute

public void execute()
Execute the method

Overrides:
execute in class BCELClassMethod

close

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

Overrides:
close in class BCELClassMethod


Copyright © 2009. All Rights Reserved.