org.objectweb.jorm.generator.lib
Class CNGenContext

java.lang.Object
  extended byorg.objectweb.jorm.generator.lib.GenContext
      extended byorg.objectweb.jorm.generator.lib.CNGenContext

public class CNGenContext
extends GenContext

This class is a generation context for byte enhancement with ASM. This class specializes the GenContext for the generation of code around the a Composite Name (JORM Meta object). All fields are final and dedicated to the given Composite Name.

Author:
S.Chassande-Barrioz

Field Summary
 boolean allAutoCalculated
          Indicates if all field of the composite name are calculated (the field value is computed or generated, ex sequence).
 CompositeName co
          Is the JORM meta object representing the composite name
 java.util.Collection coAllFields
           
 boolean hasAutoCalculatedField
          Indicates if all field of the composite name are not calculated (the field value is computed or generated, ex sequence).
 PrimitiveElement uniqueField
           
 boolean uniqueFieldIsString
           
 java.lang.String xbinderJCN
          The name of the generated PBinder
 java.lang.String xbinderJT
          The type of the generated PBinder
 java.lang.String xconstructorFieldsPnc
           
 java.lang.String xpnameJCN
          The name of the generated PName
 java.lang.String xpnameJT
          The type of the generated PName
 java.lang.String xpngJCN
          The name of the generated PNameGetter
 java.lang.String xpngJT
          The type of the generated PNameGetter
 
Fields inherited from class org.objectweb.jorm.generator.lib.GenContext
clav, helper, objectJT, pcmJT, pexceptionJCN, pnameJCN, pnameJT, pnameManagerJT, pngJCN, ptypeJCN, ptypeJT, ptypespaceJCN, ptypespaceJT, stringBufferJCN, stringBufferJT, stringJCN, stringJT
 
Constructor Summary
CNGenContext(ClassVisitor _clav, CommonJVMHelper h)
           
CNGenContext(CompositeName _co, ClassVisitor _clav, CommonJVMHelper h)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xbinderJCN

public final java.lang.String xbinderJCN
The name of the generated PBinder


xpnameJCN

public final java.lang.String xpnameJCN
The name of the generated PName


xpngJCN

public final java.lang.String xpngJCN
The name of the generated PNameGetter


xbinderJT

public final java.lang.String xbinderJT
The type of the generated PBinder


xpnameJT

public final java.lang.String xpnameJT
The type of the generated PName


xpngJT

public final java.lang.String xpngJT
The type of the generated PNameGetter


xconstructorFieldsPnc

public final java.lang.String xconstructorFieldsPnc

co

public final CompositeName co
Is the JORM meta object representing the composite name


coAllFields

public final java.util.Collection coAllFields

allAutoCalculated

public final boolean allAutoCalculated
Indicates if all field of the composite name are calculated (the field value is computed or generated, ex sequence).


hasAutoCalculatedField

public final boolean hasAutoCalculatedField
Indicates if all field of the composite name are not calculated (the field value is computed or generated, ex sequence).


uniqueField

public final PrimitiveElement uniqueField

uniqueFieldIsString

public final boolean uniqueFieldIsString
Constructor Detail

CNGenContext

public CNGenContext(ClassVisitor _clav,
                    CommonJVMHelper h)

CNGenContext

public CNGenContext(CompositeName _co,
                    ClassVisitor _clav,
                    CommonJVMHelper h)