public abstract class java.nio.ShortBuffer extends java.nio.Buffer implements java.lang.Comparable<java.nio.ShortBuffer>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.nio.ShortBuffer
super_class: java.nio.Buffer
{
final short[] hb;
descriptor: [S
flags: (0x0010) ACC_FINAL
final int offset;
descriptor: I
flags: (0x0010) ACC_FINAL
boolean isReadOnly;
descriptor: Z
flags: (0x0000)
void <init>(int, int, int, int, short[], int);
descriptor: (IIII[SI)V
flags: (0x0000)
Code:
stack=5, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
iload 1
iload 2
iload 3
iload 4
invokespecial java.nio.Buffer.<init>:(IIII)V
1: aload 0
aload 5
putfield java.nio.ShortBuffer.hb:[S
2: aload 0
iload 6
putfield java.nio.ShortBuffer.offset:I
3: return
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/nio/ShortBuffer;
0 4 1 mark I
0 4 2 pos I
0 4 3 lim I
0 4 4 cap I
0 4 5 hb [S
0 4 6 offset I
MethodParameters:
Name Flags
mark
pos
lim
cap
hb
offset
void <init>(int, int, int, int);
descriptor: (IIII)V
flags: (0x0000)
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 1
iload 2
iload 3
iload 4
aconst_null
iconst_0
invokespecial java.nio.ShortBuffer.<init>:(IIII[SI)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/nio/ShortBuffer;
0 2 1 mark I
0 2 2 pos I
0 2 3 lim I
0 2 4 cap I
MethodParameters:
Name Flags
mark
pos
lim
cap
public static java.nio.ShortBuffer allocate(int);
descriptor: (I)Ljava/nio/ShortBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iload 0
ifge 2
1: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
new java.nio.HeapShortBuffer
dup
iload 0
iload 0
invokespecial java.nio.HeapShortBuffer.<init>:(II)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 capacity I
MethodParameters:
Name Flags
capacity
public static java.nio.ShortBuffer wrap(short[], int, int);
descriptor: ([SII)Ljava/nio/ShortBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.nio.HeapShortBuffer
dup
aload 0
iload 1
iload 2
invokespecial java.nio.HeapShortBuffer.<init>:([SII)V
1: areturn
2: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
3: new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 array [S
0 4 1 offset I
0 4 2 length I
Exception table:
from to target type
0 1 2 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
array
offset
length
public static java.nio.ShortBuffer wrap(short[]);
descriptor: ([S)Ljava/nio/ShortBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
arraylength
invokestatic java.nio.ShortBuffer.wrap:([SII)Ljava/nio/ShortBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 array [S
MethodParameters:
Name Flags
array
public abstract java.nio.ShortBuffer slice();
descriptor: ()Ljava/nio/ShortBuffer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.nio.ShortBuffer duplicate();
descriptor: ()Ljava/nio/ShortBuffer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.nio.ShortBuffer asReadOnlyBuffer();
descriptor: ()Ljava/nio/ShortBuffer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract short get();
descriptor: ()S
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.nio.ShortBuffer put(short);
descriptor: (S)Ljava/nio/ShortBuffer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
s
public abstract short get(int);
descriptor: (I)S
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
index
public abstract java.nio.ShortBuffer put(int, short);
descriptor: (IS)Ljava/nio/ShortBuffer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
index
s
public java.nio.ShortBuffer get(short[], int, int);
descriptor: ([SII)Ljava/nio/ShortBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
aload 1
arraylength
invokestatic java.nio.ShortBuffer.checkBounds:(III)V
1: iload 3
aload 0
invokevirtual java.nio.ShortBuffer.remaining:()I
if_icmple 3
2: new java.nio.BufferUnderflowException
dup
invokespecial java.nio.BufferUnderflowException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 2
iload 3
iadd
istore 4
start local 4 4: iload 2
istore 5
start local 5 5: goto 8
6: StackMap locals: int int
StackMap stack:
aload 1
iload 5
aload 0
invokevirtual java.nio.ShortBuffer.get:()S
sastore
7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 4
if_icmplt 6
end local 5 9: aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/nio/ShortBuffer;
0 10 1 dst [S
0 10 2 offset I
0 10 3 length I
4 10 4 end I
5 9 5 i I
MethodParameters:
Name Flags
dst
offset
length
public java.nio.ShortBuffer get(short[]);
descriptor: ([S)Ljava/nio/ShortBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual java.nio.ShortBuffer.get:([SII)Ljava/nio/ShortBuffer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/ShortBuffer;
0 1 1 dst [S
MethodParameters:
Name Flags
dst
public java.nio.ShortBuffer put(java.nio.ShortBuffer);
descriptor: (Ljava/nio/ShortBuffer;)Ljava/nio/ShortBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.nio.ShortBuffer.isReadOnly:()Z
ifeq 4
3: new java.nio.ReadOnlyBufferException
dup
invokespecial java.nio.ReadOnlyBufferException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ShortBuffer.remaining:()I
istore 2
start local 2 5: iload 2
aload 0
invokevirtual java.nio.ShortBuffer.remaining:()I
if_icmple 7
6: new java.nio.BufferOverflowException
dup
invokespecial java.nio.BufferOverflowException.<init>:()V
athrow
7: StackMap locals: int
StackMap stack:
iconst_0
istore 3
start local 3 8: goto 11
9: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokevirtual java.nio.ShortBuffer.get:()S
invokevirtual java.nio.ShortBuffer.put:(S)Ljava/nio/ShortBuffer;
pop
10: iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
iload 2
if_icmplt 9
end local 3 12: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljava/nio/ShortBuffer;
0 13 1 src Ljava/nio/ShortBuffer;
5 13 2 n I
8 12 3 i I
MethodParameters:
Name Flags
src
public java.nio.ShortBuffer put(short[], int, int);
descriptor: ([SII)Ljava/nio/ShortBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iload 3
aload 1
arraylength
invokestatic java.nio.ShortBuffer.checkBounds:(III)V
1: iload 3
aload 0
invokevirtual java.nio.ShortBuffer.remaining:()I
if_icmple 3
2: new java.nio.BufferOverflowException
dup
invokespecial java.nio.BufferOverflowException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 2
iload 3
iadd
istore 4
start local 4 4: iload 2
istore 5
start local 5 5: goto 8
6: StackMap locals: int int
StackMap stack:
aload 0
aload 1
iload 5
saload
invokevirtual java.nio.ShortBuffer.put:(S)Ljava/nio/ShortBuffer;
pop
7: iinc 5 1
StackMap locals:
StackMap stack:
8: iload 5
iload 4
if_icmplt 6
end local 5 9: aload 0
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/nio/ShortBuffer;
0 10 1 src [S
0 10 2 offset I
0 10 3 length I
4 10 4 end I
5 9 5 i I
MethodParameters:
Name Flags
src
offset
length
public final java.nio.ShortBuffer put(short[]);
descriptor: ([S)Ljava/nio/ShortBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual java.nio.ShortBuffer.put:([SII)Ljava/nio/ShortBuffer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/ShortBuffer;
0 1 1 src [S
MethodParameters:
Name Flags
src
public final boolean hasArray();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.ShortBuffer.hb:[S
ifnull 1
aload 0
getfield java.nio.ShortBuffer.isReadOnly:Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/nio/ShortBuffer;
public final short[] array();
descriptor: ()[S
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.ShortBuffer.hb:[S
ifnonnull 2
1: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.ShortBuffer.isReadOnly:Z
ifeq 4
3: new java.nio.ReadOnlyBufferException
dup
invokespecial java.nio.ReadOnlyBufferException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.ShortBuffer.hb:[S
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/nio/ShortBuffer;
public final int arrayOffset();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.ShortBuffer.hb:[S
ifnonnull 2
1: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.ShortBuffer.isReadOnly:Z
ifeq 4
3: new java.nio.ReadOnlyBufferException
dup
invokespecial java.nio.ReadOnlyBufferException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.ShortBuffer.offset:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/nio/ShortBuffer;
public abstract java.nio.ShortBuffer compact();
descriptor: ()Ljava/nio/ShortBuffer;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract boolean isDirect();
descriptor: ()Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
2: aload 1
ldc "[pos="
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
3: aload 1
aload 0
invokevirtual java.nio.ShortBuffer.position:()I
invokevirtual java.lang.StringBuffer.append:(I)Ljava/lang/StringBuffer;
pop
4: aload 1
ldc " lim="
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
5: aload 1
aload 0
invokevirtual java.nio.ShortBuffer.limit:()I
invokevirtual java.lang.StringBuffer.append:(I)Ljava/lang/StringBuffer;
pop
6: aload 1
ldc " cap="
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: aload 1
aload 0
invokevirtual java.nio.ShortBuffer.capacity:()I
invokevirtual java.lang.StringBuffer.append:(I)Ljava/lang/StringBuffer;
pop
8: aload 1
ldc "]"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
9: aload 1
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/nio/ShortBuffer;
1 10 1 sb Ljava/lang/StringBuffer;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: aload 0
invokevirtual java.nio.ShortBuffer.position:()I
istore 2
start local 2 2: aload 0
invokevirtual java.nio.ShortBuffer.limit:()I
iconst_1
isub
istore 3
start local 3 3: goto 6
4: StackMap locals: int int int
StackMap stack:
bipush 31
iload 1
imul
aload 0
iload 3
invokevirtual java.nio.ShortBuffer.get:(I)S
iadd
istore 1
5: iinc 3 -1
StackMap locals:
StackMap stack:
6: iload 3
iload 2
if_icmpge 4
end local 3 7: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/nio/ShortBuffer;
1 8 1 h I
2 8 2 p I
3 7 3 i I
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.nio.ShortBuffer
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast java.nio.ShortBuffer
astore 2
start local 2 5: aload 0
invokevirtual java.nio.ShortBuffer.remaining:()I
aload 2
invokevirtual java.nio.ShortBuffer.remaining:()I
if_icmpeq 7
6: iconst_0
ireturn
7: StackMap locals: java.nio.ShortBuffer
StackMap stack:
aload 0
invokevirtual java.nio.ShortBuffer.position:()I
istore 3
start local 3 8: aload 0
invokevirtual java.nio.ShortBuffer.limit:()I
iconst_1
isub
istore 4
start local 4 9: aload 2
invokevirtual java.nio.ShortBuffer.limit:()I
iconst_1
isub
istore 5
start local 5 10: goto 14
11: StackMap locals: int int int
StackMap stack:
aload 0
iload 4
invokevirtual java.nio.ShortBuffer.get:(I)S
aload 2
iload 5
invokevirtual java.nio.ShortBuffer.get:(I)S
invokestatic java.nio.ShortBuffer.equals:(SS)Z
ifne 13
12: iconst_0
ireturn
13: StackMap locals:
StackMap stack:
iinc 4 -1
iinc 5 -1
StackMap locals:
StackMap stack:
14: iload 4
iload 3
if_icmpge 11
end local 5 end local 4 15: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljava/nio/ShortBuffer;
0 16 1 ob Ljava/lang/Object;
5 16 2 that Ljava/nio/ShortBuffer;
8 16 3 p I
9 15 4 i I
10 15 5 j I
MethodParameters:
Name Flags
ob
private static boolean equals(short, short);
descriptor: (SS)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 x S
0 2 1 y S
MethodParameters:
Name Flags
x
y
public int compareTo(java.nio.ShortBuffer);
descriptor: (Ljava/nio/ShortBuffer;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.ShortBuffer.position:()I
aload 0
invokevirtual java.nio.ShortBuffer.remaining:()I
aload 1
invokevirtual java.nio.ShortBuffer.remaining:()I
invokestatic java.lang.Math.min:(II)I
iadd
istore 2
start local 2 1: aload 0
invokevirtual java.nio.ShortBuffer.position:()I
istore 3
start local 3 2: aload 1
invokevirtual java.nio.ShortBuffer.position:()I
istore 4
start local 4 3: goto 8
4: StackMap locals: int int int
StackMap stack:
aload 0
iload 3
invokevirtual java.nio.ShortBuffer.get:(I)S
aload 1
iload 4
invokevirtual java.nio.ShortBuffer.get:(I)S
invokestatic java.nio.ShortBuffer.compare:(SS)I
istore 5
start local 5 5: iload 5
ifeq 7
6: iload 5
ireturn
end local 5 7: StackMap locals:
StackMap stack:
iinc 3 1
iinc 4 1
StackMap locals:
StackMap stack:
8: iload 3
iload 2
if_icmplt 4
end local 4 end local 3 9: aload 0
invokevirtual java.nio.ShortBuffer.remaining:()I
aload 1
invokevirtual java.nio.ShortBuffer.remaining:()I
isub
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljava/nio/ShortBuffer;
0 10 1 that Ljava/nio/ShortBuffer;
1 10 2 n I
2 9 3 i I
3 9 4 j I
5 7 5 cmp I
MethodParameters:
Name Flags
that
private static int compare(short, short);
descriptor: (SS)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 0
iload 1
invokestatic java.lang.Short.compare:(SS)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x S
0 1 1 y S
MethodParameters:
Name Flags
x
y
public abstract java.nio.ByteOrder order();
descriptor: ()Ljava/nio/ByteOrder;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.ShortBuffer
invokevirtual java.nio.ShortBuffer.compareTo:(Ljava/nio/ShortBuffer;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object array();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual java.nio.ShortBuffer.array:()[S
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/nio/Buffer;Ljava/lang/Comparable<Ljava/nio/ShortBuffer;>;
SourceFile: "ShortBuffer.java"