mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-07 01:34:49 +00:00
add missing overrides + some other small changes
This commit is contained in:
@@ -41,6 +41,7 @@ public class InitPropertyAVM2Item extends AVM2Item implements SetTypeAVM2Item, A
|
||||
return declaration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeclaration(DeclarationAVM2Item declaration) {
|
||||
this.declaration = declaration;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ public class SetLocalAVM2Item extends AVM2Item implements SetTypeAVM2Item, Assig
|
||||
return declaration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeclaration(DeclarationAVM2Item declaration) {
|
||||
this.declaration = declaration;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ public class SetPropertyAVM2Item extends AVM2Item implements SetTypeAVM2Item, As
|
||||
return declaration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeclaration(DeclarationAVM2Item declaration) {
|
||||
this.declaration = declaration;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ public class SetSlotAVM2Item extends AVM2Item implements SetTypeAVM2Item, Assign
|
||||
return declaration;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDeclaration(DeclarationAVM2Item declaration) {
|
||||
this.declaration = declaration;
|
||||
}
|
||||
|
||||
@@ -19,13 +19,11 @@ package com.jpexs.decompiler.flash.abc.avm2.model.operations;
|
||||
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instructions;
|
||||
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
|
||||
import com.jpexs.decompiler.graph.CompilationException;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
import com.jpexs.decompiler.graph.SourceGenerator;
|
||||
import com.jpexs.decompiler.graph.model.BinaryOpItem;
|
||||
import com.jpexs.decompiler.graph.model.LocalData;
|
||||
import com.jpexs.decompiler.graph.model.UnboundedTypeItem;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instructions;
|
||||
import com.jpexs.decompiler.flash.ecma.EcmaScript;
|
||||
import com.jpexs.decompiler.flash.ecma.Undefined;
|
||||
import com.jpexs.decompiler.graph.CompilationException;
|
||||
import com.jpexs.decompiler.graph.DottedChain;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
import com.jpexs.decompiler.graph.SourceGenerator;
|
||||
|
||||
@@ -21,11 +21,9 @@ import com.jpexs.decompiler.flash.abc.avm2.AVM2ConstantPool;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.NewFunctionAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.types.AssignedValue;
|
||||
import com.jpexs.decompiler.flash.abc.types.ConvertData;
|
||||
import com.jpexs.decompiler.flash.abc.types.MethodInfo;
|
||||
import com.jpexs.decompiler.flash.abc.types.Multiname;
|
||||
import com.jpexs.decompiler.flash.abc.types.Namespace;
|
||||
import com.jpexs.decompiler.flash.abc.types.ValueKind;
|
||||
import static com.jpexs.decompiler.flash.abc.types.traits.Trait.TRAIT_GETTER;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
import com.jpexs.decompiler.flash.exporters.modes.ScriptExportMode;
|
||||
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
|
||||
@@ -211,8 +209,8 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
|
||||
|
||||
if (Configuration.handleSkinPartsAutomatically.get()) {
|
||||
/*
|
||||
Hide: private static var _skinParts
|
||||
(part of [SkinPart] compilations)
|
||||
Hide: private static var _skinParts
|
||||
(part of [SkinPart] compilations)
|
||||
*/
|
||||
if (isStatic && "_skinParts".equals(getName(abc).getName(abc.constants, new ArrayList<>(), true))) {
|
||||
if (kindType == Trait.TRAIT_SLOT) {
|
||||
@@ -226,5 +224,4 @@ public class TraitSlotConst extends Trait implements TraitWithSlot {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,7 +19,6 @@ package com.jpexs.decompiler.flash.action.model;
|
||||
import com.jpexs.decompiler.flash.IdentifiersDeobfuscation;
|
||||
import com.jpexs.decompiler.flash.SourceGeneratorLocalData;
|
||||
import com.jpexs.decompiler.flash.action.swf4.ActionGetVariable;
|
||||
import com.jpexs.decompiler.flash.ecma.Undefined;
|
||||
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
|
||||
import com.jpexs.decompiler.flash.helpers.hilight.HighlightData;
|
||||
import com.jpexs.decompiler.graph.CompilationException;
|
||||
|
||||
@@ -18,10 +18,8 @@ package com.jpexs.decompiler.flash.action.swf5;
|
||||
|
||||
import com.jpexs.decompiler.flash.BaseLocalData;
|
||||
import com.jpexs.decompiler.flash.action.Action;
|
||||
import com.jpexs.decompiler.flash.action.ActionScriptObject;
|
||||
import com.jpexs.decompiler.flash.action.LocalDataArea;
|
||||
import com.jpexs.decompiler.flash.action.model.DeleteActionItem;
|
||||
import com.jpexs.decompiler.flash.ecma.Undefined;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFVersion;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
@@ -48,11 +46,11 @@ public class ActionDelete extends Action {
|
||||
@Override
|
||||
public boolean execute(LocalDataArea lda) {
|
||||
/* String memberName = lda.popAsString();
|
||||
Object o = lda.pop();
|
||||
if (o instanceof ActionScriptObject) {
|
||||
((ActionScriptObject) o).setMember(memberName, Undefined.INSTANCE);
|
||||
}
|
||||
return true;*/
|
||||
Object o = lda.pop();
|
||||
if (o instanceof ActionScriptObject) {
|
||||
((ActionScriptObject) o).setMember(memberName, Undefined.INSTANCE);
|
||||
}
|
||||
return true;*/
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,18 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2016 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* 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.flash.dumpview;
|
||||
|
||||
import com.jpexs.decompiler.flash.SWF;
|
||||
@@ -30,6 +31,7 @@ public class DumpInfoSwfNode extends DumpInfo {
|
||||
this.swf = swf;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SWF getSwf() {
|
||||
return swf;
|
||||
}
|
||||
|
||||
@@ -939,6 +939,7 @@ public class EcmaFloatingDecimal {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
// most brain-dead version
|
||||
StringBuffer result = new StringBuffer(nDigits + 8);
|
||||
|
||||
@@ -1,23 +1,21 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2016 JPEXS, All rights reserved.
|
||||
*
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 3.0 of the License, or (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library.
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.ecma;
|
||||
|
||||
import com.jpexs.decompiler.graph.model.Callable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
|
||||
@@ -23,7 +23,6 @@ import com.jpexs.decompiler.flash.types.GRADRECORD;
|
||||
import com.jpexs.decompiler.flash.types.RGB;
|
||||
import com.jpexs.decompiler.flash.types.SHAPE;
|
||||
import java.awt.BasicStroke;
|
||||
import java.awt.Shape;
|
||||
import java.awt.geom.GeneralPath;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -35,7 +34,9 @@ import java.util.List;
|
||||
public class PathExporter extends ShapeExporterBase {
|
||||
|
||||
private final List<GeneralPath> paths = new ArrayList<>();
|
||||
|
||||
private final List<GeneralPath> strokes = new ArrayList<>();
|
||||
|
||||
private double thickness = 0;
|
||||
|
||||
private GeneralPath path = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
|
||||
|
||||
@@ -22,7 +22,7 @@ package com.jpexs.decompiler.flash.importers.svg;
|
||||
*/
|
||||
public class SvgPathReader {
|
||||
|
||||
private String str;
|
||||
private final String str;
|
||||
|
||||
private int pos;
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ import java.awt.Shape;
|
||||
import java.awt.geom.AffineTransform;
|
||||
import java.awt.geom.GeneralPath;
|
||||
import java.awt.geom.PathIterator;
|
||||
import java.awt.geom.Point2D;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
@@ -204,17 +203,17 @@ public class DefineScalingGridTag extends Tag implements CharacterIdTag {
|
||||
for (int i = 0; i < targetRect.length; i++) {
|
||||
|
||||
/* sourceRect[i].xMax = roundPixels20(sourceRect[i].xMax);
|
||||
sourceRect[i].yMax = roundPixels20(sourceRect[i].yMax);
|
||||
sourceRect[i].xMin = roundPixels20(sourceRect[i].xMin);
|
||||
sourceRect[i].yMin = roundPixels20(sourceRect[i].yMin);
|
||||
sourceRect[i].yMax = roundPixels20(sourceRect[i].yMax);
|
||||
sourceRect[i].xMin = roundPixels20(sourceRect[i].xMin);
|
||||
sourceRect[i].yMin = roundPixels20(sourceRect[i].yMin);
|
||||
*/
|
||||
//System.out.println("source[" + i + "]=" + sourceRect[i]);
|
||||
//System.out.println("target[" + i + "]=" + targetRect[i]);
|
||||
|
||||
/*targetRect[i].xMax = roundPixels20(targetRect[i].xMax);
|
||||
targetRect[i].yMax = roundPixels20(targetRect[i].yMax);
|
||||
targetRect[i].xMin = roundPixels20(targetRect[i].xMin);
|
||||
targetRect[i].yMin = roundPixels20(targetRect[i].yMin);
|
||||
targetRect[i].yMax = roundPixels20(targetRect[i].yMax);
|
||||
targetRect[i].xMin = roundPixels20(targetRect[i].xMin);
|
||||
targetRect[i].yMin = roundPixels20(targetRect[i].yMin);
|
||||
*/
|
||||
transforms[i] = rectToRectMatrix(sourceRect[i], targetRect[i]);
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ public class XFLXmlWriter implements XMLStreamWriter {
|
||||
|
||||
private static final Logger logger = Logger.getLogger(XFLXmlWriter.class.getName());
|
||||
|
||||
private String newLineCharacters = "\n"; //Helper.newLine;
|
||||
private final String newLineCharacters = "\n"; //Helper.newLine;
|
||||
|
||||
private boolean newLine = true;
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ import com.jpexs.decompiler.flash.abc.avm2.model.NewArrayAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.NewObjectAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.NullAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.StringAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.ThisAVM2Item;
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.UndefinedAVM2Item;
|
||||
import com.jpexs.decompiler.flash.action.model.DirectValueActionItem;
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
|
||||
@@ -24,7 +24,6 @@ import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphTargetItem;
|
||||
import com.jpexs.decompiler.graph.SimpleValue;
|
||||
import com.jpexs.decompiler.graph.SourceGenerator;
|
||||
import com.jpexs.decompiler.graph.TypeItem;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.graph.model;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.avm2.model.ThisAVM2Item;
|
||||
import com.jpexs.decompiler.flash.helpers.GraphTextWriter;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItem;
|
||||
import com.jpexs.decompiler.graph.GraphSourceItemPos;
|
||||
@@ -31,6 +30,7 @@ import java.util.Set;
|
||||
public abstract class UnaryOpItem extends GraphTargetItem implements UnaryOp {
|
||||
|
||||
public String operator;
|
||||
|
||||
protected String coerce;
|
||||
|
||||
public UnaryOpItem(GraphSourceItem instruction, GraphSourceItem lineStartItem, int precedence, GraphTargetItem value, String operator, String coerce) {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
*/
|
||||
package com.jpexs.helpers;
|
||||
|
||||
import com.jpexs.decompiler.flash.abc.avm2.AVM2Code;
|
||||
import com.jpexs.decompiler.flash.types.annotations.Internal;
|
||||
import com.jpexs.decompiler.flash.types.annotations.SWFField;
|
||||
import java.lang.reflect.Array;
|
||||
|
||||
Reference in New Issue
Block a user