public class org.jruby.ext.nkf.CommandParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.nkf.CommandParser
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/jruby/ext/nkf/CommandParser;
public org.jruby.ext.nkf.Command parse(org.jruby.ext.nkf.Options, java.lang.String);
descriptor: (Lorg/jruby/ext/nkf/Options;Ljava/lang/String;)Lorg/jruby/ext/nkf/Command;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=11, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.ext.nkf.Command
dup
invokespecial org.jruby.ext.nkf.Command.<init>:()V
astore 3
start local 3 1: aload 2
ldc "\\s"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 4
start local 4 2: iconst_0
istore 5
start local 5 3: goto 24
4: StackMap locals: org.jruby.ext.nkf.Command java.lang.String[] int
StackMap stack:
aload 4
iload 5
aaload
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 9
5: aload 0
aload 4
iload 5
aaload
invokevirtual org.jruby.ext.nkf.CommandParser.stripDash:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 6: aload 1
aload 6
invokevirtual org.jruby.ext.nkf.Options.hasLongOption:(Ljava/lang/String;)Z
ifeq 23
7: aload 3
aload 1
aload 6
invokevirtual org.jruby.ext.nkf.Options.matchLongOption:(Ljava/lang/String;)Lorg/jruby/ext/nkf/Option;
invokevirtual org.jruby.ext.nkf.Command.addOption:(Lorg/jruby/ext/nkf/Option;)V
end local 6 8: goto 23
9: StackMap locals:
StackMap stack:
aload 0
aload 4
iload 5
aaload
invokevirtual org.jruby.ext.nkf.CommandParser.stripDash:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 10: aload 6
invokevirtual java.lang.String.length:()I
istore 7
start local 7 11: iconst_0
istore 8
start local 8 12: goto 22
13: StackMap locals: java.lang.String int int
StackMap stack:
aload 1
aload 6
invokevirtual org.jruby.ext.nkf.Options.hasShortOption:(Ljava/lang/String;)Z
ifeq 20
14: aload 1
aload 6
invokevirtual org.jruby.ext.nkf.Options.matchShortOption:(Ljava/lang/String;)Lorg/jruby/ext/nkf/Option;
astore 9
start local 9 15: aload 9
invokevirtual org.jruby.ext.nkf.Option.getValue:()Ljava/lang/String;
ifnull 19
16: aload 9
invokevirtual org.jruby.ext.nkf.Option.getValue:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
istore 10
start local 10 17: aload 6
iload 10
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 6
18: iload 8
iload 10
iadd
istore 8
end local 10 19: StackMap locals: org.jruby.ext.nkf.Option
StackMap stack:
aload 3
aload 9
invokevirtual org.jruby.ext.nkf.Command.addOption:(Lorg/jruby/ext/nkf/Option;)V
end local 9 20: StackMap locals:
StackMap stack:
aload 6
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 6
21: iinc 8 1
StackMap locals:
StackMap stack:
22: iload 8
iload 7
if_icmplt 13
end local 8 end local 7 end local 6 23: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
24: iload 5
aload 4
arraylength
if_icmplt 4
end local 5 25: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/jruby/ext/nkf/CommandParser;
0 26 1 opt Lorg/jruby/ext/nkf/Options;
0 26 2 args Ljava/lang/String;
1 26 3 cc Lorg/jruby/ext/nkf/Command;
2 26 4 tokens [Ljava/lang/String;
3 25 5 i I
6 8 6 s Ljava/lang/String;
10 23 6 s Ljava/lang/String;
11 23 7 max I
12 23 8 j I
15 20 9 cmd Lorg/jruby/ext/nkf/Option;
17 19 10 op_len I
MethodParameters:
Name Flags
opt
args
private java.lang.String stripDash(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 1
iconst_2
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 1
iconst_1
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/nkf/CommandParser;
0 5 1 s Ljava/lang/String;
MethodParameters:
Name Flags
s
}
SourceFile: "CommandParser.java"