public class io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl extends io.vertx.ext.web.common.template.CachingTemplateEngine<freemarker.template.Template> implements io.vertx.ext.web.templ.freemarker.FreeMarkerTemplateEngine
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl
super_class: io.vertx.ext.web.common.template.CachingTemplateEngine
{
private final freemarker.template.Configuration config;
descriptor: Lfreemarker/template/Configuration;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(io.vertx.core.Vertx);
descriptor: (Lio/vertx/core/Vertx;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "ftl"
sipush 10000
invokespecial io.vertx.ext.web.common.template.CachingTemplateEngine.<init>:(Ljava/lang/String;I)V
1: aload 0
new freemarker.template.Configuration
dup
getstatic freemarker.template.Configuration.VERSION_2_3_28:Lfreemarker/template/Version;
invokespecial freemarker.template.Configuration.<init>:(Lfreemarker/template/Version;)V
putfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.config:Lfreemarker/template/Configuration;
2: aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.config:Lfreemarker/template/Configuration;
new io.vertx.ext.web.templ.freemarker.impl.VertxWebObjectWrapper
dup
aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.config:Lfreemarker/template/Configuration;
invokevirtual freemarker.template.Configuration.getIncompatibleImprovements:()Lfreemarker/template/Version;
invokespecial io.vertx.ext.web.templ.freemarker.impl.VertxWebObjectWrapper.<init>:(Lfreemarker/template/Version;)V
invokevirtual freemarker.template.Configuration.setObjectWrapper:(Lfreemarker/template/ObjectWrapper;)V
3: aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.config:Lfreemarker/template/Configuration;
new io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateLoader
dup
aload 1
invokespecial io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateLoader.<init>:(Lio/vertx/core/Vertx;)V
invokevirtual freemarker.template.Configuration.setTemplateLoader:(Lfreemarker/cache/TemplateLoader;)V
4: aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.config:Lfreemarker/template/Configuration;
new freemarker.cache.NullCacheStorage
dup
invokespecial freemarker.cache.NullCacheStorage.<init>:()V
invokevirtual freemarker.template.Configuration.setCacheStorage:(Lfreemarker/cache/CacheStorage;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/web/templ/freemarker/impl/FreeMarkerTemplateEngineImpl;
0 6 1 vertx Lio/vertx/core/Vertx;
MethodParameters:
Name Flags
vertx
public io.vertx.ext.web.templ.freemarker.FreeMarkerTemplateEngine setExtension(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/ext/web/templ/freemarker/FreeMarkerTemplateEngine;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.doSetExtension:(Ljava/lang/String;)V
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/web/templ/freemarker/impl/FreeMarkerTemplateEngineImpl;
0 2 1 extension Ljava/lang/String;
MethodParameters:
Name Flags
extension
public io.vertx.ext.web.templ.freemarker.FreeMarkerTemplateEngine setMaxCacheSize(int);
descriptor: (I)Lio/vertx/ext/web/templ/freemarker/FreeMarkerTemplateEngine;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.cache:Lio/vertx/ext/web/common/template/impl/ConcurrentLRUCache;
iload 1
invokevirtual io.vertx.ext.web.common.template.impl.ConcurrentLRUCache.setMaxSize:(I)V
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/web/templ/freemarker/impl/FreeMarkerTemplateEngineImpl;
0 2 1 maxCacheSize I
MethodParameters:
Name Flags
maxCacheSize
public void render(java.util.Map<java.lang.String, java.lang.Object>, java.lang.String, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.buffer.Buffer>>);
descriptor: (Ljava/util/Map;Ljava/lang/String;Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.isCachingEnabled:()Z
ifeq 1
aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.cache:Lio/vertx/ext/web/common/template/impl/ConcurrentLRUCache;
aload 2
invokevirtual io.vertx.ext.web.common.template.impl.ConcurrentLRUCache.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast freemarker.template.Template
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: freemarker.template.Template
2: astore 4
start local 4 3: aload 4
ifnonnull 12
4: aload 0
dup
astore 5
monitorenter
5: aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.config:Lfreemarker/template/Configuration;
aload 0
aload 2
invokevirtual io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.adjustLocation:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual freemarker.template.Configuration.getTemplate:(Ljava/lang/String;)Lfreemarker/template/Template;
astore 4
6: aload 5
monitorexit
7: goto 10
StackMap locals: io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl java.util.Map java.lang.String io.vertx.core.Handler freemarker.template.Template io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl
StackMap stack: java.lang.Throwable
8: aload 5
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.isCachingEnabled:()Z
ifeq 12
11: aload 0
getfield io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl.cache:Lio/vertx/ext/web/common/template/impl/ConcurrentLRUCache;
aload 2
aload 4
invokevirtual io.vertx.ext.web.common.template.impl.ConcurrentLRUCache.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: StackMap locals:
StackMap stack:
aconst_null
astore 5
aconst_null
astore 6
13: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 7
start local 7 14: aload 4
aload 1
new java.io.OutputStreamWriter
dup
aload 7
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;)V
invokevirtual freemarker.template.Template.process:(Ljava/lang/Object;Ljava/io/Writer;)V
15: aload 3
aload 7
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
invokestatic io.vertx.core.buffer.Buffer.buffer:([B)Lio/vertx/core/buffer/Buffer;
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
16: aload 7
ifnull 24
aload 7
invokevirtual java.io.ByteArrayOutputStream.close:()V
goto 24
StackMap locals: io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl java.util.Map java.lang.String io.vertx.core.Handler freemarker.template.Template java.lang.Throwable java.lang.Throwable java.io.ByteArrayOutputStream
StackMap stack: java.lang.Throwable
17: astore 5
aload 7
ifnull 18
aload 7
invokevirtual java.io.ByteArrayOutputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
18: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 6
aload 5
ifnonnull 20
aload 6
astore 5
goto 21
StackMap locals:
StackMap stack:
20: aload 5
aload 6
if_acmpeq 21
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
21: aload 5
athrow
end local 4 22: StackMap locals: io.vertx.ext.web.templ.freemarker.impl.FreeMarkerTemplateEngineImpl java.util.Map java.lang.String io.vertx.core.Handler
StackMap stack: java.lang.Exception
astore 4
start local 4 23: aload 3
aload 4
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/Throwable;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 4 24: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lio/vertx/ext/web/templ/freemarker/impl/FreeMarkerTemplateEngineImpl;
0 25 1 context Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
0 25 2 templateFile Ljava/lang/String;
0 25 3 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;
3 22 4 template Lfreemarker/template/Template;
14 18 7 baos Ljava/io/ByteArrayOutputStream;
23 24 4 ex Ljava/lang/Exception;
Exception table:
from to target type
5 7 8 any
8 9 8 any
14 16 17 any
13 19 19 any
0 22 22 Class java.lang.Exception
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;Ljava/lang/String;Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;)V
MethodParameters:
Name Flags
context
templateFile
handler
}
Signature: Lio/vertx/ext/web/common/template/CachingTemplateEngine<Lfreemarker/template/Template;>;Lio/vertx/ext/web/templ/freemarker/FreeMarkerTemplateEngine;
SourceFile: "FreeMarkerTemplateEngineImpl.java"