public class NamespaceCompiler extends CommonCompiler
CommonCompiler.JavaTypesResolver
classNames, COMPILE_NAME, formNames, hashMappings
Constructor and Description |
---|
NamespaceCompiler(QID path,
boolean generateClass,
boolean generateSource,
SrcClass srcClass,
Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
FileWriter fileWriter)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
protected void |
bindClass(Class<?> existingClass,
com.whitestein.lsps.model.ProcessModel processModel) |
static void |
bindClassForProcessDescription(Class<?> existingClass,
com.whitestein.lsps.model.ProcessModel processModel,
com.whitestein.lsps.model.ProcessDescription processDescription,
QID path)
Bind to existing java classes.
|
static void |
bindClassForProcessModel(Class<?> existingClass,
com.whitestein.lsps.model.ProcessModel processModel,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
QID path,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames)
Binds already exiting java class representing namespace to corresponding model namespace.
|
static javassist.CtMethod |
compileExpression(javassist.ClassPool classPool,
javassist.CtClass cls,
QID path,
Expression exp,
String discriminator) |
protected javassist.CtClass |
createClass(javassist.ClassPool classPool,
com.whitestein.lsps.model.ProcessModel model,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
boolean isAdditionalExpressionNamespace) |
protected javassist.CtClass |
createClass(javassist.ClassPool classPool,
String superclassName,
com.whitestein.lsps.model.ProcessModel processModel,
com.whitestein.lsps.model.ProcessDescription processDescription,
String discriminator) |
static javassist.CtClass |
createClassForProcessDescription(javassist.ClassPool classPool,
String superclassName,
String fullClassName,
com.whitestein.lsps.model.ProcessModel processModel,
com.whitestein.lsps.model.ProcessDescription processDescription,
String discriminator,
QID path,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
boolean generateClass,
boolean generateSource,
FileWriter fileWriter)
Compiles namespace to java class.
|
static javassist.CtClass |
createClassForProcessModel(javassist.ClassPool classPool,
String fullClassName,
com.whitestein.lsps.model.ProcessModel processModel,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames,
QID path,
boolean generateClass,
boolean generateSource,
FileWriter fileWriter,
boolean isAdditionalExpressionModel)
Compiles namespace to java class.
|
static void |
findClassNames(javassist.ClassPool classPool,
String className,
com.whitestein.lsps.model.ProcessModel processModel,
Map<com.whitestein.lsps.model.ProcessModel,String> imports,
QID path,
Map<ClassType,String> classNames,
Map<FunctionSignature,String> formNames) |
protected void |
findClassNames(com.whitestein.lsps.model.ProcessModel processModel) |
protected String |
getModuleName() |
protected SrcClass |
srcClass(FunctionSignature signature) |
protected SrcClass |
srcClass(NamedClassType type) |
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 NamespaceCompiler(QID path, boolean generateClass, boolean generateSource, SrcClass srcClass, Map<com.whitestein.lsps.model.ProcessModel,String> hashMappings, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, FileWriter fileWriter)
path
- generateClass
- generateSource
- srcClass
- classNames
- formNames
- hashMappings
- fileWriter
- public static javassist.CtClass createClassForProcessModel(javassist.ClassPool classPool, String fullClassName, com.whitestein.lsps.model.ProcessModel processModel, Map<com.whitestein.lsps.model.ProcessModel,String> imports, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, QID path, boolean generateClass, boolean generateSource, FileWriter fileWriter, boolean isAdditionalExpressionModel)
classPool
- fullClassName
- processModel
- imports
- classNames
- formNames
- path
- generateClass
- generateSource
- fileWriter
- isAdditionalExpressionModel
- public static void bindClassForProcessModel(Class<?> existingClass, com.whitestein.lsps.model.ProcessModel processModel, Map<com.whitestein.lsps.model.ProcessModel,String> imports, QID path, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames)
existingClass
- processModel
- imports
- path
- classNames
- formNames
- public static javassist.CtClass createClassForProcessDescription(javassist.ClassPool classPool, String superclassName, String fullClassName, com.whitestein.lsps.model.ProcessModel processModel, com.whitestein.lsps.model.ProcessDescription processDescription, String discriminator, QID path, Map<com.whitestein.lsps.model.ProcessModel,String> imports, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames, boolean generateClass, boolean generateSource, FileWriter fileWriter)
classPool
- superclassName
- fullClassName
- processModel
- processDescription
- discriminator
- path
- imports
- classNames
- formNames
- generateClass
- generateSource
- fileWriter
- public static void bindClassForProcessDescription(Class<?> existingClass, com.whitestein.lsps.model.ProcessModel processModel, com.whitestein.lsps.model.ProcessDescription processDescription, QID path)
existingClass
- processModel
- processDescription
- path
- public static void findClassNames(javassist.ClassPool classPool, String className, com.whitestein.lsps.model.ProcessModel processModel, Map<com.whitestein.lsps.model.ProcessModel,String> imports, QID path, Map<ClassType,String> classNames, Map<FunctionSignature,String> formNames)
classPool
- className
- processModel
- imports
- path
- classNames
- public static javassist.CtMethod compileExpression(javassist.ClassPool classPool, javassist.CtClass cls, QID path, Expression exp, String discriminator)
protected String getModuleName()
getModuleName
in class CommonCompiler
protected SrcClass srcClass(NamedClassType type)
protected SrcClass srcClass(FunctionSignature signature)
protected javassist.CtClass createClass(javassist.ClassPool classPool, com.whitestein.lsps.model.ProcessModel model, Map<com.whitestein.lsps.model.ProcessModel,String> imports, boolean isAdditionalExpressionNamespace)
protected void bindClass(Class<?> existingClass, com.whitestein.lsps.model.ProcessModel processModel)
protected void findClassNames(com.whitestein.lsps.model.ProcessModel processModel)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.