org.objectweb.jorm.generator.lib
Class CommonJVMHelper

java.lang.Object
  extended byTypeHelper
      extended byorg.objectweb.jorm.generator.lib.CommonHelper
          extended byorg.objectweb.jorm.generator.lib.CommonJVMHelper
All Implemented Interfaces:
Loggable
Direct Known Subclasses:
CommonGenerator

public class CommonJVMHelper
extends CommonHelper

This class is a helper for the byte code enhancement.

Author:
S.Chassande-Barrioz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.generator.lib.CommonHelper
debug, logger, loggerFactory, PN_GET_TYPES
 
Constructor Summary
CommonJVMHelper()
           
 
Method Summary
static void any2I(CodeVisitor cv, java.lang.String type)
           
 java.lang.String getConstructorFieldsPncParam(CompositeName co)
           
static java.lang.String getJVMClassName(java.lang.Class clazz)
           
static java.lang.String getJVMClassName(Class clazz)
           
static java.lang.String getJVMClassName(java.lang.String className)
           
static java.lang.String getJVMType(java.lang.Class clazz)
           
static java.lang.String getJVMType(java.lang.String className)
           
static void loadNull(CodeVisitor cv, PType type)
           
static void write(ClassWriter cw, java.lang.String name, TargetHolder holder)
           
static void writeJavaClass(java.lang.String name, ClassWriter jclass, java.lang.String srcFiles)
           
 
Methods inherited from class org.objectweb.jorm.generator.lib.CommonHelper
buildPemList, canBeNullValue, comparePE, containsCharArrayField, containsCompositeName, containsFieldWhichCanBeNull, containsGenClassRef, containsReference, containsSerializedField, debug, getCNPackageName, getCoderName, getCompositeNameDefEntries, getCompositeReferences, getCTDeclaration, getFQNOfCompositeName, getInheritedClasses, getLogger, getLoggerFactory, getPaGetMethod, getPaSetMethod, getPemPos, getPNameDecodeFunction, getPNameEncodeFunction, getPNameGetterGetFunction, getPNGTypes, getPrimitiveElement, getPrimitiveElement, getProjectionField, getPType, getPTypeBigDecimal, getPTypeBigInteger, getPTypeBoolean, getPTypeByte, getPTypeByteArray, getPTypeChar, getPTypeCharArray, getPTypeDate, getPTypeDouble, getPTypeFloat, getPTypeInt, getPTypeLong, getPTypeOboolean, getPTypeObyte, getPTypeOchar, getPTypeOdouble, getPTypeOfloat, getPTypeOint, getPTypeOlong, getPTypeOshort, getPTypeReference, getPTypeSerialized, getPTypeShort, getPTypeSpaceFieldName, getPTypeString, getRefNameDef, getTupleDecoding, getTupleDecoding, getTupleGetter, isCharArrayType, isClass, isClassRef, isCompositeName, isFieldName, isGenClassRef, isHiddenField, isNull, isPrimitiveElement, isReference, isSerializedField, isSerializedType, isValidString, log, not, setLogger, setLoggerFactory, upperFL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonJVMHelper

public CommonJVMHelper()
Method Detail

getJVMClassName

public static final java.lang.String getJVMClassName(java.lang.String className)

getJVMClassName

public static final java.lang.String getJVMClassName(java.lang.Class clazz)

getJVMClassName

public static final java.lang.String getJVMClassName(Class clazz)

getJVMType

public static final java.lang.String getJVMType(java.lang.Class clazz)

getJVMType

public static final java.lang.String getJVMType(java.lang.String className)

write

public static void write(ClassWriter cw,
                         java.lang.String name,
                         TargetHolder holder)
                  throws PExceptionCompiler
Throws:
PExceptionCompiler

writeJavaClass

public static void writeJavaClass(java.lang.String name,
                                  ClassWriter jclass,
                                  java.lang.String srcFiles)
                           throws java.io.IOException
Throws:
java.io.IOException

getConstructorFieldsPncParam

public final java.lang.String getConstructorFieldsPncParam(CompositeName co)

loadNull

public static final void loadNull(CodeVisitor cv,
                                  PType type)

any2I

public static final void any2I(CodeVisitor cv,
                               java.lang.String type)