mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 16:50:45 +00:00
getOffset renamed to getAddress to be the same in AS2 and AS3
This commit is contained in:
@@ -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<>();
|
||||
|
||||
Reference in New Issue
Block a user