Modifier and Type | Method and Description |
---|---|
RythmEngine |
RythmEngine.RenderSettings.clear()
Clear the render time after render process done
|
static RythmEngine |
_Rythm.engine()
Return the default engine.
|
static RythmEngine |
Rythm.engine()
Return the default engine.
|
static RythmEngine |
RythmEngine.get()
Get the current engine instance from a
ThreadLocal variable which is
set previously. |
RythmEngine |
RythmEngine.prepare(ICodeType codeType)
Prepare the render operation environment settings
|
RythmEngine |
Rythm.prepare(ICodeType codeType)
Prepare the render operation environment settings
|
RythmEngine |
RythmEngine.prepare(ICodeType codeType,
Locale locale,
Map<String,Object> usrCtx)
Prepare the render operation environment settings
|
RythmEngine |
Rythm.prepare(ICodeType codeType,
Locale locale,
Map<String,Object> usrCtx)
Prepare the render operation environment settings
|
RythmEngine |
RythmEngine.prepare(Locale locale)
Prepare the render operation environment settings
|
RythmEngine |
Rythm.prepare(Locale locale)
Prepare the render operation environment settings
|
RythmEngine |
RythmEngine.prepare(Map<String,Object> userContext)
Prepare the render operation environment settings
|
RythmEngine |
Rythm.prepare(Map<String,Object> userContext)
Prepare the render operation environment settings
|
RythmEngine |
RythmEngine.registerTemplateClass(org.rythmengine.internal.compiler.TemplateClass tc)
Register a template class and return self
|
Modifier and Type | Method and Description |
---|---|
static String |
Sandbox.hasAccessToRestrictedClasses(RythmEngine engine,
String code) |
static void |
_Rythm.init(RythmEngine engine)
Use an pre-initialized engine as the default engine.
|
static void |
Rythm.init(RythmEngine engine)
Use an pre-initialized engine as the default engine.
|
static boolean |
RythmEngine.set(RythmEngine engine)
Set the engine instance to a
ThreadLocal variable, thus it is easy to
get the current
RythmEngine dominating the rendering process. |
Constructor and Description |
---|
Sandbox(RythmEngine engine,
SandboxExecutingService executor) |
Constructor and Description |
---|
RythmConfiguration(Map<String,?> configuration,
RythmEngine engine)
Construct a
RythmConfiguration with a map. |
Constructor and Description |
---|
CompileException(RythmEngine engine,
org.rythmengine.internal.compiler.TemplateClass tc,
int javaLineNumber,
String message) |
ParseException(RythmEngine engine,
org.rythmengine.internal.compiler.TemplateClass tc,
int line,
String message,
Object... args) |
ParseException(RythmEngine engine,
Throwable cause,
org.rythmengine.internal.compiler.TemplateClass tc,
int line,
String message,
Object... args) |
RythmException(RythmEngine engine,
String templateName,
String javaSource,
String templateSource,
int javaLineNumber,
int templateLineNumber,
String message) |
RythmException(RythmEngine engine,
String templateName,
String javaSource,
String templateSource,
int javaLineNumber,
String message) |
RythmException(RythmEngine engine,
org.rythmengine.internal.compiler.TemplateClass tc,
int javaLineNumber,
int templateLineNumber,
String message) |
RythmException(RythmEngine engine,
org.rythmengine.internal.compiler.TemplateClass tc,
int javaLineNumber,
String message) |
RythmException(RythmEngine engine,
Throwable t,
String templateName,
String javaSource,
String templateSource,
int javaLineNumber,
int templateLineNumber,
String message) |
RythmException(RythmEngine engine,
Throwable t,
org.rythmengine.internal.compiler.TemplateClass tc,
int javaLineNumber,
int templateLineNumber,
String message) |
Modifier and Type | Method and Description |
---|---|
RythmEngine |
ITemplateResourceLoader.getEngine() |
Modifier and Type | Method and Description |
---|---|
void |
ITemplateResourceLoader.setEngine(RythmEngine engine) |
org.rythmengine.internal.compiler.TemplateClass |
ITemplateResourceLoader.tryLoadTemplate(String tmplName,
RythmEngine engine,
org.rythmengine.internal.compiler.TemplateClass callerClass,
ICodeType codeType)
Try to load a template tag with tag name.
|
Modifier and Type | Method and Description |
---|---|
RythmEngine |
CodeBuilder.engine() |
RythmEngine |
TemplateParser.getEngine() |
RythmEngine |
IContext.getEngine() |
Modifier and Type | Method and Description |
---|---|
CodeBuilder |
IDialect.createCodeBuilder(String template,
String className,
String tagName,
org.rythmengine.internal.compiler.TemplateClass templateClass,
RythmEngine engine) |
static String |
CacheKey.i18nBundle(RythmEngine engine,
Locale locale) |
Constructor and Description |
---|
AutoToStringCodeBuilder(String template,
String className,
String tagName,
org.rythmengine.internal.compiler.TemplateClass templateClass,
RythmEngine engine,
IDialect dialect) |
CodeBuilder(String template,
String className,
String tagName,
org.rythmengine.internal.compiler.TemplateClass templateClass,
RythmEngine engine,
IDialect requiredDialect) |
EventBus(RythmEngine engine) |
ExtensionManager(RythmEngine engine) |
Modifier and Type | Method and Description |
---|---|
protected RythmEngine |
ResourceLoaderBase.getDefaultEngine() |
protected RythmEngine |
TemplateResourceBase.getEngine() |
RythmEngine |
ResourceLoaderBase.getEngine() |
Modifier and Type | Method and Description |
---|---|
ICodeType |
TemplateResourceBase.codeType(RythmEngine engine) |
ICodeType |
ITemplateResource.codeType(RythmEngine engine)
Return code type suggested by this resource, e.g.
|
static ICodeType |
TemplateResourceBase.getTypeOfPath(RythmEngine engine,
String s) |
void |
ResourceLoaderBase.setEngine(RythmEngine engine) |
org.rythmengine.internal.compiler.TemplateClass |
ResourceLoaderBase.tryLoadTemplate(String tmplName,
RythmEngine engine,
org.rythmengine.internal.compiler.TemplateClass callerClass,
ICodeType codeType) |
Constructor and Description |
---|
ClasspathResourceLoader(RythmEngine engine,
String root) |
FileResourceLoader(RythmEngine engine,
File root) |
TemplateResourceManager(RythmEngine engine) |
Constructor and Description |
---|
RythmSecurityManager(SecurityManager customSecurityManager,
String password,
RythmEngine re) |
SandboxExecutingService(int poolSize,
SandboxThreadFactory fact,
long timeout,
RythmEngine re,
String code) |
Modifier and Type | Field and Description |
---|---|
protected RythmEngine |
TemplateBase.__engine
The rythm engine that run this template
|
Modifier and Type | Method and Description |
---|---|
RythmEngine |
TemplateBase.__engine()
Return the
engine running this template |
RythmEngine |
ITemplate.__engine()
Return the engine instance that is running this template
|
Modifier and Type | Method and Description |
---|---|
ITemplate |
TemplateBase.__cloneMe(RythmEngine engine,
ITemplate caller)
Not to be used in user application or template
|
ITemplate |
TagBase.__cloneMe(RythmEngine engine,
ITemplate caller) |
ITemplate |
ITemplate.__cloneMe(RythmEngine engine,
ITemplate caller)
Get a copy of this template instance and pass in the engine and caller
|
void |
TemplateBase.__prepareRender(ICodeType type,
Locale locale,
RythmEngine engine) |
protected void |
TemplateBase.__triggerRenderEvent(IEvent<Void,ITemplate> event,
RythmEngine engine)
Trigger render events.
|
protected void |
TagBase.__triggerRenderEvent(IEvent<Void,ITemplate> event,
RythmEngine engine) |
void |
ITemplate.__Context.init(TemplateBase templateBase,
ICodeType type,
Locale locale,
org.rythmengine.internal.compiler.TemplateClass tc,
RythmEngine engine)
init the context with template and base code type
|
Copyright © 2015. All Rights Reserved.