public class MCompilationContextConverter extends AbstractExecutionContext
ICompilationContext
in order to simulate an Execution context.DEFAULT_LOGGER_NAME
Constructor and Description |
---|
MCompilationContextConverter(ICompilationContext c) |
Modifier and Type | Method and Description |
---|---|
Log |
getLog()
Get logger/
|
Object |
getReadBase()
Returns null, as the compilation context is not supposed to contain an instance of the read base, but only the class.
|
IExecutionContext |
getRootContext()
In case of sub context usage, this allows to access the root context.
|
TypedMap |
getVariables()
Returns a Map of:
variables types encountered during compilation.
|
Object |
getWriteBase()
Returns null, as the compilation context is not supposed to contain an instance of the write base, but only the class.
|
void |
setLoggerName(String name)
Allows to override logger name for an execution / a compilation.
|
completeWrapping, debug, debugEntering, debugEntering, debugExiting, debugExiting, debugParent, debugSub, execute, getCachedData, getCachedPropertySource, getCachedPropertySource, getDefaultLoggerName, getErr, getLogSpaces, getMaxDebugLevel, getOut, getParentLogSpaces, getPhase, getReadBaseType, getSubContextForNewBases, getSubContextForNewBases, getSubContextForNewVariables, getSubLogSpaces, getWriteBaseType, hasCachedData, init, isDebugEnabled, resetCachedData, resetCachedData, setCachedData, setErr, setMaxDebugLevel, setOut
completeWrapping, getExecutionSet, getImports, getSecurityManager, setExecutionSet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExecutionSet, getImports, getSecurityManager, setExecutionSet
public MCompilationContextConverter(ICompilationContext c)
public Object getReadBase()
public Object getWriteBase()
public TypedMap getVariables()
IContext
getVariables
in interface IContext
getVariables
in class AbstractContext
public Log getLog()
IContext
getLog
in interface IContext
getLog
in class AbstractContext
public void setLoggerName(String name)
IContext
ICompilationContext.DEFAULT_COMPILE_LOGGER_NAME
or ICompilationContext.DEFAULT_OPTIMIZE_LOGGER_NAME
or IExecutionContext.DEFAULT_LOGGER_NAME
.setLoggerName
in interface IContext
setLoggerName
in class AbstractContext
public IExecutionContext getRootContext()
IContext
getRootContext
in interface IExecutionContext
getRootContext
in interface IContext
getRootContext
in class AbstractExecutionContext