public class RecordCompiler extends CommonCompiler
CommonCompiler.JavaTypesResolver
classNames, COMPILE_NAME, formNames, hashMappings
Modifier and Type | Method and Description |
---|---|
static javassist.CtClass |
createClassForInterfaceWithoutImplementations(Map<NamedClassType,RecordCompiler> recordCompilers,
javassist.ClassPool classPool,
InterfaceType interfaceType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass)
Creates class for interface without implementations..
|
static javassist.CtClass |
createClassForRecordWithoutImplementations(Map<NamedClassType,RecordCompiler> recordCompilers,
javassist.ClassPool classPool,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Creates class for record without implementations..
|
protected javassist.CtClass |
createClassWithoutImplementations(javassist.ClassPool classPool,
RecordType recordType,
Map<javassist.CtConstructor,SrcMethod> constructors) |
protected javassist.CtClass |
createConstructorBodies(javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
RecordType recordType,
Map<javassist.CtConstructor,SrcMethod> constructors) |
static javassist.CtClass |
createConstructorBodies(javassist.ClassPool classPool,
javassist.CtClass ctClass,
javassist.CtClass moduleCls,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Creates constructor bodies.
|
static javassist.CtClass |
createConstructorHeaders(javassist.ClassPool classPool,
javassist.CtClass ctClass,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Create constructor headers.
|
protected javassist.CtClass |
createConstructorHeaders(javassist.CtClass cls,
RecordType recordType,
Map<javassist.CtConstructor,SrcMethod> constructors) |
static javassist.CtClass |
createHeadersOfMethods(javassist.ClassPool classPool,
javassist.CtClass ctClass,
InterfaceType interfaceType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtMethod,SrcMethod> methods)
Creates headers of methods.
|
static javassist.CtClass |
createHeadersOfMethods(javassist.ClassPool classPool,
javassist.CtClass ctClass,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtMethod,SrcMethod> methods)
Creates headers of methods.
|
static void |
createImplementationsOfRecordMethods(javassist.ClassPool classPool,
javassist.CtClass ctClass,
javassist.CtClass moduleCls,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtMethod,SrcMethod> methods)
Creates implementation of methods.
|
protected javassist.CtClass |
createMethodHeaders(javassist.CtClass cls,
InterfaceType interfaceType,
Map<javassist.CtMethod,SrcMethod> methods) |
protected javassist.CtClass |
createMethodHeaders(javassist.CtClass cls,
RecordType recordType,
Map<javassist.CtMethod,SrcMethod> methods) |
protected void |
createMethodImplementations(javassist.ClassPool classPool,
javassist.CtClass cls,
javassist.CtClass moduleCls,
RecordType recordType,
Map<javassist.CtMethod,SrcMethod> methods) |
protected String |
getModuleName() |
protected javassist.CtClass |
setInterfaces(javassist.ClassPool classPool,
javassist.CtClass cls,
InterfaceType interfaceType) |
static javassist.CtClass |
setInterfaces(javassist.ClassPool classPool,
javassist.CtClass cls,
InterfaceType interfaceType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass)
Sets interfaces.
|
protected javassist.CtClass |
setSuperclassAndInterfaces(javassist.ClassPool classPool,
javassist.CtClass cls,
RecordType recordType,
Map<javassist.CtConstructor,SrcMethod> constructors) |
static javassist.CtClass |
setSuperclassAndInterfaces(javassist.ClassPool classPool,
javassist.CtClass cls,
RecordType recordType,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<javassist.CtConstructor,SrcMethod> constructors)
Sets superclass and interfaces.
|
addCreateInstance, addImport, addImport, appendSemicolon, assign, classNameForClassType, classNameForFunction, classNameForModule, classNameForProcessModel, closureClasses, compileClosure, constant, createMethodBody, createPrivateMethod, createPrivateMethod, generateClass, generateSource, getArrayClassForType, getArrayClassNameForType, getBoundType, getClassForType, getClassLoader, getClassNameForType, getExceptionTypes, getFunctionName, getProtectionDomain, getSimpleClassNameForType, hasExecutionContextParameter, lineSeparator, methodCall, methodCall, nextIdx, srcClass, strConstant, var, varDef
public static javassist.CtClass createClassForInterfaceWithoutImplementations(Map<NamedClassType,RecordCompiler> recordCompilers, javassist.ClassPool classPool, InterfaceType interfaceType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass)
recordCompilers
- classPool
- interfaceType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- public static javassist.CtClass createClassForRecordWithoutImplementations(Map<NamedClassType,RecordCompiler> recordCompilers, javassist.ClassPool classPool, RecordType recordType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<javassist.CtConstructor,SrcMethod> constructors)
recordCompilers
- classPool
- recordType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- constructors
- public static javassist.CtClass setInterfaces(javassist.ClassPool classPool, javassist.CtClass cls, InterfaceType interfaceType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass)
classPool
- cls
- interfaceType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- public static javassist.CtClass setSuperclassAndInterfaces(javassist.ClassPool classPool, javassist.CtClass cls, RecordType recordType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<javassist.CtConstructor,SrcMethod> constructors)
classPool
- cls
- recordType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- constructors
- public static javassist.CtClass createConstructorHeaders(javassist.ClassPool classPool, javassist.CtClass ctClass, RecordType recordType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<javassist.CtConstructor,SrcMethod> constructors)
classPool
- ctClass
- recordType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- constructors
- public static javassist.CtClass createConstructorBodies(javassist.ClassPool classPool, javassist.CtClass ctClass, javassist.CtClass moduleCls, RecordType recordType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<javassist.CtConstructor,SrcMethod> constructors)
classPool
- ctClass
- moduleCls
- recordType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- constructors
- public static javassist.CtClass createHeadersOfMethods(javassist.ClassPool classPool, javassist.CtClass ctClass, RecordType recordType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<javassist.CtMethod,SrcMethod> methods)
classPool
- ctClass
- recordType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- methods
- public static javassist.CtClass createHeadersOfMethods(javassist.ClassPool classPool, javassist.CtClass ctClass, InterfaceType interfaceType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<javassist.CtMethod,SrcMethod> methods)
classPool
- ctClass
- interfaceType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- methods
- public static void createImplementationsOfRecordMethods(javassist.ClassPool classPool, javassist.CtClass ctClass, javassist.CtClass moduleCls, RecordType recordType, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<javassist.CtMethod,SrcMethod> methods)
classPool
- ctClass
- moduleCls
- recordType
- hashMappings
- classNames
- formNames
- generateClass
- generateSource
- srcClass
- methods
- protected String getModuleName()
getModuleName
in class CommonCompiler
protected javassist.CtClass setInterfaces(javassist.ClassPool classPool, javassist.CtClass cls, InterfaceType interfaceType)
protected javassist.CtClass setSuperclassAndInterfaces(javassist.ClassPool classPool, javassist.CtClass cls, RecordType recordType, Map<javassist.CtConstructor,SrcMethod> constructors)
protected javassist.CtClass createClassWithoutImplementations(javassist.ClassPool classPool, RecordType recordType, Map<javassist.CtConstructor,SrcMethod> constructors)
protected javassist.CtClass createConstructorHeaders(javassist.CtClass cls, RecordType recordType, Map<javassist.CtConstructor,SrcMethod> constructors)
protected javassist.CtClass createConstructorBodies(javassist.ClassPool classPool, javassist.CtClass cls, javassist.CtClass moduleCls, RecordType recordType, Map<javassist.CtConstructor,SrcMethod> constructors)
protected javassist.CtClass createMethodHeaders(javassist.CtClass cls, InterfaceType interfaceType, Map<javassist.CtMethod,SrcMethod> methods)
protected javassist.CtClass createMethodHeaders(javassist.CtClass cls, RecordType recordType, Map<javassist.CtMethod,SrcMethod> methods)
protected void createMethodImplementations(javassist.ClassPool classPool, javassist.CtClass cls, javassist.CtClass moduleCls, RecordType recordType, Map<javassist.CtMethod,SrcMethod> methods)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.