public class io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl extends io.vertx.ext.web.common.template.CachingTemplateEngine<org.mvel2.templates.CompiledTemplate> implements io.vertx.ext.web.templ.mvel.MVELTemplateEngine
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl
super_class: io.vertx.ext.web.common.template.CachingTemplateEngine
{
private final io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(io.vertx.core.Vertx, java.lang.String);
descriptor: (Lio/vertx/core/Vertx;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial io.vertx.ext.web.common.template.CachingTemplateEngine.<init>:(Lio/vertx/core/Vertx;Ljava/lang/String;)V
1: aload 0
aload 1
putfield io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl.vertx:Lio/vertx/core/Vertx;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/templ/mvel/impl/MVELTemplateEngineImpl;
0 3 1 vertx Lio/vertx/core/Vertx;
0 3 2 extension Ljava/lang/String;
MethodParameters:
Name Flags
vertx
extension
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=7, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokevirtual io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl.adjustLocation:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 1: aload 0
aload 4
invokevirtual io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl.getTemplate:(Ljava/lang/String;)Lio/vertx/ext/web/common/template/impl/TemplateHolder;
astore 5
start local 5 2: aload 5
ifnonnull 18
3: aload 4
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 6
start local 6 4: ldc ""
astore 7
start local 7 5: iload 6
iconst_m1
if_icmpeq 7
6: aload 4
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
7: StackMap locals: io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl java.util.Map java.lang.String io.vertx.core.Handler java.lang.String io.vertx.ext.web.common.template.impl.TemplateHolder int java.lang.String
StackMap stack:
aload 0
getfield io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl.vertx:Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.fileSystem:()Lio/vertx/core/file/FileSystem;
aload 4
invokeinterface io.vertx.core.file.FileSystem.existsBlocking:(Ljava/lang/String;)Z
ifne 10
8: aload 3
new java.lang.StringBuilder
dup
ldc "Cannot find template "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic io.vertx.core.Future.failedFuture:(Ljava/lang/String;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
9: return
10: StackMap locals:
StackMap stack:
new io.vertx.ext.web.common.template.impl.TemplateHolder
dup
11: aload 0
getfield io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl.vertx:Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.fileSystem:()Lio/vertx/core/file/FileSystem;
12: aload 4
invokeinterface io.vertx.core.file.FileSystem.readFileBlocking:(Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
13: invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokeinterface io.vertx.core.buffer.Buffer.toString:(Ljava/nio/charset/Charset;)Ljava/lang/String;
14: invokestatic org.mvel2.templates.TemplateCompiler.compileTemplate:(Ljava/lang/String;)Lorg/mvel2/templates/CompiledTemplate;
15: aload 7
16: invokespecial io.vertx.ext.web.common.template.impl.TemplateHolder.<init>:(Ljava/lang/Object;Ljava/lang/String;)V
astore 5
17: aload 0
aload 4
aload 5
invokevirtual io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl.putTemplate:(Ljava/lang/String;Lio/vertx/ext/web/common/template/impl/TemplateHolder;)Lio/vertx/ext/web/common/template/impl/TemplateHolder;
pop
end local 7 end local 6 18: StackMap locals:
StackMap stack:
aload 5
invokevirtual io.vertx.ext.web.common.template.impl.TemplateHolder.template:()Ljava/lang/Object;
checkcast org.mvel2.templates.CompiledTemplate
astore 6
start local 6 19: aload 5
invokevirtual io.vertx.ext.web.common.template.impl.TemplateHolder.baseDir:()Ljava/lang/String;
astore 7
start local 7 20: aload 3
21: new org.mvel2.templates.TemplateRuntime
dup
aload 6
invokevirtual org.mvel2.templates.CompiledTemplate.getTemplate:()[C
aconst_null
aload 6
invokevirtual org.mvel2.templates.CompiledTemplate.getRoot:()Lorg/mvel2/templates/res/Node;
aload 7
invokespecial org.mvel2.templates.TemplateRuntime.<init>:([CLorg/mvel2/templates/TemplateRegistry;Lorg/mvel2/templates/res/Node;Ljava/lang/String;)V
22: new org.mvel2.util.StringAppender
dup
invokespecial org.mvel2.util.StringAppender.<init>:()V
aload 1
new org.mvel2.integration.impl.ImmutableDefaultFactory
dup
invokespecial org.mvel2.integration.impl.ImmutableDefaultFactory.<init>:()V
invokevirtual org.mvel2.templates.TemplateRuntime.execute:(Lorg/mvel2/util/StringAppender;Ljava/lang/Object;Lorg/mvel2/integration/VariableResolverFactory;)Ljava/lang/Object;
23: checkcast java.lang.String
24: invokestatic io.vertx.core.buffer.Buffer.buffer:(Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
25: invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
end local 7 end local 6 end local 5 end local 4 26: goto 29
StackMap locals: io.vertx.ext.web.templ.mvel.impl.MVELTemplateEngineImpl java.util.Map java.lang.String io.vertx.core.Handler
StackMap stack: java.lang.Exception
27: astore 4
start local 4 28: 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 29: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lio/vertx/ext/web/templ/mvel/impl/MVELTemplateEngineImpl;
0 30 1 context Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
0 30 2 templateFile Ljava/lang/String;
0 30 3 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/core/buffer/Buffer;>;>;
1 26 4 src Ljava/lang/String;
2 26 5 template Lio/vertx/ext/web/common/template/impl/TemplateHolder<Lorg/mvel2/templates/CompiledTemplate;>;
4 18 6 idx I
5 18 7 baseDir Ljava/lang/String;
19 26 6 mvel Lorg/mvel2/templates/CompiledTemplate;
20 26 7 baseDir Ljava/lang/String;
28 29 4 ex Ljava/lang/Exception;
Exception table:
from to target type
0 9 27 Class java.lang.Exception
10 26 27 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<Lorg/mvel2/templates/CompiledTemplate;>;Lio/vertx/ext/web/templ/mvel/MVELTemplateEngine;
SourceFile: "MVELTemplateEngineImpl.java"