public class org.apache.commons.collections4.iterators.ArrayIterator<E> implements org.apache.commons.collections4.ResettableIterator<E>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.commons.collections4.iterators.ArrayIterator
super_class: java.lang.Object
{
final java.lang.Object array;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
final int startIndex;
descriptor: I
flags: (0x0010) ACC_FINAL
final int endIndex;
descriptor: I
flags: (0x0010) ACC_FINAL
int index;
descriptor: I
flags: (0x0000)
public void <init>(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial org.apache.commons.collections4.iterators.ArrayIterator.<init>:(Ljava/lang/Object;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
0 2 1 array Ljava/lang/Object;
MethodParameters:
Name Flags
array final
public void <init>(java.lang.Object, int);
descriptor: (Ljava/lang/Object;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
aload 1
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
invokespecial org.apache.commons.collections4.iterators.ArrayIterator.<init>:(Ljava/lang/Object;II)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
0 2 1 array Ljava/lang/Object;
0 2 2 startIndex I
MethodParameters:
Name Flags
array final
startIndex final
public void <init>(java.lang.Object, int, int);
descriptor: (Ljava/lang/Object;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, 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
iconst_0
putfield org.apache.commons.collections4.iterators.ArrayIterator.index:I
2: aload 0
aload 1
putfield org.apache.commons.collections4.iterators.ArrayIterator.array:Ljava/lang/Object;
3: aload 0
iload 2
putfield org.apache.commons.collections4.iterators.ArrayIterator.startIndex:I
4: aload 0
iload 3
putfield org.apache.commons.collections4.iterators.ArrayIterator.endIndex:I
5: aload 0
iload 2
putfield org.apache.commons.collections4.iterators.ArrayIterator.index:I
6: aload 1
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
istore 4
start local 4 7: aload 0
iload 2
iload 4
ldc "start"
invokevirtual org.apache.commons.collections4.iterators.ArrayIterator.checkBound:(IILjava/lang/String;)V
8: aload 0
iload 3
iload 4
ldc "end"
invokevirtual org.apache.commons.collections4.iterators.ArrayIterator.checkBound:(IILjava/lang/String;)V
9: iload 3
iload 2
if_icmpge 11
10: new java.lang.IllegalArgumentException
dup
ldc "End index must not be less than start index."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: org.apache.commons.collections4.iterators.ArrayIterator java.lang.Object int int int
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
0 12 1 array Ljava/lang/Object;
0 12 2 startIndex I
0 12 3 endIndex I
7 12 4 len I
MethodParameters:
Name Flags
array final
startIndex final
endIndex final
protected void checkBound(int, int, java.lang.String);
descriptor: (IILjava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 2
if_icmple 6
1: new java.lang.ArrayIndexOutOfBoundsException
dup
2: new java.lang.StringBuilder
dup
ldc "Attempt to make an ArrayIterator that "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc "s beyond the end of the array. "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
iload 1
ifge 12
7: new java.lang.ArrayIndexOutOfBoundsException
dup
8: new java.lang.StringBuilder
dup
ldc "Attempt to make an ArrayIterator that "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc "s before the start of the array. "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
0 13 1 bound I
0 13 2 len I
0 13 3 type Ljava/lang/String;
MethodParameters:
Name Flags
bound final
len final
type final
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.ArrayIterator.index:I
aload 0
getfield org.apache.commons.collections4.iterators.ArrayIterator.endIndex:I
if_icmpge 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 Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
public E next();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.commons.collections4.iterators.ArrayIterator.hasNext:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.commons.collections4.iterators.ArrayIterator.array:Ljava/lang/Object;
aload 0
dup
getfield org.apache.commons.collections4.iterators.ArrayIterator.index:I
dup_x1
iconst_1
iadd
putfield org.apache.commons.collections4.iterators.ArrayIterator.index:I
invokestatic java.lang.reflect.Array.get:(Ljava/lang/Object;I)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
Signature: ()TE;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "remove() method is not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
public java.lang.Object getArray();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.ArrayIterator.array:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
public int getStartIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.ArrayIterator.startIndex:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
public int getEndIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.commons.collections4.iterators.ArrayIterator.endIndex:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield org.apache.commons.collections4.iterators.ArrayIterator.startIndex:I
putfield org.apache.commons.collections4.iterators.ArrayIterator.index:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/commons/collections4/iterators/ArrayIterator<TE;>;
}
Signature: <E:Ljava/lang/Object;>Ljava/lang/Object;Lorg/apache/commons/collections4/ResettableIterator<TE;>;
SourceFile: "ArrayIterator.java"