getOffset renamed to getAddress to be the same in AS2 and AS3

This commit is contained in:
2015-12-08 13:35:39 +01:00
parent e2e4bd70ce
commit adf9a5b49c
12 changed files with 65 additions and 71 deletions
@@ -122,7 +122,6 @@ public abstract class Action implements GraphSourceItem {
*/
public int actionLength;
// todo: honfika: rename to offset to be similar with AS3
private long address;
@Override
@@ -181,6 +180,7 @@ public abstract class Action implements GraphSourceItem {
*
* @return address of this action
*/
@Override
public long getAddress() {
return address;
}
@@ -209,7 +209,6 @@ public abstract class Action implements GraphSourceItem {
}
public int getTotalActionLength() {
// honfika: todo rename to getBytesLength to match the name with the similar method in AS3
return actionLength + 1 + (actionCode >= 0x80 ? 2 : 0);
}
@@ -931,11 +930,6 @@ public abstract class Action implements GraphSourceItem {
return false;
}
@Override
public long getOffset() {
return getAddress();
}
@Override
public List<Integer> getBranches(GraphSource code) {
return new ArrayList<>();