public final class org.apache.lucene.util.BytesRef implements java.lang.Comparable<org.apache.lucene.util.BytesRef>, java.lang.Cloneable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.lucene.util.BytesRef
super_class: java.lang.Object
{
public static final byte[] EMPTY_BYTES;
descriptor: [B
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public byte[] bytes;
descriptor: [B
flags: (0x0001) ACC_PUBLIC
public int offset;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public int length;
descriptor: I
flags: (0x0001) ACC_PUBLIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/lucene/util/BytesRef;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.lucene.util.BytesRef.$assertionsDisabled:Z
3: iconst_0
newarray 8
putstatic org.apache.lucene.util.BytesRef.EMPTY_BYTES:[B
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.lucene.util.BytesRef.EMPTY_BYTES:[B
invokespecial org.apache.lucene.util.BytesRef.<init>:([B)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/BytesRef;
public void <init>(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.apache.lucene.util.BytesRef.bytes:[B
2: aload 0
iload 2
putfield org.apache.lucene.util.BytesRef.offset:I
3: aload 0
iload 3
putfield org.apache.lucene.util.BytesRef.length:I
4: getstatic org.apache.lucene.util.BytesRef.$assertionsDisabled:Z
ifne 5
aload 0
invokevirtual org.apache.lucene.util.BytesRef.isValid:()Z
ifne 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals: org.apache.lucene.util.BytesRef byte[] int int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/util/BytesRef;
0 6 1 bytes [B
0 6 2 offset I
0 6 3 length I
MethodParameters:
Name Flags
bytes
offset
length
public void <init>(byte[]);
descriptor: ([B)V
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
invokespecial org.apache.lucene.util.BytesRef.<init>:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/BytesRef;
0 2 1 bytes [B
MethodParameters:
Name Flags
bytes
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
newarray 8
putfield org.apache.lucene.util.BytesRef.bytes:[B
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/BytesRef;
0 3 1 capacity I
MethodParameters:
Name Flags
capacity
public void <init>(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.lang.CharSequence.length:()I
invokestatic org.apache.lucene.util.UnicodeUtil.maxUTF8Length:(I)I
newarray 8
invokespecial org.apache.lucene.util.BytesRef.<init>:([B)V
1: aload 0
aload 1
iconst_0
aload 1
invokeinterface java.lang.CharSequence.length:()I
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
invokestatic org.apache.lucene.util.UnicodeUtil.UTF16toUTF8:(Ljava/lang/CharSequence;II[B)I
putfield org.apache.lucene.util.BytesRef.length:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/BytesRef;
0 3 1 text Ljava/lang/CharSequence;
MethodParameters:
Name Flags
text
public boolean bytesEquals(org.apache.lucene.util.BytesRef);
descriptor: (Lorg/apache/lucene/util/BytesRef;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
iadd
1: aload 1
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 1
getfield org.apache.lucene.util.BytesRef.offset:I
aload 1
getfield org.apache.lucene.util.BytesRef.offset:I
aload 1
getfield org.apache.lucene.util.BytesRef.length:I
iadd
2: invokestatic org.apache.lucene.util.FutureArrays.equals:([BII[BII)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/BytesRef;
0 3 1 other Lorg/apache/lucene/util/BytesRef;
MethodParameters:
Name Flags
other
public org.apache.lucene.util.BytesRef clone();
descriptor: ()Lorg/apache/lucene/util/BytesRef;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new org.apache.lucene.util.BytesRef
dup
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
invokespecial org.apache.lucene.util.BytesRef.<init>:([BII)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/BytesRef;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.apache.lucene.util.StringHelper.GOOD_FAST_HASH_SEED:I
invokestatic org.apache.lucene.util.StringHelper.murmurhash3_x86_32:(Lorg/apache/lucene/util/BytesRef;I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/BytesRef;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof org.apache.lucene.util.BytesRef
ifeq 4
3: aload 0
aload 1
checkcast org.apache.lucene.util.BytesRef
invokevirtual org.apache.lucene.util.BytesRef.bytesEquals:(Lorg/apache/lucene/util/BytesRef;)Z
ireturn
4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/lucene/util/BytesRef;
0 5 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
public java.lang.String utf8ToString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.BytesRef.length:I
newarray 5
astore 1
start local 1 1: aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
aload 1
invokestatic org.apache.lucene.util.UnicodeUtil.UTF8toUTF16:([BII[C)I
istore 2
start local 2 2: new java.lang.String
dup
aload 1
iconst_0
iload 2
invokespecial java.lang.String.<init>:([CII)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/BytesRef;
1 3 1 ref [C
2 3 2 len I
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
2: aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
iadd
istore 2
start local 2 3: aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
istore 3
start local 3 4: goto 9
5: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
iload 3
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
if_icmple 7
6: aload 1
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
7: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
iload 3
baload
sipush 255
iand
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 2
if_icmplt 5
end local 3 10: aload 1
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/lucene/util/BytesRef;
1 12 1 sb Ljava/lang/StringBuilder;
3 12 2 end I
4 10 3 i I
public int compareTo(org.apache.lucene.util.BytesRef);
descriptor: (Lorg/apache/lucene/util/BytesRef;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
iadd
1: aload 1
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 1
getfield org.apache.lucene.util.BytesRef.offset:I
aload 1
getfield org.apache.lucene.util.BytesRef.offset:I
aload 1
getfield org.apache.lucene.util.BytesRef.length:I
iadd
2: invokestatic org.apache.lucene.util.FutureArrays.compareUnsigned:([BII[BII)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/BytesRef;
0 3 1 other Lorg/apache/lucene/util/BytesRef;
MethodParameters:
Name Flags
other
public static org.apache.lucene.util.BytesRef deepCopyOf(org.apache.lucene.util.BytesRef);
descriptor: (Lorg/apache/lucene/util/BytesRef;)Lorg/apache/lucene/util/BytesRef;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: new org.apache.lucene.util.BytesRef
dup
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
iadd
invokestatic org.apache.lucene.util.ArrayUtil.copyOfSubArray:([BII)[B
iconst_0
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
invokespecial org.apache.lucene.util.BytesRef.<init>:([BII)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 other Lorg/apache/lucene/util/BytesRef;
MethodParameters:
Name Flags
other
public boolean isValid();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
ifnonnull 2
1: new java.lang.IllegalStateException
dup
ldc "bytes is null"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
ifge 4
3: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "length is negative: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
arraylength
if_icmple 6
5: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "length is out of bounds: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ",bytes.length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
ifge 8
7: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "offset is negative: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
arraylength
if_icmple 10
9: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "offset out of bounds: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ",bytes.length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
iadd
ifge 12
11: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "offset+length is negative: offset="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ",length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
iadd
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
arraylength
if_icmple 14
13: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "offset+length out of bounds: offset="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.apache.lucene.util.BytesRef.offset:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ",length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.util.BytesRef.length:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ",bytes.length="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.util.BytesRef.bytes:[B
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/lucene/util/BytesRef;
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 org.apache.lucene.util.BytesRef
invokevirtual org.apache.lucene.util.BytesRef.compareTo:(Lorg/apache/lucene/util/BytesRef;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.lucene.util.BytesRef.clone:()Lorg/apache/lucene/util/BytesRef;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.CloneNotSupportedException
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Lorg/apache/lucene/util/BytesRef;>;Ljava/lang/Cloneable;
SourceFile: "BytesRef.java"