org.deduced.dynamic
Class ActionExecutionCompiler

java.lang.Object
  extended by org.deduced.dynamic.AbstractDynamicExecutionCompiler
      extended by org.deduced.dynamic.ActionExecutionCompiler
All Implemented Interfaces:
DynamicExecutionCompiler

public class ActionExecutionCompiler
extends AbstractDynamicExecutionCompiler

ActionExecutionCompiler

Author:
Steve McDuff

Nested Class Summary
 
Nested classes/interfaces inherited from class org.deduced.dynamic.AbstractDynamicExecutionCompiler
AbstractDynamicExecutionCompiler.DynamicFileNameGenerator, AbstractDynamicExecutionCompiler.FileNameGenerator, AbstractDynamicExecutionCompiler.LocalClassLoader
 
Field Summary
private static ActionExecutionCompiler INSTANCE
          unique instance of the Action execution compiler
 
Fields inherited from class org.deduced.dynamic.AbstractDynamicExecutionCompiler
CLASS_FILE_EXTENSION, DEDUCED_DYNAMIC_CLASS_NAME, DYNAMIC_CODE_PACKAGE_NAME, FILE_NAME_GENERATOR, JAVA_FILE_EXTENSION
 
Constructor Summary
ActionExecutionCompiler()
           
 
Method Summary
 void buildClassContent(PropertyCollection compiledModel, java.lang.String className, java.lang.String packageName, java.lang.StringBuilder builder)
          (non-JSDoc)
static DynamicExecutionCompiler getInstance()
          get the Action execution compiler Instance
private  void printActionGenericMethod(PropertyCollection compiledModel, java.lang.StringBuilder builder)
          printActionGenericMethod
private  void printActionSpecificMethod(PropertyCollection compiledModel, java.lang.StringBuilder builder)
          print Action Specific Method
static void printParameterClassType(java.lang.StringBuilder builder, PropertyCollection<?,?> parameter)
          print parameter Class Type
 
Methods inherited from class org.deduced.dynamic.AbstractDynamicExecutionCompiler
attemptToLoadClassFromCache, compileClass, compileFile, createAnalyzerFromCompiledModel, deleteAllGeneratedClassFiles, deleteAllGeneratedFiles, deleteAllGeneratedJavaFiles, deleteClassCachedFiles, deleteFileAssertIfFailed, deleteInnerClasses, disableCompiledModel, doesClassExist, filterIllegalJavaCharacters, getAnalyzerFromCompiledModel, getClassFromCompiledModel, getClassNameForCompiledModel, getClassNameFromCompiledModel, getCompilerArguments, getDynamicClassLoader, getInnerClassList, getNextAvailableClassName, getNextAvailableDynamicFileName, getNextAvailableFileName, getNextDynamicFileName, getOutputFolderName, isAutomaticallyDeletingGeneratedClassFiles, isAutomaticallyDeletingGeneratedJavaFiles, isAutomaticallyDeletingGeneratedJavaFilesIfCompileFails, isClassName, isCompiledModelEnabled, isValidMethodNameCharacter, loadClassAndInnerClass, logAnalyzerCreationResult, resetAnalyzerFromCompiledModel, setAutomaticallyDeletingGeneratedClassFiles, setAutomaticallyDeletingGeneratedJavaFiles, setAutomaticallyDeletingGeneratedJavaFilesIfCompileFails, setCompilerArguments, setDynamicClassLoader, setOutputFolderName, validateCompilationModelForCompilation, validateCompilationModelIsEnabled, writeJavaClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

private static final ActionExecutionCompiler INSTANCE
unique instance of the Action execution compiler

Constructor Detail

ActionExecutionCompiler

public ActionExecutionCompiler()
Method Detail

getInstance

public static DynamicExecutionCompiler getInstance()
get the Action execution compiler Instance

Returns:
the Action execution compiler

buildClassContent

public void buildClassContent(PropertyCollection compiledModel,
                              java.lang.String className,
                              java.lang.String packageName,
                              java.lang.StringBuilder builder)
(non-JSDoc)

Specified by:
buildClassContent in class AbstractDynamicExecutionCompiler
Parameters:
compiledModel - the compiled model
className - the class name to use
packageName - the package name to use
builder - the string builder containing the class content
See Also:
AbstractDynamicExecutionCompiler.buildClassContent(org.deduced.PropertyCollection, java.lang.String, java.lang.String, java.lang.StringBuilder)

printActionSpecificMethod

private void printActionSpecificMethod(PropertyCollection compiledModel,
                                       java.lang.StringBuilder builder)
print Action Specific Method

Parameters:
compiledModel - the action model
builder - the code string builder

printActionGenericMethod

private void printActionGenericMethod(PropertyCollection compiledModel,
                                      java.lang.StringBuilder builder)
printActionGenericMethod

Parameters:
compiledModel - the action model
builder - the code string builder

printParameterClassType

public static void printParameterClassType(java.lang.StringBuilder builder,
                                           PropertyCollection<?,?> parameter)
print parameter Class Type

Parameters:
builder - string builder in which to print the content
parameter - the instance reference to print