public class org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor implements org.hibernate.tool.hbm2ddl.ImportSqlCommandExtractor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/hibernate/tool/hbm2ddl/SingleLineSqlCommandExtractor;
public java.lang.String[] extractCommands(java.io.Reader);
descriptor: (Ljava/io/Reader;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new java.io.BufferedReader
dup
aload 1
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 2
start local 2 1: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 3
start local 3 2: aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 4
start local 4 3: goto 11
4: StackMap locals: java.io.BufferedReader java.util.List java.lang.String
StackMap stack:
aload 4
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 5
start local 5 5: aload 5
invokestatic org.hibernate.internal.util.StringHelper.isEmpty:(Ljava/lang/String;)Z
ifne 10
aload 0
aload 5
invokevirtual org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor.isComment:(Ljava/lang/String;)Z
ifeq 7
6: goto 10
7: StackMap locals: java.lang.String
StackMap stack:
aload 5
ldc ";"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 9
8: aload 5
iconst_0
aload 5
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
9: StackMap locals:
StackMap stack:
aload 3
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 10: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 4
StackMap locals:
StackMap stack:
11: aload 4
ifnonnull 4
end local 4 12: aload 3
aload 3
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
13: areturn
14: StackMap locals: org.hibernate.tool.hbm2ddl.SingleLineSqlCommandExtractor java.io.Reader java.io.BufferedReader java.util.List
StackMap stack: java.io.IOException
astore 4
start local 4 15: new org.hibernate.tool.hbm2ddl.ImportScriptException
dup
ldc "Error during import script parsing."
aload 4
invokespecial org.hibernate.tool.hbm2ddl.ImportScriptException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/hibernate/tool/hbm2ddl/SingleLineSqlCommandExtractor;
0 16 1 reader Ljava/io/Reader;
1 16 2 bufferedReader Ljava/io/BufferedReader;
2 16 3 statementList Ljava/util/List<Ljava/lang/String;>;
3 12 4 sql Ljava/lang/String;
5 10 5 trimmedSql Ljava/lang/String;
15 16 4 e Ljava/io/IOException;
Exception table:
from to target type
2 13 14 Class java.io.IOException
MethodParameters:
Name Flags
reader
private boolean isComment(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
aload 1
ldc "//"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
aload 1
ldc "/*"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/tool/hbm2ddl/SingleLineSqlCommandExtractor;
0 2 1 line Ljava/lang/String;
MethodParameters:
Name Flags
line final
}
SourceFile: "SingleLineSqlCommandExtractor.java"