Add pastEnd() method to RegisterIterator

git-svn-id: https://smali.googlecode.com/svn/trunk@608 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
JesusFreke@JesusFreke.com
2010-02-08 02:27:18 +00:00
parent 06d1aacf61
commit 6192896f88

View File

@ -1077,6 +1077,7 @@ public class MethodAnalyzer {
int getRegister();
boolean moveNext();
int getCount();
boolean pastEnd();
}
private boolean handleFilledNewArrayCommon(AnalyzedInstruction analyzedInstruction,
@ -1142,15 +1143,16 @@ public class MethodAnalyzer {
public boolean moveNext() {
currentRegister++;
if (currentRegister >= registerCount) {
return false;
}
return true;
return pastEnd();
}
public int getCount() {
return registerCount;
}
public boolean pastEnd() {
return currentRegister >= registerCount;
}
});
}
@ -1178,15 +1180,16 @@ public class MethodAnalyzer {
public boolean moveNext() {
currentRegister++;
if (currentRegister >= registerCount) {
return false;
}
return true;
return pastEnd();
}
public int getCount() {
return registerCount;
}
public boolean pastEnd() {
return currentRegister >= registerCount;
}
});
}