mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-04 18:34:30 +00:00
AS3 - improved switch handling
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.graph.model;
|
||||
|
||||
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
|
||||
@@ -25,7 +26,7 @@ import java.util.Set;
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
*/
|
||||
public class IntegerValueItem extends GraphTargetItem implements IntegerValueTypeItem {
|
||||
|
||||
private final int intValue;
|
||||
|
||||
@@ -46,7 +47,7 @@ public class IntegerValueItem extends GraphTargetItem {
|
||||
|
||||
@Override
|
||||
public Object getResult() {
|
||||
public Object getResult() {
|
||||
return (long) intValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -58,4 +59,9 @@ public class IntegerValueItem extends GraphTargetItem {
|
||||
public GraphTargetItem returnType() {
|
||||
return TypeItem.UNBOUNDED;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int intValue() {
|
||||
return intValue;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.jpexs.decompiler.graph.model;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public interface IntegerValueTypeItem {
|
||||
|
||||
public int intValue();
|
||||
}
|
||||
Reference in New Issue
Block a user