AS3 - improved switch handling

This commit is contained in:
Jindra Petřík
2015-07-04 15:21:47 +02:00
parent d8c25ce3e8
commit 3a22038f03
11 changed files with 192 additions and 22 deletions

View File

@@ -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;
}
}

View File

@@ -0,0 +1,10 @@
package com.jpexs.decompiler.graph.model;
/**
*
* @author JPEXS
*/
public interface IntegerValueTypeItem {
public int intValue();
}