public class com.sun.tools.javah.Mangle
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.javah.Mangle
super_class: java.lang.Object
{
private javax.lang.model.util.Elements elems;
descriptor: Ljavax/lang/model/util/Elements;
flags: (0x0002) ACC_PRIVATE
private javax.lang.model.util.Types types;
descriptor: Ljavax/lang/model/util/Types;
flags: (0x0002) ACC_PRIVATE
void <init>(javax.lang.model.util.Elements, javax.lang.model.util.Types);
descriptor: (Ljavax/lang/model/util/Elements;Ljavax/lang/model/util/Types;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.tools.javah.Mangle.elems:Ljavax/lang/model/util/Elements;
2: aload 0
aload 2
putfield com.sun.tools.javah.Mangle.types:Ljavax/lang/model/util/Types;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javah/Mangle;
0 4 1 elems Ljavax/lang/model/util/Elements;
0 4 2 types Ljavax/lang/model/util/Types;
MethodParameters:
Name Flags
elems
types
public final java.lang.String mangle(java.lang.CharSequence, int);
descriptor: (Ljava/lang/CharSequence;I)Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
bipush 100
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 3
start local 3 1: aload 1
invokeinterface java.lang.CharSequence.length:()I
istore 4
start local 4 2: iconst_0
istore 5
start local 5 3: goto 46
4: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
aload 1
iload 5
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 6
start local 6 5: iload 6
invokestatic com.sun.tools.javah.Mangle.isalnum:(C)Z
ifeq 8
6: aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: goto 45
StackMap locals: int
StackMap stack:
8: iload 6
bipush 46
if_icmpne 12
9: iload 2
iconst_1
if_icmpne 12
10: aload 3
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: goto 45
StackMap locals:
StackMap stack:
12: iload 6
bipush 36
if_icmpne 17
13: iload 2
iconst_1
if_icmpne 17
14: aload 3
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
15: aload 3
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
16: goto 45
StackMap locals:
StackMap stack:
17: iload 6
bipush 95
if_icmpne 20
iload 2
iconst_2
if_icmpne 20
18: aload 3
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
19: goto 45
StackMap locals:
StackMap stack:
20: iload 6
bipush 95
if_icmpne 23
iload 2
iconst_1
if_icmpne 23
21: aload 3
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
22: goto 45
StackMap locals:
StackMap stack:
23: iload 2
iconst_4
if_icmpne 38
24: aconst_null
astore 7
start local 7 25: iload 6
bipush 95
if_icmpne 27
26: ldc "_1"
astore 7
goto 33
27: StackMap locals: java.lang.String
StackMap stack:
iload 6
bipush 46
if_icmpne 29
28: ldc "_"
astore 7
goto 33
29: StackMap locals:
StackMap stack:
iload 6
bipush 59
if_icmpne 31
30: ldc "_2"
astore 7
goto 33
31: StackMap locals:
StackMap stack:
iload 6
bipush 91
if_icmpne 33
32: ldc "_3"
astore 7
33: StackMap locals:
StackMap stack:
aload 7
ifnull 36
34: aload 3
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
35: goto 45
36: StackMap locals:
StackMap stack:
aload 3
aload 0
iload 6
invokevirtual com.sun.tools.javah.Mangle.mangleChar:(C)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 37: goto 45
StackMap locals:
StackMap stack:
38: iload 2
iconst_5
if_icmpne 44
39: iload 6
invokestatic com.sun.tools.javah.Mangle.isprint:(C)Z
ifeq 42
40: aload 3
iload 6
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
41: goto 45
42: StackMap locals:
StackMap stack:
aload 3
aload 0
iload 6
invokevirtual com.sun.tools.javah.Mangle.mangleChar:(C)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
43: goto 45
44: StackMap locals:
StackMap stack:
aload 3
aload 0
iload 6
invokevirtual com.sun.tools.javah.Mangle.mangleChar:(C)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 6 45: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
46: iload 5
iload 4
if_icmplt 4
end local 5 47: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 48 0 this Lcom/sun/tools/javah/Mangle;
0 48 1 name Ljava/lang/CharSequence;
0 48 2 mtype I
1 48 3 result Ljava/lang/StringBuilder;
2 48 4 length I
3 47 5 i I
5 45 6 ch C
25 37 7 esc Ljava/lang/String;
MethodParameters:
Name Flags
name
mtype
public java.lang.String mangleMethod(javax.lang.model.element.ExecutableElement, javax.lang.model.element.TypeElement, int);
descriptor: (Ljavax/lang/model/element/ExecutableElement;Ljavax/lang/model/element/TypeElement;I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.StringBuilder
dup
bipush 100
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 4
start local 4 1: aload 4
ldc "Java_"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: iload 3
bipush 6
if_icmpne 10
3: aload 4
aload 0
aload 2
invokeinterface javax.lang.model.element.TypeElement.getQualifiedName:()Ljavax/lang/model/element/Name;
iconst_1
invokevirtual com.sun.tools.javah.Mangle.mangle:(Ljava/lang/CharSequence;I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 4
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: aload 4
aload 0
aload 1
invokeinterface javax.lang.model.element.ExecutableElement.getSimpleName:()Ljavax/lang/model/element/Name;
6: iconst_3
7: invokevirtual com.sun.tools.javah.Mangle.mangle:(Ljava/lang/CharSequence;I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 4
ldc "_stub"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
10: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 4
aload 0
aload 0
aload 2
invokevirtual com.sun.tools.javah.Mangle.getInnerQualifiedName:(Ljavax/lang/model/element/TypeElement;)Ljava/lang/String;
iconst_4
invokevirtual com.sun.tools.javah.Mangle.mangle:(Ljava/lang/CharSequence;I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 4
bipush 95
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
12: aload 4
aload 0
aload 1
invokeinterface javax.lang.model.element.ExecutableElement.getSimpleName:()Ljavax/lang/model/element/Name;
13: iconst_4
14: invokevirtual com.sun.tools.javah.Mangle.mangle:(Ljava/lang/CharSequence;I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: iload 3
bipush 8
if_icmpne 24
16: aload 4
ldc "__"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
17: aload 0
aload 1
invokevirtual com.sun.tools.javah.Mangle.signature:(Ljavax/lang/model/element/ExecutableElement;)Ljava/lang/String;
astore 5
start local 5 18: new com.sun.tools.javah.TypeSignature
dup
aload 0
getfield com.sun.tools.javah.Mangle.elems:Ljavax/lang/model/util/Elements;
invokespecial com.sun.tools.javah.TypeSignature.<init>:(Ljavax/lang/model/util/Elements;)V
astore 6
start local 6 19: aload 6
aload 5
aload 1
invokeinterface javax.lang.model.element.ExecutableElement.getReturnType:()Ljavax/lang/model/type/TypeMirror;
invokevirtual com.sun.tools.javah.TypeSignature.getTypeSignature:(Ljava/lang/String;Ljavax/lang/model/type/TypeMirror;)Ljava/lang/String;
astore 7
start local 7 20: aload 7
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 7
21: aload 7
iconst_0
aload 7
bipush 41
invokevirtual java.lang.String.lastIndexOf:(I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
22: aload 7
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 7
23: aload 4
aload 0
aload 7
iconst_4
invokevirtual com.sun.tools.javah.Mangle.mangle:(Ljava/lang/CharSequence;I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 7 end local 6 end local 5 24: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/sun/tools/javah/Mangle;
0 25 1 method Ljavax/lang/model/element/ExecutableElement;
0 25 2 clazz Ljavax/lang/model/element/TypeElement;
0 25 3 mtype I
1 25 4 result Ljava/lang/StringBuilder;
18 24 5 typesig Ljava/lang/String;
19 24 6 newTypeSig Lcom/sun/tools/javah/TypeSignature;
20 24 7 sig Ljava/lang/String;
Exceptions:
throws com.sun.tools.javah.TypeSignature$SignatureException
MethodParameters:
Name Flags
method
clazz
mtype
private java.lang.String getInnerQualifiedName(javax.lang.model.element.TypeElement);
descriptor: (Ljavax/lang/model/element/TypeElement;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.tools.javah.Mangle.elems:Ljavax/lang/model/util/Elements;
aload 1
invokeinterface javax.lang.model.util.Elements.getBinaryName:(Ljavax/lang/model/element/TypeElement;)Ljavax/lang/model/element/Name;
invokeinterface javax.lang.model.element.Name.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/javah/Mangle;
0 1 1 clazz Ljavax/lang/model/element/TypeElement;
MethodParameters:
Name Flags
clazz
public final java.lang.String mangleChar(char);
descriptor: (C)Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: iload 1
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 2
start local 2 1: iconst_5
aload 2
invokevirtual java.lang.String.length:()I
isub
istore 3
start local 3 2: bipush 6
newarray 5
astore 4
start local 4 3: aload 4
iconst_0
bipush 95
castore
4: iconst_1
istore 5
start local 5 5: goto 8
6: StackMap locals: com.sun.tools.javah.Mangle int java.lang.String int char[] int
StackMap stack:
aload 4
iload 5
bipush 48
castore
7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 3
if_icmple 6
end local 5 9: iload 3
iconst_1
iadd
istore 5
start local 5 10: iconst_0
istore 6
start local 6 11: goto 14
12: StackMap locals: int
StackMap stack:
aload 4
iload 5
aload 2
iload 6
invokevirtual java.lang.String.charAt:(I)C
castore
13: iinc 5 1
iinc 6 1
StackMap locals:
StackMap stack:
14: iload 5
bipush 6
if_icmplt 12
end local 6 end local 5 15: new java.lang.String
dup
aload 4
invokespecial java.lang.String.<init>:([C)V
areturn
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 Lcom/sun/tools/javah/Mangle;
0 16 1 ch C
1 16 2 s Ljava/lang/String;
2 16 3 nzeros I
3 16 4 result [C
5 9 5 i I
10 15 5 i I
11 15 6 j I
MethodParameters:
Name Flags
ch
private java.lang.String signature(javax.lang.model.element.ExecutableElement);
descriptor: (Ljavax/lang/model/element/ExecutableElement;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: ldc "("
astore 3
start local 3 2: aload 1
invokeinterface javax.lang.model.element.ExecutableElement.getParameters:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: com.sun.tools.javah.Mangle javax.lang.model.element.ExecutableElement java.lang.StringBuilder java.lang.String top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.lang.model.element.VariableElement
astore 4
start local 4 4: aload 2
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 2
aload 0
getfield com.sun.tools.javah.Mangle.types:Ljavax/lang/model/util/Types;
aload 4
invokeinterface javax.lang.model.element.VariableElement.asType:()Ljavax/lang/model/type/TypeMirror;
invokeinterface javax.lang.model.util.Types.erasure:(Ljavax/lang/model/type/TypeMirror;)Ljavax/lang/model/type/TypeMirror;
invokeinterface javax.lang.model.type.TypeMirror.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: ldc ","
astore 3
end local 4 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 2
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/tools/javah/Mangle;
0 10 1 e Ljavax/lang/model/element/ExecutableElement;
1 10 2 sb Ljava/lang/StringBuilder;
2 10 3 sep Ljava/lang/String;
4 7 4 p Ljavax/lang/model/element/VariableElement;
MethodParameters:
Name Flags
e
private static boolean isalnum(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 127
if_icmpgt 6
1: iload 0
bipush 65
if_icmplt 2
iload 0
bipush 90
if_icmple 5
2: StackMap locals:
StackMap stack:
iload 0
bipush 97
if_icmplt 3
iload 0
bipush 122
if_icmple 5
3: StackMap locals:
StackMap stack:
iload 0
bipush 48
if_icmplt 6
iload 0
bipush 57
4: if_icmpgt 6
StackMap locals:
StackMap stack:
5: iconst_1
ireturn
StackMap locals:
StackMap stack:
6: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 ch C
MethodParameters:
Name Flags
ch
private static boolean isprint(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 32
if_icmplt 1
iload 0
bipush 126
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch C
MethodParameters:
Name Flags
ch
}
SourceFile: "Mangle.java"
NestMembers:
com.sun.tools.javah.Mangle$Type
InnerClasses:
public Type = com.sun.tools.javah.Mangle$Type of com.sun.tools.javah.Mangle
SignatureException = com.sun.tools.javah.TypeSignature$SignatureException of com.sun.tools.javah.TypeSignature