diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ParseException.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ParseException.java index 079c2563b..014dacb68 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ParseException.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/ParseException.java @@ -36,8 +36,8 @@ public abstract class ParseException extends Exception { /** * Constructs a new parse exception. * - * @param text - * @param line + * @param text Text of the exception + * @param line Line number where the exception occurred */ public ParseException(String text, long line) { super("ParseException:" + text + " on line " + line); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABC.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABC.java index 5803e61ff..718621f8d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABC.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABC.java @@ -131,7 +131,7 @@ public class ABC implements Openable { */ private ABCMethodIndexing abcMethodIndexing; - /* + /** * ABC minor version with decimal support */ public static final int MINORwithDECIMAL = 17; @@ -151,7 +151,7 @@ public class ABC implements Openable { */ private AVM2Deobfuscation deobfuscation; - /* + /** * Parent tag */ @Internal @@ -195,7 +195,7 @@ public class ABC implements Openable { /** * Constructs ABC. * - * @param tag + * @param tag ABC container tag */ public ABC(ABCContainerTag tag) { this.parentTag = tag; @@ -205,7 +205,7 @@ public class ABC implements Openable { /** * Adds change listener. * - * @param listener + * @param listener Listener */ public void addChangeListener(Runnable listener) { changeListeners.add(listener); @@ -214,7 +214,7 @@ public class ABC implements Openable { /** * Removes change listener. * - * @param listener + * @param listener Listener */ public void removeChangeListener(Runnable listener) { changeListeners.remove(listener); @@ -232,7 +232,7 @@ public class ABC implements Openable { /** * Gets openable. * - * @return + * @return Openable */ @Override public Openable getOpenable() { @@ -245,7 +245,7 @@ public class ABC implements Openable { /** * Gets SWF. * - * @return + * @return SWF */ public SWF getSwf() { return parentTag.getSwf(); @@ -254,7 +254,7 @@ public class ABC implements Openable { /** * Gets list of ABC containers. * - * @return + * @return List of ABC containers */ public List getAbcTags() { Openable openable = getOpenable(); @@ -267,8 +267,8 @@ public class ABC implements Openable { /** * Adds method body. * - * @param body - * @return + * @param body Method body + * @return Method body index */ public int addMethodBody(MethodBody body) { bodies.add(body); @@ -279,8 +279,8 @@ public class ABC implements Openable { /** * Adds method info. * - * @param mi - * @return + * @param mi Method info + * @return Method info index */ public int addMethodInfo(MethodInfo mi) { method_info.add(mi); @@ -315,7 +315,7 @@ public class ABC implements Openable { /** * Gets id of metadata/add metadata. * - * @param newMetadata + * @param newMetadata Metadata * @param add Add if not found? * @return New index or -1 if not found (add=false) */ @@ -341,7 +341,7 @@ public class ABC implements Openable { * @param classId Class index * @param name Method name * @param isStatic Whether method is static - * @return + * @return Method/Getter/Setter trait */ public TraitMethodGetterSetter addMethod(int classId, String name, boolean isStatic) { Multiname multiname = new Multiname(); @@ -379,7 +379,7 @@ public class ABC implements Openable { /** * Adds event listener. * - * @param listener + * @param listener Listener */ public void addEventListener(EventListener listener) { listeners.add(listener); @@ -388,7 +388,7 @@ public class ABC implements Openable { /** * Removes event listener. * - * @param listener + * @param listener Listener */ public void removeEventListener(EventListener listener) { listeners.remove(listener); @@ -397,8 +397,8 @@ public class ABC implements Openable { /** * Informs listeners. * - * @param event - * @param data + * @param event Event + * @param data Data */ protected void informListeners(String event, Object data) { for (EventListener listener : listeners) { @@ -409,8 +409,8 @@ public class ABC implements Openable { /** * Removes traps (deobfuscation). * - * @return - * @throws InterruptedException + * @return Number of removed traps + * @throws InterruptedException On interrupt */ public int removeTraps() throws InterruptedException { return removeTraps(null); @@ -420,8 +420,8 @@ public class ABC implements Openable { * Removes traps (deobfuscation). * * @param listener Listener - * @return - * @throws InterruptedException + * @return Number of removed traps + * @throws InterruptedException On interrupt */ public int removeTraps(DeobfuscationListener listener) throws InterruptedException { int rem = 0; @@ -437,8 +437,8 @@ public class ABC implements Openable { /** * Removes dead code. * - * @return - * @throws InterruptedException + * @return Number of modified lines + * @throws InterruptedException On interrupt */ public int removeDeadCode() throws InterruptedException { return removeDeadCode(null); @@ -448,8 +448,8 @@ public class ABC implements Openable { * Removes dead code. * * @param listener Listener - * @return - * @throws InterruptedException + * @return Number of modified lines + * @throws InterruptedException On interrupt */ public int removeDeadCode(DeobfuscationListener listener) throws InterruptedException { int rem = 0; @@ -497,7 +497,7 @@ public class ABC implements Openable { /** * Gets string usages. * - * @return + * @return Set of string indexes */ public Set getStringUsages() { Set ret = new HashSet<>(); @@ -621,8 +621,8 @@ public class ABC implements Openable { /** * Renames multiname. * - * @param multinameIndex - * @param newname + * @param multinameIndex Multiname index + * @param newname New name */ public void renameMultiname(int multinameIndex, String newname) { if (multinameIndex <= 0 || multinameIndex >= constants.getMultinameCount()) { @@ -742,7 +742,7 @@ public class ABC implements Openable { /** * Checks whether the ABC has decimal support. * - * @return + * @return Whether the ABC has decimal support */ public boolean hasDecimalSupport() { return version.minor >= MINORwithDECIMAL; @@ -751,7 +751,7 @@ public class ABC implements Openable { /** * Sets decimal support. * - * @param val + * @param val Value */ public void setDecimalSupport(boolean val) { if (val) { @@ -768,8 +768,8 @@ public class ABC implements Openable { /** * Checks minimum version. * - * @param minMajor - * @param minMinor + * @param minMajor Minimum major version + * @param minMinor Minimum minor version * @return */ private boolean minVersionCheck(int minMajor, int minMinor) { @@ -779,7 +779,7 @@ public class ABC implements Openable { /** * Checks whether the ABC has float support. * - * @return + * @return Whether the ABC has float support */ public boolean hasFloatSupport() { return minVersionCheck(47, 16); @@ -788,7 +788,7 @@ public class ABC implements Openable { /** * Sets float support. * - * @param val + * @param val Value */ public void setFloatSupport(boolean val) { if (val) { @@ -805,7 +805,7 @@ public class ABC implements Openable { /** * Checks whether the ABC has exception support. * - * @return + * @return Whether the ABC has exception support */ public boolean hasExceptionSupport() { return version.compareTo(new ABCVersion(46, 15)) > 0; @@ -817,7 +817,7 @@ public class ABC implements Openable { * @param ais ABC input stream * @param swf SWF * @param tag ABC container tag - * @throws IOException + * @throws IOException On I/O error */ public ABC(ABCInputStream ais, SWF swf, ABCContainerTag tag) throws IOException { this(ais, swf, tag, null, null); @@ -831,7 +831,7 @@ public class ABC implements Openable { * @param tag ABC container tag * @param file File * @param fileTitle File title - * @throws IOException + * @throws IOException On I/O error */ public ABC(ABCInputStream ais, SWF swf, ABCContainerTag tag, String file, String fileTitle) throws IOException { this.parentTag = tag; @@ -861,7 +861,7 @@ public class ABC implements Openable { * * @param ais ABC input stream * @param swf SWF - * @throws IOException + * @throws IOException On I/O error */ private void read(ABCInputStream ais, SWF swf) throws IOException { int minor_version = ais.readU16("minor_version"); @@ -1093,7 +1093,7 @@ public class ABC implements Openable { * Saves ABC to stream. * * @param os Output stream - * @throws IOException + * @throws IOException On I/O error */ public void saveToStream(OutputStream os) throws IOException { ABCOutputStream aos = new ABCOutputStream(os); @@ -1513,7 +1513,7 @@ public class ABC implements Openable { /** * Dump ABC to output stream. * - * @param os + * @param os Output stream */ public void dump(OutputStream os) { Utf8PrintWriter output; @@ -2152,9 +2152,9 @@ public class ABC implements Openable { * @param as ActionScript * @param dependencies Dependencies * @return True if the pack is simple (= not compound) - * @throws As3ScriptReplaceException - * @throws IOException - * @throws InterruptedException + * @throws As3ScriptReplaceException On script replace error + * @throws IOException On IO error + * @throws InterruptedException On interrupt */ public boolean replaceScriptPack(As3ScriptReplacerInterface replacer, ScriptPack pack, String as, List dependencies) throws As3ScriptReplaceException, IOException, InterruptedException { replacer.replaceScript(pack, as, dependencies); @@ -2867,7 +2867,7 @@ public class ABC implements Openable { /** * Gets modified flag. * - * @return + * @return Whether the ABC is modified */ @Override public boolean isModified() { @@ -2898,7 +2898,7 @@ public class ABC implements Openable { /** * To string. * - * @return + * @return String */ @Override public String toString() { @@ -2909,7 +2909,7 @@ public class ABC implements Openable { * Saves ABC to stream. * * @param os Output stream - * @throws IOException + * @throws IOException On IO error */ @Override public void saveTo(OutputStream os) throws IOException { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCInputStream.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCInputStream.java index 4db8304a3..133b7427e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCInputStream.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCInputStream.java @@ -119,7 +119,7 @@ public class ABCInputStream implements AutoCloseable { * Sets position in bytes in the stream. * * @param pos Number of bytes - * @throws java.io.IOException + * @throws IOException On I/O error */ public void seek(long pos) throws IOException { is.seek(pos); @@ -195,7 +195,7 @@ public class ABCInputStream implements AutoCloseable { * Reads byte from the stream. * * @return Byte - * @throws IOException + * @throws IOException On I/O error */ private int readInternal() throws IOException { int i = is.read(); @@ -218,7 +218,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Byte - * @throws IOException + * @throws IOException On I/O error */ public int read(String name) throws IOException { newDumpLevel(name, "byte"); @@ -232,7 +232,7 @@ public class ABCInputStream implements AutoCloseable { * * @param b Bytes * @return Number of bytes read - * @throws IOException + * @throws IOException On I/O error */ private int read(byte[] b) throws IOException { int currBytesRead = is.read(b); @@ -262,7 +262,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return U8 - * @throws IOException + * @throws IOException On I/O error */ public int readU8(String name) throws IOException { newDumpLevel(name, "U8"); @@ -275,7 +275,7 @@ public class ABCInputStream implements AutoCloseable { * Reads U32 from the stream. * * @return U32 - * @throws IOException + * @throws IOException On I/O error */ private long readU32Internal() throws IOException { int i; @@ -299,7 +299,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return U32 - * @throws IOException + * @throws IOException On I/O error */ public long readU32(String name) throws IOException { newDumpLevel(name, "U32"); @@ -312,7 +312,7 @@ public class ABCInputStream implements AutoCloseable { * Reads U30 from the stream. * * @return U30 - * @throws IOException + * @throws IOException On I/O error */ private int readU30Internal() throws IOException { long u32 = readU32Internal(); @@ -325,7 +325,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return U30 - * @throws IOException + * @throws IOException On I/O error */ public int readU30(String name) throws IOException { newDumpLevel(name, "U30"); @@ -339,7 +339,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return S24 - * @throws IOException + * @throws IOException On I/O error */ public int readS24(String name) throws IOException { newDumpLevel(name, "S24"); @@ -358,7 +358,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return U16 - * @throws IOException + * @throws IOException On I/O error */ public int readU16(String name) throws IOException { newDumpLevel(name, "U16"); @@ -372,7 +372,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return S32 - * @throws IOException + * @throws IOException On I/O error */ public int readS32(String name) throws IOException { int i; @@ -403,7 +403,7 @@ public class ABCInputStream implements AutoCloseable { * Gets available bytes in the stream. * * @return Available bytes - * @throws IOException + * @throws IOException On I/O error */ public int available() throws IOException { return is.available(); @@ -413,7 +413,7 @@ public class ABCInputStream implements AutoCloseable { * Reads long from the stream. * * @return Long - * @throws IOException + * @throws IOException On I/O error */ private long readLong() throws IOException { safeRead(8, stringDataBuffer); @@ -433,7 +433,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Double - * @throws IOException + * @throws IOException On I/O error */ public double readDouble(String name) throws IOException { newDumpLevel(name, "Double"); @@ -448,7 +448,7 @@ public class ABCInputStream implements AutoCloseable { * * @param count Count * @param data Data - * @throws IOException + * @throws IOException On I/O error */ private void safeRead(int count, byte[] data) throws IOException { for (int i = 0; i < count; i++) { @@ -461,7 +461,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Namespace - * @throws IOException + * @throws IOException On I/O error */ public Namespace readNamespace(String name) throws IOException { newDumpLevel(name, "Namespace"); @@ -482,7 +482,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Multiname - * @throws IOException + * @throws IOException On I/O error */ public Multiname readMultiname(String name) throws IOException { int kind = readU8("kind"); @@ -526,7 +526,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Method info - * @throws IOException + * @throws IOException On I/O error */ public MethodInfo readMethodInfo(String name) throws IOException { newDumpLevel(name, "method_info"); @@ -565,7 +565,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Trait - * @throws IOException + * @throws IOException On I/O error */ public Trait readTrait(String name) throws IOException { newDumpLevel(name, "Trait"); @@ -633,7 +633,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Traits - * @throws IOException + * @throws IOException On I/O error */ public Traits readTraits(String name) throws IOException { newDumpLevel(name, "Traits"); @@ -651,7 +651,7 @@ public class ABCInputStream implements AutoCloseable { * * @param count Count * @return Bytes - * @throws IOException + * @throws IOException On I/O error */ private byte[] readBytesInternal(int count) throws IOException { byte[] ret = new byte[count]; @@ -668,7 +668,7 @@ public class ABCInputStream implements AutoCloseable { * @param name Name * @param specialType Special type * @return Bytes - * @throws IOException + * @throws IOException On I/O error */ public byte[] readBytes(int count, String name, DumpInfoSpecialType specialType) throws IOException { newDumpLevel(name, "Bytes", specialType); @@ -682,7 +682,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Decimal - * @throws IOException + * @throws IOException On I/O error */ public Decimal readDecimal(String name) throws IOException { newDumpLevel(name, "Decimal"); @@ -696,7 +696,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Float - * @throws IOException + * @throws IOException On I/O error */ public Float readFloat(String name) throws IOException { newDumpLevel(name, "Float"); @@ -711,7 +711,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Float4 - * @throws IOException + * @throws IOException On I/O error */ public Float4 readFloat4(String name) throws IOException { newDumpLevel(name, "Float4"); @@ -729,7 +729,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return Instance info - * @throws IOException + * @throws IOException On I/O error */ public InstanceInfo readInstanceInfo(String name) throws IOException { newDumpLevel(name, "instance_info"); @@ -756,7 +756,7 @@ public class ABCInputStream implements AutoCloseable { * * @param name Name * @return String - * @throws IOException + * @throws IOException On I/O error */ public String readString(String name) throws IOException { newDumpLevel(name, "String"); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCOutputStream.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCOutputStream.java index cc4240858..aa5af8429 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCOutputStream.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCOutputStream.java @@ -71,7 +71,7 @@ public class ABCOutputStream extends OutputStream { * Writes a byte to the output stream. * * @param b The byte to write. - * @throws IOException + * @throws IOException On I/O error */ @Override public void write(int b) throws IOException { @@ -83,7 +83,7 @@ public class ABCOutputStream extends OutputStream { * Writes a byte array to the output stream. * * @param data The data to write. - * @throws IOException + * @throws IOException On I/O error */ @Override public void write(byte[] data) throws IOException { @@ -97,7 +97,7 @@ public class ABCOutputStream extends OutputStream { * @param b The data to write. * @param off The start offset in the data. * @param len The number of bytes to write. - * @throws IOException + * @throws IOException On I/O error */ @Override public void write(byte[] b, int off, int len) throws IOException { @@ -109,7 +109,7 @@ public class ABCOutputStream extends OutputStream { * Writes U30 to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeU30(long value) throws IOException { writeS32(value); @@ -139,7 +139,7 @@ public class ABCOutputStream extends OutputStream { * Writes U32 to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeU32(long value) throws IOException { boolean loop = true; @@ -161,7 +161,7 @@ public class ABCOutputStream extends OutputStream { * Writes S24 to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeS24(long value) throws IOException { int ret = (int) (value & 0xff); @@ -178,7 +178,7 @@ public class ABCOutputStream extends OutputStream { * Writes S32 to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeS32(long value) throws IOException { boolean belowZero = value < 0; @@ -216,7 +216,7 @@ public class ABCOutputStream extends OutputStream { * Writes long to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeLong(long value) throws IOException { byte[] writeBuffer = new byte[8]; @@ -235,7 +235,7 @@ public class ABCOutputStream extends OutputStream { * Writes double to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeDouble(double value) throws IOException { writeLong(Double.doubleToLongBits(value)); @@ -245,7 +245,7 @@ public class ABCOutputStream extends OutputStream { * Writes float to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeFloat(float value) throws IOException { writeU16(Float.floatToIntBits(value)); @@ -255,7 +255,7 @@ public class ABCOutputStream extends OutputStream { * Writes float4 to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeFloat4(Float4 value) throws IOException { writeFloat(value.values[0]); @@ -268,7 +268,7 @@ public class ABCOutputStream extends OutputStream { * Writes U8 to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeU8(int value) throws IOException { write(value); @@ -278,7 +278,7 @@ public class ABCOutputStream extends OutputStream { * Writes U16 to the output stream. * * @param value Value to write - * @throws IOException + * @throws IOException On I/O error */ public void writeU16(int value) throws IOException { write(value & 0xff); @@ -289,7 +289,7 @@ public class ABCOutputStream extends OutputStream { * Writes String to the output stream. * * @param s String to write - * @throws IOException + * @throws IOException On I/O error */ public void writeString(String s) throws IOException { byte[] sbytes = Utf8Helper.getBytes(s); @@ -301,7 +301,7 @@ public class ABCOutputStream extends OutputStream { * Writes Namespace to the output stream. * * @param ns Namespace to write - * @throws IOException + * @throws IOException On I/O error */ public void writeNamespace(Namespace ns) throws IOException { write(ns.kind); @@ -322,7 +322,7 @@ public class ABCOutputStream extends OutputStream { * Writes Multiname to the output stream. * * @param m Multiname to write - * @throws IOException + * @throws IOException On I/O error */ public void writeMultiname(Multiname m) throws IOException { writeU8(m.kind); @@ -350,7 +350,7 @@ public class ABCOutputStream extends OutputStream { * Writes MethodInfo to the output stream. * * @param mi MethodInfo to write - * @throws IOException + * @throws IOException On I/O error */ public void writeMethodInfo(MethodInfo mi) throws IOException { writeU30(mi.param_types.length); @@ -379,7 +379,7 @@ public class ABCOutputStream extends OutputStream { * Writes Trait to the output stream. * * @param t Trait to write - * @throws IOException + * @throws IOException On I/O error */ public void writeTrait(Trait t) throws IOException { writeU30(t.name_index); @@ -420,7 +420,7 @@ public class ABCOutputStream extends OutputStream { * Writes Traits to the output stream. * * @param t Traits to write - * @throws IOException + * @throws IOException On I/O error */ public void writeTraits(Traits t) throws IOException { writeU30(t.traits.size()); @@ -433,7 +433,7 @@ public class ABCOutputStream extends OutputStream { * Writes InstanceInfo to the output stream. * * @param ii InstanceInfo to write - * @throws IOException + * @throws IOException On I/O error */ public void writeInstanceInfo(InstanceInfo ii) throws IOException { writeU30(ii.name_index); @@ -454,7 +454,7 @@ public class ABCOutputStream extends OutputStream { * Writes Decimal to the output stream. * * @param value Decimal to write - * @throws IOException + * @throws IOException On I/O error */ public void writeDecimal(Decimal value) throws IOException { write(value.data); @@ -464,7 +464,7 @@ public class ABCOutputStream extends OutputStream { * Gets U30 byte length. * * @param value Value - * @return + * @return Length */ public static int getU30ByteLength(long value) { boolean belowZero = value < 0; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersion.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersion.java index 49b643177..369bcc817 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersion.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersion.java @@ -67,7 +67,7 @@ public class ABCVersion implements Comparable { /** * Returns string representation of ABCVersion * - * @return + * @return String representation of ABCVersion */ @Override public String toString() { @@ -77,7 +77,7 @@ public class ABCVersion implements Comparable { /** * Returns hash code of ABCVersion * - * @return + * @return Hash code of ABCVersion */ @Override public int hashCode() { @@ -90,8 +90,8 @@ public class ABCVersion implements Comparable { /** * Equals method * - * @param obj - * @return + * @param obj Object to compare + * @return True if objects are equal */ @Override public boolean equals(Object obj) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersionRequirements.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersionRequirements.java index 302b8386d..e5c763031 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersionRequirements.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/ABCVersionRequirements.java @@ -31,37 +31,37 @@ import java.lang.annotation.Target; public @interface ABCVersionRequirements { /** - * Minimum minor version. + * Gets minimum minor version. * - * @return + * @return minimum minor version */ int minMinor() default 0; /** - * Maximum minor version. + * Gets maximum minor version. * - * @return + * @return maximum minor version */ int maxMinor() default 0; /** - * Maximum major version. + * Gets maximum major version. * - * @return + * @return maximum major version */ int maxMajor() default 0; /** - * Minimum major version. + * Get minimum major version. * - * @return + * @return minimum major version */ int minMajor() default 0; /** - * Exact minor version. + * Gets exact minor version. * - * @return + * @return Exact minor version */ int exactMinor() default 0; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AbcMultiNameCollisionFixer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AbcMultiNameCollisionFixer.java index 27198b43e..a6e18432a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AbcMultiNameCollisionFixer.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/deobfuscation/AbcMultiNameCollisionFixer.java @@ -32,6 +32,15 @@ import java.util.Set; */ public class AbcMultiNameCollisionFixer { + /** + * Constructs new AbcMultiNameCollisionFixer. + */ + public AbcMultiNameCollisionFixer() { + + } + + + /** * Fixes collisions of multinames in SWF file. * diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/InstructionDefinition.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/InstructionDefinition.java index a52969868..88484e064 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/InstructionDefinition.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/InstructionDefinition.java @@ -161,7 +161,7 @@ public abstract class InstructionDefinition implements Serializable { * @param lda Local data area * @param constants Constant pool * @param ins Instruction - * @throws AVM2VerifyErrorException + * @throws AVM2VerifyErrorException On verification error */ public void verify(LocalDataArea lda, AVM2ConstantPool constants, AVM2Instruction ins) throws AVM2VerifyErrorException { for (int i = 0; i < operands.length; i++) { @@ -232,7 +232,7 @@ public abstract class InstructionDefinition implements Serializable { * @param constants Constant pool * @param ins Instruction * @return True if instruction was executed, false if not - * @throws AVM2ExecutionException + * @throws AVM2ExecutionException On execution error */ public boolean execute(LocalDataArea lda, AVM2ConstantPool constants, AVM2Instruction ins) throws AVM2ExecutionException { //throw new UnsupportedOperationException("Instruction " + instructionName + " not implemented"); @@ -244,7 +244,7 @@ public abstract class InstructionDefinition implements Serializable { * * @param lda Local data area * @param ins Instruction - * @throws AVM2VerifyErrorException + * @throws AVM2VerifyErrorException On verification error */ protected void illegalOpCode(LocalDataArea lda, AVM2Instruction ins) throws AVM2VerifyErrorException { throw new AVM2VerifyErrorException(AVM2VerifyErrorException.ILLEGAL_OPCODE, lda.isDebug(), new Object[]{lda.methodName, instructionCode, ins.getAddress()}); @@ -258,7 +258,7 @@ public abstract class InstructionDefinition implements Serializable { * @param ins Instruction * @param output Output * @param path Path - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public void translate(AVM2LocalData localData, TranslateStack stack, AVM2Instruction ins, List output, String path) throws InterruptedException { } @@ -290,7 +290,7 @@ public abstract class InstructionDefinition implements Serializable { * @param ip IP * @param code AVM2 code * @param thisHasDefaultToPrimitive This has default to primitive - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public void translate(Set switchParts, List callStack, AbcIndexing abcIndex, Map> setLocalPosToGetLocalPos, Reference lineStartItem, boolean isStatic, int scriptIndex, int classIndex, HashMap localRegs, TranslateStack stack, ScopeStack scopeStack, ScopeStack localScopeStack, AVM2Instruction ins, List output, MethodBody body, ABC abc, HashMap localRegNames, HashMap localRegTypes, List fullyQualifiedNames, String path, HashMap localRegsAssignmentIps, int ip, AVM2Code code, boolean thisHasDefaultToPrimitive) throws InterruptedException { AVM2LocalData localData = new AVM2LocalData(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf32Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf32Ins.java index cb0fcc1b4..40dbbb90c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf32Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf32Ins.java @@ -36,7 +36,9 @@ import java.util.List; * @author JPEXS */ public class Lf32Ins extends InstructionDefinition implements AlchemyTypeIns { - + /** + * Constructor + */ public Lf32Ins() { super(0x38, "lf32", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf64Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf64Ins.java index a8e74aa4b..d0b3d528f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf64Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Lf64Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Lf64Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Lf64Ins() { super(0x39, "lf64", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li16Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li16Ins.java index 54d6967d7..9707ed112 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li16Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li16Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Li16Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Li16Ins() { super(0x36, "li16", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li32Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li32Ins.java index eab181530..6f7ec8a47 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li32Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li32Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Li32Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Li32Ins() { super(0x37, "li32", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li8Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li8Ins.java index 510563941..436ed6322 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li8Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Li8Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Li8Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Li8Ins() { super(0x35, "li8", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf32Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf32Ins.java index 6d85713c5..03d6be663 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf32Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf32Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Sf32Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Sf32Ins() { super(0x3D, "sf32", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf64Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf64Ins.java index b3a9b2eda..60adc00f6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf64Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sf64Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Sf64Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Sf64Ins() { super(0x3E, "sf64", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si16Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si16Ins.java index b0199e0f3..a886bd9b7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si16Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si16Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Si16Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Si16Ins() { super(0x3B, "si16", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si32Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si32Ins.java index 017d1d3d2..aaeff7dfa 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si32Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si32Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Si32Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Si32Ins() { super(0x3C, "si32", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si8Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si8Ins.java index 3df286224..0fdf5328a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si8Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Si8Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Si8Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Si8Ins() { super(0x3A, "si8", new int[]{}, true, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi16Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi16Ins.java index 50ed2630c..ba24c41cb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi16Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi16Ins.java @@ -36,6 +36,9 @@ import java.util.List; */ public class Sxi16Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Sxi16Ins() { super(0x52, "sxi16", new int[]{}, false, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi1Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi1Ins.java index ea9dcb0e5..dc046bc34 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi1Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi1Ins.java @@ -36,6 +36,9 @@ import java.util.List; */ public class Sxi1Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Sxi1Ins() { super(0x50, "sxi1", new int[]{}, false, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi8Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi8Ins.java index 07cc8346b..c35fa96b9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi8Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/alchemy/Sxi8Ins.java @@ -36,6 +36,9 @@ import java.util.List; */ public class Sxi8Ins extends InstructionDefinition implements AlchemyTypeIns { + /** + * Constructor + */ public Sxi8Ins() { super(0x51, "sxi8", new int[]{}, false, AVM2InstructionFlag.DOMAIN_MEMORY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIIns.java index ee30834c1..c4f0d3bad 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class AddIIns extends InstructionDefinition { + /** + * Constructor + */ public AddIIns() { super(0xc5, "add_i", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIns.java index 670472f31..3b735b848 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/AddIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class AddIns extends InstructionDefinition { + /** + * Constructor + */ public AddIns() { super(0xa0, "add", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIIns.java index 3be4fa5d6..4a12bc5b5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class DecrementIIns extends InstructionDefinition { + /** + * Constructor + */ public DecrementIIns() { super(0xc1, "decrement_i", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIns.java index 229268064..5cbf8e39a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DecrementIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class DecrementIns extends InstructionDefinition { + /** + * Constructor + */ public DecrementIns() { super(0x93, "decrement", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DivideIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DivideIns.java index 9cc30549f..ae10ced58 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DivideIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/DivideIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class DivideIns extends InstructionDefinition { + /** + * Constructor + */ public DivideIns() { super(0xa3, "divide", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIIns.java index 787a96234..7a7ef986d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class IncrementIIns extends InstructionDefinition { + /** + * Constructor + */ public IncrementIIns() { super(0xc0, "increment_i", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIns.java index c6dd4415e..921788f41 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/IncrementIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class IncrementIns extends InstructionDefinition { + /** + * Constructor + */ public IncrementIns() { super(0x91, "increment", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/ModuloIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/ModuloIns.java index b44942cf2..3a391c89f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/ModuloIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/ModuloIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class ModuloIns extends InstructionDefinition { + /** + * Constructor + */ public ModuloIns() { super(0xa4, "modulo", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIIns.java index 8b86007de..68e43c2f2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class MultiplyIIns extends InstructionDefinition { + /** + * Constructor + */ public MultiplyIIns() { super(0xc7, "multiply_i", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIns.java index 4a29d688b..27432b15d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/MultiplyIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class MultiplyIns extends InstructionDefinition { + /** + * Constructor + */ public MultiplyIns() { super(0xa2, "multiply", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIIns.java index ea59a8e30..c42937180 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class NegateIIns extends InstructionDefinition { + /** + * Constructor + */ public NegateIIns() { super(0xc4, "negate_i", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIns.java index 3327a3ec4..05353e281 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NegateIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class NegateIns extends InstructionDefinition { + /** + * Constructor + */ public NegateIns() { super(0x90, "negate", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NotIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NotIns.java index 8792c2146..9a6066842 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NotIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/NotIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class NotIns extends InstructionDefinition { + /** + * Constructor + */ public NotIns() { super(0x96, "not", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIIns.java index fcca03330..aede4fca3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class SubtractIIns extends InstructionDefinition { + /** + * Constructor + */ public SubtractIIns() { super(0xc6, "subtract_i", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIns.java index 31e9e323b..d9dddea97 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/arithmetic/SubtractIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class SubtractIns extends InstructionDefinition { + /** + * Constructor + */ public SubtractIns() { super(0xa1, "subtract", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitAndIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitAndIns.java index 762eec608..ea08f0354 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitAndIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitAndIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class BitAndIns extends InstructionDefinition { + /** + * Constructor + */ public BitAndIns() { super(0xa8, "bitand", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitNotIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitNotIns.java index 187571ffc..14f5f00ee 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitNotIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitNotIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class BitNotIns extends InstructionDefinition { + /** + * Constructor + */ public BitNotIns() { super(0x97, "bitnot", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitOrIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitOrIns.java index 47804472d..f56385a0f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitOrIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitOrIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class BitOrIns extends InstructionDefinition { + /** + * Constructor + */ public BitOrIns() { super(0xa9, "bitor", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitXorIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitXorIns.java index 482b14ddc..d38f4f2e9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitXorIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/BitXorIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class BitXorIns extends InstructionDefinition { + /** + * Constructor + */ public BitXorIns() { super(0xaa, "bitxor", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/LShiftIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/LShiftIns.java index 1b78ebc14..fc90a797c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/LShiftIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/LShiftIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class LShiftIns extends InstructionDefinition { + /** + * Constructor + */ public LShiftIns() { super(0xa5, "lshift", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/RShiftIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/RShiftIns.java index 9bc2c49ef..740624e6c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/RShiftIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/RShiftIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class RShiftIns extends InstructionDefinition { + /** + * Constructor + */ public RShiftIns() { super(0xa6, "rshift", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/URShiftIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/URShiftIns.java index d65f13bd7..d5ecbc280 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/URShiftIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/bitwise/URShiftIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class URShiftIns extends InstructionDefinition { + /** + * Constructor + */ public URShiftIns() { super(0xa7, "urshift", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/EqualsIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/EqualsIns.java index 29785de69..f4ca8f835 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/EqualsIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/EqualsIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class EqualsIns extends InstructionDefinition { + /** + * Constructor + */ public EqualsIns() { super(0xab, "equals", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterEqualsIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterEqualsIns.java index b1c473a6b..278112165 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterEqualsIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterEqualsIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class GreaterEqualsIns extends InstructionDefinition { + /** + * Constructor + */ public GreaterEqualsIns() { super(0xb0, "greaterequals", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterThanIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterThanIns.java index 289e17155..4c9882ced 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterThanIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/GreaterThanIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class GreaterThanIns extends InstructionDefinition { + /** + * Constructor + */ public GreaterThanIns() { super(0xaf, "greaterthan", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessEqualsIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessEqualsIns.java index 6b9cd7011..db895b25d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessEqualsIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessEqualsIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class LessEqualsIns extends InstructionDefinition { + /** + * Constructor + */ public LessEqualsIns() { super(0xae, "lessequals", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessThanIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessThanIns.java index 85b982a33..aec9fb653 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessThanIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/LessThanIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class LessThanIns extends InstructionDefinition { + /** + * Constructor + */ public LessThanIns() { super(0xad, "lessthan", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/StrictEqualsIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/StrictEqualsIns.java index f3e3d7ee7..1c8ef2c54 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/StrictEqualsIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/comparison/StrictEqualsIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class StrictEqualsIns extends InstructionDefinition { + /** + * Constructor + */ public StrictEqualsIns() { super(0xac, "strictequals", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java index 8384e8789..cec2ccc38 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructIns.java @@ -48,6 +48,9 @@ import java.util.List; */ public class ConstructIns extends InstructionDefinition { + /** + * Constructor + */ public ConstructIns() { super(0x42, "construct", new int[]{AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructPropIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructPropIns.java index 846b1c42e..6772d3847 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructPropIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructPropIns.java @@ -43,6 +43,9 @@ import java.util.List; */ public class ConstructPropIns extends InstructionDefinition { + /** + * Constructor + */ public ConstructPropIns() { super(0x4a, "constructprop", new int[]{AVM2Code.DAT_MULTINAME_INDEX, AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructSuperIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructSuperIns.java index 354cd50e0..d980f2545 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructSuperIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/ConstructSuperIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class ConstructSuperIns extends InstructionDefinition { + /** + * Constructor + */ public ConstructSuperIns() { super(0x49, "constructsuper", new int[]{AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewActivationIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewActivationIns.java index de9490ea2..ebe10574e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewActivationIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewActivationIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class NewActivationIns extends InstructionDefinition { + /** + * Constructor + */ public NewActivationIns() { super(0x57, "newactivation", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewArrayIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewArrayIns.java index 32a4a021e..7eb532295 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewArrayIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewArrayIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class NewArrayIns extends InstructionDefinition { + /** + * Constructor + */ public NewArrayIns() { super(0x56, "newarray", new int[]{AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewCatchIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewCatchIns.java index 839f487be..b299da46a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewCatchIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewCatchIns.java @@ -33,6 +33,9 @@ import java.util.List; */ public class NewCatchIns extends InstructionDefinition { + /** + * Constructor + */ public NewCatchIns() { super(0x5a, "newcatch", new int[]{AVM2Code.DAT_EXCEPTION_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewClassIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewClassIns.java index 2d1eca16d..c8d28dfe1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewClassIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewClassIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class NewClassIns extends InstructionDefinition { + /** + * Constructor + */ public NewClassIns() { super(0x58, "newclass", new int[]{AVM2Code.DAT_CLASS_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewFunctionIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewFunctionIns.java index 92a26b008..24a11d3e6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewFunctionIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewFunctionIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class NewFunctionIns extends InstructionDefinition { + /** + * Constructor + */ public NewFunctionIns() { super(0x40, "newfunction", new int[]{AVM2Code.DAT_METHOD_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewObjectIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewObjectIns.java index acc6c23c0..f53a3354f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewObjectIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/construction/NewObjectIns.java @@ -41,6 +41,9 @@ import java.util.List; */ public class NewObjectIns extends InstructionDefinition { + /** + * Constructor + */ public NewObjectIns() { super(0x55, "newobject", new int[]{AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugFileIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugFileIns.java index 5ce9b0409..fa8bf2aee 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugFileIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugFileIns.java @@ -29,6 +29,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DebugFileIns extends InstructionDefinition { + /** + * Constructor + */ public DebugFileIns() { super(0xf1, "debugfile", new int[]{AVM2Code.DAT_STRING_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugIns.java index c2581f7e3..5add3bd0c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugIns.java @@ -29,6 +29,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DebugIns extends InstructionDefinition { + /** + * Constructor + */ public DebugIns() { super(0xef, "debug", new int[]{AVM2Code.DAT_DEBUG_TYPE, AVM2Code.DAT_STRING_INDEX, AVM2Code.DAT_REGISTER_INDEX, AVM2Code.OPT_U30}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugLineIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugLineIns.java index d4bfa1f2b..a48132e14 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugLineIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/debug/DebugLineIns.java @@ -29,6 +29,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DebugLineIns extends InstructionDefinition { + /** + * Constructor + */ public DebugLineIns() { super(0xf0, "debugline", new int[]{AVM2Code.DAT_LINENUM}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallIns.java index 921ec3528..5a8fcee1d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallIns.java @@ -41,6 +41,9 @@ import java.util.List; */ public class CallIns extends InstructionDefinition { + /** + * Constructor + */ public CallIns() { super(0x41, "call", new int[]{AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallMethodIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallMethodIns.java index 75316f4f0..4e6237705 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallMethodIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallMethodIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class CallMethodIns extends InstructionDefinition { + /** + * Constructor + */ public CallMethodIns() { super(0x43, "callmethod", new int[]{AVM2Code.DAT_DISPATCH_ID, AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropLexIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropLexIns.java index 5798e99fb..dad892a4a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropLexIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropLexIns.java @@ -38,6 +38,9 @@ import java.util.List; */ public class CallPropLexIns extends CallPropertyIns { + /** + * Constructor + */ public CallPropLexIns() { instructionName = "callproplex"; instructionCode = 0x4c; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropVoidIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropVoidIns.java index f4379ad53..670ae6f1e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropVoidIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropVoidIns.java @@ -39,6 +39,9 @@ import java.util.List; */ public class CallPropVoidIns extends InstructionDefinition { + /** + * Constructor + */ public CallPropVoidIns() { super(0x4f, "callpropvoid", new int[]{AVM2Code.DAT_MULTINAME_INDEX, AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropertyIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropertyIns.java index 48b1707ea..a05475fb7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropertyIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallPropertyIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class CallPropertyIns extends InstructionDefinition { + /** + * Constructor + */ public CallPropertyIns() { super(0x46, "callproperty", new int[]{AVM2Code.DAT_MULTINAME_INDEX, AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallStaticIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallStaticIns.java index 5eb647bee..0ccb61899 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallStaticIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallStaticIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class CallStaticIns extends InstructionDefinition { + /** + * Constructor + */ public CallStaticIns() { super(0x44, "callstatic", new int[]{AVM2Code.DAT_METHOD_INDEX, AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperIns.java index 5ce17b80f..90fbbf0a1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperIns.java @@ -38,6 +38,9 @@ import java.util.List; */ public class CallSuperIns extends InstructionDefinition { + /** + * Constructor + */ public CallSuperIns() { super(0x45, "callsuper", new int[]{AVM2Code.DAT_MULTINAME_INDEX, AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperVoidIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperVoidIns.java index d9758507b..13852c72f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperVoidIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/executing/CallSuperVoidIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class CallSuperVoidIns extends InstructionDefinition { + /** + * Constructor + */ public CallSuperVoidIns() { super(0x4e, "callsupervoid", new int[]{AVM2Code.DAT_MULTINAME_INDEX, AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfEqIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfEqIns.java index eb97e9b19..757f75c11 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfEqIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfEqIns.java @@ -39,6 +39,9 @@ import java.util.List; */ public class IfEqIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfEqIns() { super(0x13, "ifeq", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfFalseIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfFalseIns.java index be496a808..ed5004947 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfFalseIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfFalseIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class IfFalseIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfFalseIns() { super(0x12, "iffalse", new int[]{AVM2Code.DAT_OFFSET}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGeIns.java index 5d7df2f1b..eff57a7f5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGeIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfGeIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfGeIns() { super(0x18, "ifge", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGtIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGtIns.java index ade046894..c297a313d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGtIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfGtIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfGtIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfGtIns() { super(0x17, "ifgt", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLeIns.java index bcc5d3c54..e858eeed0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLeIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfLeIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfLeIns() { super(0x16, "ifle", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLtIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLtIns.java index badeb5883..edd781a34 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLtIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfLtIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfLtIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfLtIns() { super(0x15, "iflt", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGeIns.java index 9c925606b..6e80f55c1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGeIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfNGeIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfNGeIns() { super(0x0f, "ifnge", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGtIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGtIns.java index ba9cd7500..9bfc74f29 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGtIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNGtIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfNGtIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfNGtIns() { super(0x0e, "ifngt", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLeIns.java index f002e8a82..d6d1541d3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLeIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfNLeIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfNLeIns() { super(0x0d, "ifnle", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLtIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLtIns.java index aef790a71..19ef7e23c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLtIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNLtIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IfNLtIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfNLtIns() { super(0x0c, "ifnlt", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNeIns.java index 21f4a2aba..a8b27885d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfNeIns.java @@ -39,6 +39,9 @@ import java.util.List; */ public class IfNeIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfNeIns() { super(0x14, "ifne", new int[]{AVM2Code.DAT_OFFSET}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictEqIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictEqIns.java index a874a122f..0a8959576 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictEqIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictEqIns.java @@ -39,6 +39,9 @@ import java.util.List; */ public class IfStrictEqIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfStrictEqIns() { super(0x19, "ifstricteq", new int[]{AVM2Code.DAT_OFFSET}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictNeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictNeIns.java index d0071f2bd..e901fc7c5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictNeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfStrictNeIns.java @@ -39,6 +39,9 @@ import java.util.List; */ public class IfStrictNeIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfStrictNeIns() { super(0x1A, "ifstrictne", new int[]{AVM2Code.DAT_OFFSET}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfTrueIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfTrueIns.java index d3c93c37b..7f59e4bbe 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfTrueIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/IfTrueIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class IfTrueIns extends InstructionDefinition implements IfTypeIns { + /** + * Constructor + */ public IfTrueIns() { super(0x11, "iftrue", new int[]{AVM2Code.DAT_OFFSET}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/JumpIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/JumpIns.java index f159918c9..824e0fcc2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/JumpIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/JumpIns.java @@ -34,11 +34,11 @@ import java.util.List; * @author JPEXS */ public class JumpIns extends InstructionDefinition implements IfTypeIns { - - public static final String NAME = "jump"; - + /** + * Constructor + */ public JumpIns() { - super(0x10, NAME, new int[]{AVM2Code.DAT_OFFSET}, false); + super(0x10, "jump", new int[]{AVM2Code.DAT_OFFSET}, false); } @Override diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/LookupSwitchIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/LookupSwitchIns.java index 5ad6c1f61..3f0be5240 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/LookupSwitchIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/jumps/LookupSwitchIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class LookupSwitchIns extends InstructionDefinition { + /** + * Constructor + */ public LookupSwitchIns() { super(0x1b, "lookupswitch", new int[]{AVM2Code.DAT_CASE_BASEOFFSET, AVM2Code.OPT_CASE_OFFSETS}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIIns.java index f20d1bf83..902dea489 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class DecLocalIIns extends InstructionDefinition { + /** + * Constructor + */ public DecLocalIIns() { super(0xc3, "declocal_i", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIns.java index bf6cc0ba2..d9850374d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/DecLocalIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class DecLocalIns extends InstructionDefinition { + /** + * Constructor + */ public DecLocalIns() { super(0x94, "declocal", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal0Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal0Ins.java index 75f317b3f..46b05003d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal0Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal0Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class GetLocal0Ins extends GetLocalTypeIns { + /** + * Constructor + */ public GetLocal0Ins() { super(0xd0, "getlocal0", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal1Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal1Ins.java index 284605c77..d0d896519 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal1Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal1Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class GetLocal1Ins extends GetLocalTypeIns { + /** + * Constructor + */ public GetLocal1Ins() { super(0xd1, "getlocal1", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal2Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal2Ins.java index 3f4306b37..40379c89a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal2Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal2Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class GetLocal2Ins extends GetLocalTypeIns { + /** + * Constructor + */ public GetLocal2Ins() { super(0xd2, "getlocal2", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal3Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal3Ins.java index 06b0b1d9a..1b27d6629 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal3Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocal3Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class GetLocal3Ins extends GetLocalTypeIns { + /** + * Constructor + */ public GetLocal3Ins() { super(0xd3, "getlocal3", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalIns.java index 1046415fa..12c790590 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalIns.java @@ -26,6 +26,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class GetLocalIns extends GetLocalTypeIns { + /** + * Constructor + */ public GetLocalIns() { super(0x62, "getlocal", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalTypeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalTypeIns.java index 6e8153789..2265145dd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalTypeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/GetLocalTypeIns.java @@ -55,6 +55,13 @@ import java.util.List; */ public abstract class GetLocalTypeIns extends InstructionDefinition { + /** + * Constructor + * @param instructionCode Instruction code + * @param instructionName Instruction name + * @param operands Operands + * @param canThrow Can throw exception + */ public GetLocalTypeIns(int instructionCode, String instructionName, int[] operands, boolean canThrow) { super(instructionCode, instructionName, operands, canThrow); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIIns.java index 3a98fc295..7bbdee170 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IncLocalIIns extends InstructionDefinition { + /** + * Constructor + */ public IncLocalIIns() { super(0xc2, "inclocal_i", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIns.java index fd69ab01f..d29516dc6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/IncLocalIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class IncLocalIns extends InstructionDefinition { + /** + * Constructor + */ public IncLocalIns() { super(0x92, "inclocal", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/KillIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/KillIns.java index 64c7c981e..6205b2e7c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/KillIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/KillIns.java @@ -31,6 +31,9 @@ import java.util.List; */ public class KillIns extends InstructionDefinition { + /** + * Constructor + */ public KillIns() { super(0x08, "kill", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal0Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal0Ins.java index b579b3bde..02a527129 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal0Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal0Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class SetLocal0Ins extends SetLocalTypeIns { + /** + * Constructor + */ public SetLocal0Ins() { super(0xd4, "setlocal0", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal1Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal1Ins.java index 91effaa82..2666da556 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal1Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal1Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class SetLocal1Ins extends SetLocalTypeIns { + /** + * Constructor + */ public SetLocal1Ins() { super(0xd5, "setlocal1", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal2Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal2Ins.java index 7c0b31b41..f893484d3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal2Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal2Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class SetLocal2Ins extends SetLocalTypeIns { + /** + * Constructor + */ public SetLocal2Ins() { super(0xd6, "setlocal2", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal3Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal3Ins.java index f0f35ba8f..274e0f2b2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal3Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocal3Ins.java @@ -25,6 +25,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class SetLocal3Ins extends SetLocalTypeIns { + /** + * Constructor + */ public SetLocal3Ins() { super(0xd7, "setlocal3", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalIns.java index 0fd945ec1..a779c141f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalIns.java @@ -26,6 +26,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.AVM2Instruction; */ public class SetLocalIns extends SetLocalTypeIns { + /** + * Constructor + */ public SetLocalIns() { super(0x63, "setlocal", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalTypeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalTypeIns.java index 736afd474..fc0dd9cf8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalTypeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/localregs/SetLocalTypeIns.java @@ -46,6 +46,13 @@ import java.util.List; */ public abstract class SetLocalTypeIns extends InstructionDefinition implements SetTypeIns { + /** + * Constructor + * @param instructionCode Instruction code + * @param instructionName Instruction name + * @param operands Operands + * @param canThrow Can throw exception + */ public SetLocalTypeIns(int instructionCode, String instructionName, int[] operands, boolean canThrow) { super(instructionCode, instructionName, operands, canThrow); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptIns.java index 271b4bc49..aab6717e8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptIns.java @@ -29,6 +29,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class BkptIns extends InstructionDefinition { + /** + * Constructor + */ public BkptIns() { super(0x01, "bkpt", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptLineIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptLineIns.java index 157031c77..06272050f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptLineIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/BkptLineIns.java @@ -30,6 +30,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class BkptLineIns extends InstructionDefinition { + /** + * Constructor + */ public BkptLineIns() { super(0xF2, "bkptline", new int[]{AVM2Code.DAT_LINENUM}, false /*?*/); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/DeletePropertyIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/DeletePropertyIns.java index c76015866..7483c6e45 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/DeletePropertyIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/DeletePropertyIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class DeletePropertyIns extends InstructionDefinition { + /** + * Constructor + */ public DeletePropertyIns() { super(0x6a, "deleteproperty", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindDefIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindDefIns.java index 59a8347bc..14fea3724 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindDefIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindDefIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class FindDefIns extends InstructionDefinition { + /** + * Constructor + */ public FindDefIns() { super(0x5f, "finddef", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyIns.java index 81a2b3cf1..d6aca8232 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class FindPropertyIns extends InstructionDefinition { + /** + * Constructor + */ public FindPropertyIns() { super(0x5e, "findproperty", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyStrictIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyStrictIns.java index 94d3f8e01..516c5b10d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyStrictIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/FindPropertyStrictIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class FindPropertyStrictIns extends InstructionDefinition { + /** + * Constructor + */ public FindPropertyStrictIns() { super(0x5d, "findpropstrict", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetDescendantsIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetDescendantsIns.java index b6c9e2bd8..24872e686 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetDescendantsIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetDescendantsIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class GetDescendantsIns extends InstructionDefinition { + /** + * Constructor + */ public GetDescendantsIns() { super(0x59, "getdescendants", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalScopeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalScopeIns.java index 53ecb00b6..d1a927228 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalScopeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalScopeIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class GetGlobalScopeIns extends InstructionDefinition { + /** + * Constructor + */ public GetGlobalScopeIns() { super(0x64, "getglobalscope", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalSlotIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalSlotIns.java index 43f8c4d74..25cf91013 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalSlotIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetGlobalSlotIns.java @@ -41,6 +41,9 @@ import java.util.List; */ public class GetGlobalSlotIns extends InstructionDefinition { + /** + * Constructor + */ public GetGlobalSlotIns() { super(0x6e, "getglobalslot", new int[]{AVM2Code.DAT_SLOT_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetLexIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetLexIns.java index cb0534cb2..cea73f189 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetLexIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetLexIns.java @@ -44,6 +44,9 @@ import java.util.Objects; */ public class GetLexIns extends InstructionDefinition { + /** + * Constructor + */ public GetLexIns() { super(0x60, "getlex", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetOuterScopeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetOuterScopeIns.java index b3ed1e6d5..a11fa3596 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetOuterScopeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetOuterScopeIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class GetOuterScopeIns extends InstructionDefinition { + /** + * Constructor + */ public GetOuterScopeIns() { super(0x67, "getouterscope", new int[]{AVM2Code.DAT_SCOPE_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetPropertyIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetPropertyIns.java index 4f75be3f6..7061f172e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetPropertyIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetPropertyIns.java @@ -59,6 +59,9 @@ import java.util.Set; */ public class GetPropertyIns extends InstructionDefinition { + /** + * Constructor + */ public GetPropertyIns() { super(0x66, "getproperty", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetScopeObjectIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetScopeObjectIns.java index 61ce74cf1..f2c7f69e5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetScopeObjectIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetScopeObjectIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class GetScopeObjectIns extends InstructionDefinition { + /** + * Constructor + */ public GetScopeObjectIns() { super(0x65, "getscopeobject", new int[]{AVM2Code.DAT_SCOPE_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSlotIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSlotIns.java index 4f73e65a4..2427df959 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSlotIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSlotIns.java @@ -40,6 +40,9 @@ import java.util.List; */ public class GetSlotIns extends InstructionDefinition { + /** + * Constructor + */ public GetSlotIns() { super(0x6c, "getslot", new int[]{AVM2Code.DAT_SLOT_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSuperIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSuperIns.java index 15faa01c4..f17d93847 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSuperIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/GetSuperIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class GetSuperIns extends InstructionDefinition { + /** + * Constructor + */ public GetSuperIns() { super(0x04, "getsuper", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNext2Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNext2Ins.java index 9cf4ab296..4f2ee5d43 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNext2Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNext2Ins.java @@ -35,6 +35,9 @@ import java.util.List; */ public class HasNext2Ins extends InstructionDefinition { + /** + * Constructor + */ public HasNext2Ins() { super(0x32, "hasnext2", new int[]{AVM2Code.DAT_LOCAL_REG_INDEX, AVM2Code.DAT_LOCAL_REG_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNextIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNextIns.java index 090757318..2a1791c86 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNextIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/HasNextIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class HasNextIns extends InstructionDefinition { + /** + * Constructor + */ public HasNextIns() { super(0x1f, "hasnext", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InIns.java index c45152f0d..0d256ccb0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class InIns extends InstructionDefinition { + /** + * Constructor + */ public InIns() { super(0xb4, "in", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InitPropertyIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InitPropertyIns.java index e52cd439e..8ab67bf83 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InitPropertyIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/InitPropertyIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class InitPropertyIns extends InstructionDefinition { + /** + * Constructor + */ public InitPropertyIns() { super(0x68, "initproperty", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/LabelIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/LabelIns.java index 55adf3f90..5cf85ef9e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/LabelIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/LabelIns.java @@ -28,6 +28,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class LabelIns extends InstructionDefinition { //this can be target of branch + /** + * Constructor + */ public LabelIns() { super(0x09, "label", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextNameIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextNameIns.java index 5feba6a06..24efadf97 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextNameIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextNameIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class NextNameIns extends InstructionDefinition { + /** + * Constructor + */ public NextNameIns() { super(0x1e, "nextname", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextValueIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextValueIns.java index aebf7a4b1..d37387e31 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextValueIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NextValueIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class NextValueIns extends InstructionDefinition { + /** + * Constructor + */ public NextValueIns() { super(0x23, "nextvalue", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NopIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NopIns.java index 4f94f9291..4d20faced 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NopIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/NopIns.java @@ -28,6 +28,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class NopIns extends InstructionDefinition { + /** + * Constructor + */ public NopIns() { super(0x02, "nop", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnValueIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnValueIns.java index e90c985d2..e0028328c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnValueIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnValueIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class ReturnValueIns extends InstructionDefinition { + /** + * Constructor + */ public ReturnValueIns() { super(0x48, "returnvalue", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnVoidIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnVoidIns.java index 190ed377c..7ad978186 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnVoidIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ReturnVoidIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class ReturnVoidIns extends InstructionDefinition { + /** + * Constructor + */ public ReturnVoidIns() { super(0x47, "returnvoid", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetGlobalSlotIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetGlobalSlotIns.java index 3c024657a..206b4f814 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetGlobalSlotIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetGlobalSlotIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class SetGlobalSlotIns extends InstructionDefinition implements SetTypeIns { + /** + * Constructor + */ public SetGlobalSlotIns() { super(0x6f, "setglobalslot", new int[]{AVM2Code.DAT_SLOT_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetPropertyIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetPropertyIns.java index 9703a47f1..58c2ecc4c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetPropertyIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetPropertyIns.java @@ -42,6 +42,9 @@ import java.util.Objects; */ public class SetPropertyIns extends InstructionDefinition implements SetTypeIns { + /** + * Constructor + */ public SetPropertyIns() { super(0x61, "setproperty", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java index 5e219821d..4b59fcdf4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSlotIns.java @@ -51,6 +51,9 @@ import java.util.Objects; */ public class SetSlotIns extends InstructionDefinition implements SetTypeIns { + /** + * Constructor + */ public SetSlotIns() { super(0x6d, "setslot", new int[]{AVM2Code.DAT_SLOT_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSuperIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSuperIns.java index abc4cac12..32af46a1e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSuperIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/SetSuperIns.java @@ -39,6 +39,9 @@ import java.util.Objects; */ public class SetSuperIns extends InstructionDefinition implements SetTypeIns { + /** + * Constructor + */ public SetSuperIns() { super(0x05, "setsuper", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ThrowIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ThrowIns.java index 0ef0b2f13..5ca7fb034 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ThrowIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/ThrowIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class ThrowIns extends InstructionDefinition { + /** + * Constructor + */ public ThrowIns() { super(0x03, "throw", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/TimestampIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/TimestampIns.java index 685cef0ae..684d31871 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/TimestampIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/TimestampIns.java @@ -29,6 +29,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class TimestampIns extends InstructionDefinition { + /** + * Constructor + */ public TimestampIns() { super(0xF3, "timestamp", new int[]{}, false /*?*/, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/AddPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/AddPIns.java index 2a9eac6d9..d5a78a579 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/AddPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/AddPIns.java @@ -32,6 +32,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class AddPIns extends InstructionDefinition { + /** + * Constructor + */ public AddPIns() { super(0xB5, "add_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMIns.java index 012e9691f..f9ff5c944 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMIns.java @@ -32,6 +32,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class ConvertMIns extends InstructionDefinition { + /** + * Constructor + */ public ConvertMIns() { super(0x79, "convert_m", new int[]{}, true, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); // -1 +1 } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMPIns.java index 44c4ec948..708e1e122 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ConvertMPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class ConvertMPIns extends InstructionDefinition { + /** + * Constructor + */ public ConvertMPIns() { super(0x7A, "convert_m_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java index cf6ba04ad..d5de85cf4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecLocalPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DecLocalPIns extends InstructionDefinition { + /** + * Constructor + */ public DecLocalPIns() { super(0x9F, "declocal_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT, AVM2Code.DAT_LOCAL_REG_INDEX}, false /*?*/, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecrementPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecrementPIns.java index 7b01f1287..3c3beb345 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecrementPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DecrementPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DecrementPIns extends InstructionDefinition { + /** + * Constructor + */ public DecrementPIns() { super(0x9E, "decrement_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DividePIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DividePIns.java index f032ea30f..be08d0e5e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DividePIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/DividePIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DividePIns extends InstructionDefinition { + /** + * Constructor + */ public DividePIns() { super(0xB8, "divide_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java index 9e5cb7b4e..33530b0b0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncLocalPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class IncLocalPIns extends InstructionDefinition { + /** + * Constructor + */ public IncLocalPIns() { super(0x9D, "inclocal_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT, AVM2Code.DAT_LOCAL_REG_INDEX}, true /*?*/, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncrementPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncrementPIns.java index e8ddf6ec7..9f0794b9d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncrementPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/IncrementPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class IncrementPIns extends InstructionDefinition { + /** + * Constructor + */ public IncrementPIns() { super(0x9C, "increment_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ModuloPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ModuloPIns.java index 5030d3569..65659624f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ModuloPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/ModuloPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class ModuloPIns extends InstructionDefinition { + /** + * Constructor + */ public ModuloPIns() { super(0xB9, "modulo_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.ES4_NUMERICS_MINOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/MultiplyPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/MultiplyPIns.java index db2cb3e99..210eeb580 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/MultiplyPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/MultiplyPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class MultiplyPIns extends InstructionDefinition { + /** + * Constructor + */ public MultiplyPIns() { super(0xB7, "multiply_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.ES4_NUMERICS_MINOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/NegatePIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/NegatePIns.java index 52914481e..a1cadce74 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/NegatePIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/NegatePIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class NegatePIns extends InstructionDefinition { + /** + * Constructor + */ public NegatePIns() { super(0x8F, "negate_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.ES4_NUMERICS_MINOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDNanIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDNanIns.java index e876c5f25..28fbd13d4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDNanIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDNanIns.java @@ -32,6 +32,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class PushDNanIns extends InstructionDefinition { + /** + * Constructor + */ public PushDNanIns() { super(0x34, "pushdnan", new int[]{}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.ES4_NUMERICS_MINOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDecimalIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDecimalIns.java index 6d7696185..d8e9994c5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDecimalIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/PushDecimalIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class PushDecimalIns extends InstructionDefinition { + /** + * Constructor + */ public PushDecimalIns() { super(0x33, "pushdecimal", new int[]{AVM2Code.DAT_DECIMAL_INDEX}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.ES4_NUMERICS_MINOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/SubtractPIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/SubtractPIns.java index 4359affc9..44404efa9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/SubtractPIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/decimalsupport/SubtractPIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class SubtractPIns extends InstructionDefinition { + /** + * Constructor + */ public SubtractPIns() { super(0xB6, "subtract_p", new int[]{AVM2Code.DAT_NUMBER_CONTEXT}, true /*?*/, AVM2InstructionFlag.ES4_NUMERICS_MINOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceBIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceBIns.java index 92a16bac8..c11a85fdb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceBIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceBIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class CoerceBIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceBIns() { super(0x81, "coerce_b", new int[]{}, true, AVM2InstructionFlag.DEPRECATED); // stack: -1+1 } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceDIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceDIns.java index b6dd23111..333835cfb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceDIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceDIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class CoerceDIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceDIns() { super(0x84, "coerce_d", new int[]{}, true, AVM2InstructionFlag.DEPRECATED); // stack: -1+1 } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceIIns.java index 88d410cd8..022863cfd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceIIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class CoerceIIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceIIns() { super(0x83, "coerce_i", new int[]{}, true, AVM2InstructionFlag.DEPRECATED); // stack: -1+1 } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceUIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceUIns.java index af6b31a5d..72c02a3f7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceUIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/deprecated/CoerceUIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class CoerceUIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceUIns() { super(0x88, "coerce_u", new int[]{}, true, AVM2InstructionFlag.DEPRECATED); // stack: -1+1 } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertF4Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertF4Ins.java index 6cb91e73f..5eca6eac7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertF4Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertF4Ins.java @@ -32,6 +32,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class ConvertF4Ins extends InstructionDefinition { + /** + * Constructor + */ public ConvertF4Ins() { super(0x7B, "convert_f4", new int[]{}, true, AVM2InstructionFlag.FLOAT_MAJOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertFIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertFIns.java index 83ba3af17..c8461130d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertFIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/ConvertFIns.java @@ -32,6 +32,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class ConvertFIns extends InstructionDefinition { + /** + * Constructor + */ public ConvertFIns() { super(0x79, "convert_f", new int[]{}, true, AVM2InstructionFlag.FLOAT_MAJOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Lf32x4Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Lf32x4Ins.java index ee7b11e0b..004d4cafb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Lf32x4Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Lf32x4Ins.java @@ -37,6 +37,9 @@ import java.util.List; */ public class Lf32x4Ins extends InstructionDefinition { + /** + * Constructor + */ public Lf32x4Ins() { super(0x0A, "lf32x4", new int[]{}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.DOMAIN_MEMORY, AVM2InstructionFlag.FLOAT_MAJOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloat4Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloat4Ins.java index f8cb1e6f2..28efd8ea2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloat4Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloat4Ins.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class PushFloat4Ins extends InstructionDefinition { + /** + * Constructor + */ public PushFloat4Ins() { super(0x54, "pushfloat4", new int[]{AVM2Code.DAT_FLOAT4_INDEX}, false, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.FLOAT_MAJOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloatIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloatIns.java index f6ab1fd4a..1c767afe5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloatIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/PushFloatIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class PushFloatIns extends InstructionDefinition { + /** + * Constructor + */ public PushFloatIns() { super(0x22, "pushfloat", new int[]{AVM2Code.DAT_FLOAT_INDEX}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.FLOAT_MAJOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Sf32x4Ins.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Sf32x4Ins.java index 4725da801..c0ee9ab58 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Sf32x4Ins.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/Sf32x4Ins.java @@ -31,6 +31,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class Sf32x4Ins extends InstructionDefinition { + /** + * Constructor + */ public Sf32x4Ins() { super(0x0B, "sf32x4", new int[]{}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.DOMAIN_MEMORY, AVM2InstructionFlag.FLOAT_MAJOR); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/UnPlusIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/UnPlusIns.java index b49a294cd..4ba9c538f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/UnPlusIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/floatsupport/UnPlusIns.java @@ -28,6 +28,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class UnPlusIns extends InstructionDefinition { + /** + * Constructor + */ public UnPlusIns() { super(0x7A, "unplus", new int[]{}, true, AVM2InstructionFlag.FLOAT_MAJOR, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AbsJumpIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AbsJumpIns.java index 186223844..c94618568 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AbsJumpIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AbsJumpIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class AbsJumpIns extends InstructionDefinition { + /** + * Constructor + */ public AbsJumpIns() { super(0xEE, "abs_jump", new int[]{}, false /*?*/, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AddDIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AddDIns.java index f60bc4a32..bd6a51be7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AddDIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AddDIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class AddDIns extends InstructionDefinition { + /** + * Constructor + */ public AddDIns() { super(0x9B, "add_d", new int[]{}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AllocIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AllocIns.java index 3f941ee83..d639f7318 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AllocIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/AllocIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class AllocIns extends InstructionDefinition { + /** + * Constructor + */ public AllocIns() { super(0xF6, "alloc", new int[]{}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallInterfaceIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallInterfaceIns.java index 1de31c361..5cdb673b8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallInterfaceIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallInterfaceIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class CallInterfaceIns extends InstructionDefinition { + /** + * Constructor + */ public CallInterfaceIns() { super(0x4D, "callinterface", new int[]{AVM2Code.DAT_CLASS_INDEX}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallSuperIdIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallSuperIdIns.java index 49bfd305f..1974c9974 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallSuperIdIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CallSuperIdIns.java @@ -34,6 +34,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class CallSuperIdIns extends InstructionDefinition { + /** + * Constructor + */ public CallSuperIdIns() { super(0x4B, "callsuperid", new int[]{}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CodeGenOpIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CodeGenOpIns.java index 2e3f56058..25bd66119 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CodeGenOpIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/CodeGenOpIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class CodeGenOpIns extends InstructionDefinition { + /** + * Constructor + */ public CodeGenOpIns() { super(0xFD, "codegenop", new int[]{}, false /*?*/, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/ConcatIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/ConcatIns.java index 5cb88b87d..b216c0315 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/ConcatIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/ConcatIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class ConcatIns extends InstructionDefinition { + /** + * Constructor + */ public ConcatIns() { super(0x9A, "concat", new int[]{}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DecodeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DecodeIns.java index f78301f0e..3a51bdf62 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DecodeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DecodeIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DecodeIns extends InstructionDefinition { + /** + * Constructor + */ public DecodeIns() { super(0xFF, "decode", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DelDescendantsIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DelDescendantsIns.java index c50f4275d..758fb0c84 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DelDescendantsIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DelDescendantsIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DelDescendantsIns extends InstructionDefinition { + /** + * Constructor + */ public DelDescendantsIns() { super(0x5B, "deldescendants", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DeletePropertyLateIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DeletePropertyLateIns.java index 29fd9c139..db26f9f6c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DeletePropertyLateIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DeletePropertyLateIns.java @@ -34,6 +34,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DeletePropertyLateIns extends InstructionDefinition { + /** + * Constructor + */ public DeletePropertyLateIns() { super(0x6B, "deletepropertylate", new int[]{}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DoubleToAtomIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DoubleToAtomIns.java index 8150ac00e..1ef33bcaf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DoubleToAtomIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/DoubleToAtomIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class DoubleToAtomIns extends InstructionDefinition { + /** + * Constructor + */ public DoubleToAtomIns() { super(0xFB, "doubletoatom", new int[]{}, true /*?*/, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalIns.java index bdf1b28ad..57ebf02c6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalIns.java @@ -37,6 +37,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class FindPropGlobalIns extends InstructionDefinition { + /** + * Constructor + */ public FindPropGlobalIns() { super(0x5C, "findpropglobal", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalStrictIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalStrictIns.java index 85c05a587..efb61637d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalStrictIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/FindPropGlobalStrictIns.java @@ -37,6 +37,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class FindPropGlobalStrictIns extends InstructionDefinition { + /** + * Constructor + */ public FindPropGlobalStrictIns() { super(0x5B, "findpropglobalstrict", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/GetPropertyLateIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/GetPropertyLateIns.java index 455fa2b87..4b6950852 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/GetPropertyLateIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/GetPropertyLateIns.java @@ -32,6 +32,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class GetPropertyLateIns extends InstructionDefinition { + /** + * Constructor + */ public GetPropertyLateIns() { super(0x67, "getpropertylate", new int[]{}, true /*?*/, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/InvalidIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/InvalidIns.java index 7cae68eba..30b8d23fd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/InvalidIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/InvalidIns.java @@ -33,6 +33,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class InvalidIns extends InstructionDefinition { + /** + * Constructor + */ public InvalidIns() { super(0xED, "invalid", new int[]{}, false, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/MarkIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/MarkIns.java index be3536752..0731b2552 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/MarkIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/MarkIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class MarkIns extends InstructionDefinition { + /** + * Constructor + */ public MarkIns() { super(0xF7, "mark", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNKNOWN_OPERANDS); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PrologueIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PrologueIns.java index cdc7f9256..c98688610 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PrologueIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PrologueIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class PrologueIns extends InstructionDefinition { + /** + * Constructor + */ public PrologueIns() { super(0xF9, "prologue", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PushConstantIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PushConstantIns.java index 81e47b5f6..033bf7d8b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PushConstantIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/PushConstantIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class PushConstantIns extends InstructionDefinition { + /** + * Constructor + */ public PushConstantIns() { super(0x22, "pushconstant", new int[]{AVM2Code.OPT_U30}, false /*?*/, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.NO_FLASH_PLAYER); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SendEnterIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SendEnterIns.java index 6d81fe981..8660cb4de 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SendEnterIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SendEnterIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class SendEnterIns extends InstructionDefinition { + /** + * Constructor + */ public SendEnterIns() { super(0xFA, "sendenter", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SetPropertyLateIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SetPropertyLateIns.java index fee19428f..6c1808ef3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SetPropertyLateIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SetPropertyLateIns.java @@ -34,6 +34,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class SetPropertyLateIns extends InstructionDefinition { + /** + * Constructor + */ public SetPropertyLateIns() { super(0x69, "setpropertylate", new int[]{}, true /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SweepIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SweepIns.java index cc9a69583..9a9ef037b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SweepIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/SweepIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class SweepIns extends InstructionDefinition { + /** + * Constructor + */ public SweepIns() { super(0xFC, "sweep", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyOpIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyOpIns.java index e084e854b..3c535f988 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyOpIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyOpIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class VerifyOpIns extends InstructionDefinition { + /** + * Constructor + */ public VerifyOpIns() { super(0xFE, "verifyop", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK, AVM2InstructionFlag.UNDOCUMENTED); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyPassIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyPassIns.java index 9ab502111..06a5dc100 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyPassIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/VerifyPassIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class VerifyPassIns extends InstructionDefinition { + /** + * Constructor + */ public VerifyPassIns() { super(0xF5, "verifypass", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/WbIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/WbIns.java index 0372a58ae..cb33bef79 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/WbIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/other/unknown/WbIns.java @@ -35,6 +35,9 @@ import com.jpexs.decompiler.flash.abc.avm2.instructions.InstructionDefinition; */ public class WbIns extends InstructionDefinition { + /** + * Constructor + */ public WbIns() { super(0xF8, "wb", new int[]{}, false /*?*/, AVM2InstructionFlag.NO_FLASH_PLAYER, AVM2InstructionFlag.UNDOCUMENTED, AVM2InstructionFlag.UNKNOWN_OPERANDS, AVM2InstructionFlag.UNKNOWN_STACK); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/DupIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/DupIns.java index c59f5f8f3..cee1c1e8f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/DupIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/DupIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class DupIns extends InstructionDefinition { + /** + * Constructor + */ public DupIns() { super(0x2a, "dup", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopIns.java index 878e8d779..4896fbabf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopIns.java @@ -36,6 +36,9 @@ import java.util.List; */ public class PopIns extends InstructionDefinition { + /** + * Constructor + */ public PopIns() { super(0x29, "pop", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopScopeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopScopeIns.java index 2fb150d97..834bfe88d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopScopeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PopScopeIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PopScopeIns extends InstructionDefinition { + /** + * Constructor + */ public PopScopeIns() { super(0x1d, "popscope", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushByteIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushByteIns.java index 598070699..f681a0b69 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushByteIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushByteIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushByteIns extends InstructionDefinition implements PushIntegerTypeIns { + /** + * Constructor + */ public PushByteIns() { super(0x24, "pushbyte", new int[]{AVM2Code.OPT_S8}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushDoubleIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushDoubleIns.java index 141c9f077..0ee2d1a8a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushDoubleIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushDoubleIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushDoubleIns extends InstructionDefinition { + /** + * Constructor + */ public PushDoubleIns() { super(0x2f, "pushdouble", new int[]{AVM2Code.DAT_DOUBLE_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushFalseIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushFalseIns.java index ec7ec6524..4858f530e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushFalseIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushFalseIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class PushFalseIns extends InstructionDefinition { + /** + * Constructor + */ public PushFalseIns() { super(0x27, "pushfalse", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntIns.java index 4e845585e..d5a141048 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushIntIns extends InstructionDefinition implements PushIntegerTypeIns { + /** + * Constructor + */ public PushIntIns() { super(0x2d, "pushint", new int[]{AVM2Code.DAT_INT_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntegerTypeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntegerTypeIns.java index 7e2ebc75b..f1dc2fffb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntegerTypeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushIntegerTypeIns.java @@ -17,6 +17,7 @@ package com.jpexs.decompiler.flash.abc.avm2.instructions.stack; /** + * Push integer, short or byte to the stack. * @author JPEXS */ public interface PushIntegerTypeIns { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNamespaceIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNamespaceIns.java index 329cb9659..8f2b0765f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNamespaceIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNamespaceIns.java @@ -33,6 +33,9 @@ import java.util.List; */ public class PushNamespaceIns extends InstructionDefinition { + /** + * Constructor + */ public PushNamespaceIns() { super(0x31, "pushnamespace", new int[]{AVM2Code.DAT_NAMESPACE_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNanIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNanIns.java index ef8879b78..cb431cf68 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNanIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNanIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class PushNanIns extends InstructionDefinition { + /** + * Constructor + */ public PushNanIns() { super(0x28, "pushnan", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNullIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNullIns.java index 5714cb166..61b8ad745 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNullIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushNullIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushNullIns extends InstructionDefinition { + /** + * Constructor + */ public PushNullIns() { super(0x20, "pushnull", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushScopeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushScopeIns.java index a92f1b2aa..b9326aa86 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushScopeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushScopeIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class PushScopeIns extends InstructionDefinition { + /** + * Constructor + */ public PushScopeIns() { super(0x30, "pushscope", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java index 3a27635e2..698ae9798 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushShortIns extends InstructionDefinition implements PushIntegerTypeIns { + /** + * Constructor + */ public PushShortIns() { super(0x25, "pushshort", new int[]{AVM2Code.OPT_S16}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushStringIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushStringIns.java index 2aff2f792..0e3c5be84 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushStringIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushStringIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushStringIns extends InstructionDefinition { + /** + * Constructor + */ public PushStringIns() { super(0x2c, "pushstring", new int[]{AVM2Code.DAT_STRING_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushTrueIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushTrueIns.java index dcc181506..a306e36bb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushTrueIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushTrueIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class PushTrueIns extends InstructionDefinition { + /** + * Constructor + */ public PushTrueIns() { super(0x26, "pushtrue", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUIntIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUIntIns.java index 4ddc8d869..bdbc123df 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUIntIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUIntIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushUIntIns extends InstructionDefinition implements PushIntegerTypeIns { + /** + * Constructor + */ public PushUIntIns() { super(0x2e, "pushuint", new int[]{AVM2Code.DAT_UINT_INDEX}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUndefinedIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUndefinedIns.java index e8973af84..e02c61af2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUndefinedIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushUndefinedIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class PushUndefinedIns extends InstructionDefinition { + /** + * Constructor + */ public PushUndefinedIns() { super(0x21, "pushundefined", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushWithIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushWithIns.java index 3b99b0ecb..fc715403a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushWithIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushWithIns.java @@ -33,6 +33,9 @@ import java.util.List; */ public class PushWithIns extends InstructionDefinition { + /** + * Constructor + */ public PushWithIns() { super(0x1c, "pushwith", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/SwapIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/SwapIns.java index 81e67a62f..170e3379b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/SwapIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/SwapIns.java @@ -34,6 +34,9 @@ import java.util.List; */ public class SwapIns extends InstructionDefinition { + /** + * Constructor + */ public SwapIns() { super(0x2b, "swap", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ApplyTypeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ApplyTypeIns.java index daee69867..9506c1685 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ApplyTypeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ApplyTypeIns.java @@ -38,6 +38,9 @@ import java.util.List; */ public class ApplyTypeIns extends InstructionDefinition { + /** + * Constructor + */ public ApplyTypeIns() { super(0x53, "applytype", new int[]{AVM2Code.DAT_ARG_COUNT}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeIns.java index acdff4a8f..2c986678a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeIns.java @@ -38,6 +38,9 @@ import java.util.List; */ public class AsTypeIns extends InstructionDefinition { + /** + * Constructor + */ public AsTypeIns() { super(0x86, "astype", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeLateIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeLateIns.java index ab1722b2f..2fe9733ec 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeLateIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/AsTypeLateIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class AsTypeLateIns extends InstructionDefinition { + /** + * Constructor + */ public AsTypeLateIns() { super(0x87, "astypelate", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceAIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceAIns.java index 51a0d8175..bea1d12df 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceAIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceAIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class CoerceAIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceAIns() { super(0x82, "coerce_a", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceIns.java index bdd9ab24d..bbe27dead 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceIns.java @@ -43,6 +43,9 @@ import java.util.List; */ public class CoerceIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceIns() { super(0x80, "coerce", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOIns.java index 47d3414e1..9835eba28 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOIns.java @@ -34,6 +34,9 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class CoerceOIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceOIns() { super(0x89, "coerce_o", new int[]{}, true); // stack: -1+1 } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOrConvertTypeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOrConvertTypeIns.java index 42d32bf8f..301a06e77 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOrConvertTypeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceOrConvertTypeIns.java @@ -27,5 +27,12 @@ import com.jpexs.decompiler.graph.GraphTargetItem; */ public interface CoerceOrConvertTypeIns { + /** + * Get target type of coercing or converting. + * + * @param constants Constants + * @param ins Instruction + * @return Target type + */ public GraphTargetItem getTargetType(AVM2ConstantPool constants, AVM2Instruction ins); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceSIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceSIns.java index 267c603d5..16f5bce33 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceSIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/CoerceSIns.java @@ -39,6 +39,9 @@ import java.util.List; */ public class CoerceSIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public CoerceSIns() { super(0x85, "coerce_s", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertBIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertBIns.java index 4d111366b..26376a39e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertBIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertBIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class ConvertBIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public ConvertBIns() { super(0x76, "convert_b", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertDIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertDIns.java index a597fa7d1..1bf685074 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertDIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertDIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class ConvertDIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public ConvertDIns() { super(0x75, "convert_d", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertIIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertIIns.java index 71cccaa84..e3bd75288 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertIIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertIIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class ConvertIIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public ConvertIIns() { super(0x73, "convert_i", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertOIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertOIns.java index 95fa311bc..896c571f2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertOIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertOIns.java @@ -39,6 +39,9 @@ import java.util.List; */ public class ConvertOIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public ConvertOIns() { super(0x77, "convert_o", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertSIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertSIns.java index fb89d2fb1..5118b0f79 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertSIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertSIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class ConvertSIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public ConvertSIns() { super(0x70, "convert_s", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertUIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertUIns.java index 3a7a16dd6..709e13b87 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertUIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/ConvertUIns.java @@ -37,6 +37,9 @@ import java.util.List; */ public class ConvertUIns extends InstructionDefinition implements CoerceOrConvertTypeIns { + /** + * Constructor + */ public ConvertUIns() { super(0x74, "convert_u", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/InstanceOfIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/InstanceOfIns.java index 7605e526c..31517cc65 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/InstanceOfIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/InstanceOfIns.java @@ -32,6 +32,9 @@ import java.util.List; */ public class InstanceOfIns extends InstructionDefinition { + /** + * Constructor + */ public InstanceOfIns() { super(0xb1, "instanceof", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeIns.java index c12b27dcc..5fb7ac598 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class IsTypeIns extends InstructionDefinition { + /** + * Constructor + */ public IsTypeIns() { super(0xb2, "istype", new int[]{AVM2Code.DAT_MULTINAME_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeLateIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeLateIns.java index 47eb205a4..87f52d342 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeLateIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/IsTypeLateIns.java @@ -33,6 +33,9 @@ import java.util.List; */ public class IsTypeLateIns extends InstructionDefinition { + /** + * Constructor + */ public IsTypeLateIns() { super(0xb3, "istypelate", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/TypeOfIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/TypeOfIns.java index 56d292501..dd64d4901 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/TypeOfIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/types/TypeOfIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class TypeOfIns extends InstructionDefinition { + /** + * Constructor + */ public TypeOfIns() { super(0x95, "typeof", new int[]{}, false); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/CheckFilterIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/CheckFilterIns.java index b06a2f919..598a4125c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/CheckFilterIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/CheckFilterIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class CheckFilterIns extends InstructionDefinition { + /** + * Constructor + */ public CheckFilterIns() { super(0x78, "checkfilter", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSIns.java index 3243eb466..3c3f46259 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class DXNSIns extends InstructionDefinition { + /** + * Constructor + */ public DXNSIns() { super(0x06, "dxns", new int[]{AVM2Code.DAT_STRING_INDEX}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSLateIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSLateIns.java index 4bd7d9df7..6a5759d80 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSLateIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/DXNSLateIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class DXNSLateIns extends InstructionDefinition { + /** + * Constructor + */ public DXNSLateIns() { super(0x07, "dxnslate", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXAttrIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXAttrIns.java index 20f1f8eeb..929431edd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXAttrIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXAttrIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class EscXAttrIns extends InstructionDefinition { + /** + * Constructor + */ public EscXAttrIns() { super(0x72, "esc_xattr", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXElemIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXElemIns.java index 881fac1d1..407d15729 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXElemIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/xml/EscXElemIns.java @@ -35,6 +35,9 @@ import java.util.List; */ public class EscXElemIns extends InstructionDefinition { + /** + * Constructor + */ public EscXElemIns() { super(0x71, "esc_xelem", new int[]{}, true); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AVM2Item.java index f642b3e02..9a3d0c1cf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AVM2Item.java @@ -48,10 +48,25 @@ public abstract class AVM2Item extends GraphTargetItem { private AVM2Instruction lineStartIns; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param precedence Precedence + */ public AVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int precedence) { this(instruction, lineStartIns, precedence, null); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param precedence Precedence + * @param value Value + */ public AVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int precedence, GraphTargetItem value) { super(instruction, lineStartIns, precedence, value); if (instruction instanceof AVM2Instruction) { @@ -62,10 +77,20 @@ public abstract class AVM2Item extends GraphTargetItem { } } + /** + * Gets instruction. + * + * @return Instruction + */ public AVM2Instruction getInstruction() { return instruction; } + /** + * Gets line start instruction. + * + * @return Line start instruction + */ public AVM2Instruction getLineStartIns() { return lineStartIns; } @@ -75,6 +100,16 @@ public abstract class AVM2Item extends GraphTargetItem { return true; } + /** + * Formats property. + * @param writer Writer + * @param object Object + * @param propertyName Property name + * @param localData Local data + * @param isStatic Is static + * @return Writer + * @throws InterruptedException On interrupt + */ protected GraphTextWriter formatProperty(GraphTextWriter writer, GraphTargetItem object, GraphTargetItem propertyName, LocalData localData, boolean isStatic) throws InterruptedException { boolean empty = object.getThroughDuplicate() instanceof FindPropertyAVM2Item; if (object instanceof LocalRegAVM2Item) { @@ -147,6 +182,12 @@ public abstract class AVM2Item extends GraphTargetItem { } } + /** + * Gets local register name. + * @param localRegNames Local register names + * @param reg Register + * @return Local register name + */ public static String localRegName(HashMap localRegNames, int reg) { if (localRegNames.containsKey(reg)) { return IdentifiersDeobfuscation.printIdentifier(true, localRegNames.get(reg)); @@ -162,6 +203,7 @@ public abstract class AVM2Item extends GraphTargetItem { public boolean hasReturnValue() { return false; }*/ + @Override public List toSourceIgnoreReturnValue(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException { if (!hasReturnValue()) { @@ -172,6 +214,12 @@ public abstract class AVM2Item extends GraphTargetItem { return ret; } + /** + * Creates instruction. + * @param instructionCode Instruction code + * @param operands Operands + * @return Instruction + */ public static AVM2Instruction ins(int instructionCode, Integer... operands) { InstructionDefinition def = AVM2Code.instructionSet[instructionCode]; List ops = new ArrayList<>(); @@ -188,11 +236,23 @@ public abstract class AVM2Item extends GraphTargetItem { return new AVM2Instruction(0, def, opArr); } + /** + * Gets free register. + * @param localData Local data + * @param generator Generator + * @return Free register + */ public static int getFreeRegister(SourceGeneratorLocalData localData, SourceGenerator generator) { AVM2SourceGenerator g = (AVM2SourceGenerator) generator; return g.getFreeRegister(localData); } + /** + * Kills register. + * @param localData Local data + * @param generator Generator + * @param regNumber Register number + */ public static void killRegister(SourceGeneratorLocalData localData, SourceGenerator generator, int regNumber) { AVM2SourceGenerator g = (AVM2SourceGenerator) generator; g.killRegister(localData, regNumber); @@ -226,6 +286,11 @@ public abstract class AVM2Item extends GraphTargetItem { return true; } + /** + * Whether target must stay intact. A special case. + * @param target Target + * @return Whether target must stay intact + */ public static boolean mustStayIntact1(GraphTargetItem target) { target = target.getNotCoerced(); if (target instanceof ExceptionAVM2Item) { @@ -234,6 +299,11 @@ public abstract class AVM2Item extends GraphTargetItem { return false; } + /** + * Whether target must stay intact. Version 2. A special case. + * @param target Target + * @return Whether target must stay intact. Version 2. + */ public static boolean mustStayIntact2(GraphTargetItem target) { target = target.getNotCoerced(); if (target instanceof NextValueAVM2Item) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyLoadAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyLoadAVM2Item.java index 2e5ac38d7..91580ab2b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyLoadAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyLoadAVM2Item.java @@ -43,6 +43,14 @@ public class AlchemyLoadAVM2Item extends AVM2Item { private final GraphTargetItem ofs; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param ofs Offset + * @param type Type + * @param size Size + */ public AlchemyLoadAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem ofs, String type, int size) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.ofs = ofs; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemySignExtendAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemySignExtendAVM2Item.java index 873545c8c..e6b1d6ced 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemySignExtendAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemySignExtendAVM2Item.java @@ -38,6 +38,14 @@ public class AlchemySignExtendAVM2Item extends AVM2Item { private final int size; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param size Size + */ public AlchemySignExtendAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, int size) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); this.size = size; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyStoreAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyStoreAVM2Item.java index 8ac683d33..1f04e38a9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyStoreAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/AlchemyStoreAVM2Item.java @@ -42,6 +42,15 @@ public class AlchemyStoreAVM2Item extends AVM2Item { private final GraphTargetItem ofs; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param ofs Offset + * @param type Type + * @param size Size + */ public AlchemyStoreAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem ofs, String type, int size) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); this.ofs = ofs; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ApplyTypeAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ApplyTypeAVM2Item.java index d19f9a550..b53320db0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ApplyTypeAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ApplyTypeAVM2Item.java @@ -41,6 +41,14 @@ public class ApplyTypeAVM2Item extends AVM2Item { public List params; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param params Parameters + */ public ApplyTypeAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, List params) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.params = params; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/BooleanAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/BooleanAVM2Item.java index 67cc674c7..5c99e1cf3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/BooleanAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/BooleanAVM2Item.java @@ -37,8 +37,17 @@ import java.util.Set; */ public class BooleanAVM2Item extends AVM2Item { + /** + * Value. + */ public Boolean value; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public BooleanAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Boolean value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.value = value; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallAVM2Item.java index 8748d2df9..859b4f237 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallAVM2Item.java @@ -38,10 +38,19 @@ import java.util.Set; */ public class CallAVM2Item extends AVM2Item { + /** + * Receiver. + */ public GraphTargetItem receiver; + /** + * Function. + */ public GraphTargetItem function; + /** + * Arguments. + */ public List arguments; private abstract static class Func implements Callable { @@ -139,6 +148,15 @@ public class CallAVM2Item extends AVM2Item { }); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param receiver Receiver + * @param function Function + * @param arguments Arguments + */ public CallAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem receiver, GraphTargetItem function, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.receiver = receiver; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallMethodAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallMethodAVM2Item.java index edf2451c5..b88ffecf9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallMethodAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallMethodAVM2Item.java @@ -32,12 +32,29 @@ import java.util.Objects; */ public class CallMethodAVM2Item extends AVM2Item { + /** + * Receiver. + */ public GraphTargetItem receiver; + /** + * Method name. + */ public String methodName; + /** + * Arguments. + */ public List arguments; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param receiver Receiver + * @param methodName Method name + * @param arguments Arguments + */ public CallMethodAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem receiver, String methodName, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.receiver = receiver; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallPropertyAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallPropertyAVM2Item.java index 001793593..937b04bdb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallPropertyAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallPropertyAVM2Item.java @@ -37,18 +37,47 @@ import java.util.Objects; */ public class CallPropertyAVM2Item extends AVM2Item { + /** + * Receiver + */ public GraphTargetItem receiver; + /** + * Property name + */ public GraphTargetItem propertyName; + /** + * Arguments + */ public List arguments; + /** + * Is void + */ public boolean isVoid; + /** + * Type + */ public GraphTargetItem type; + /** + * Is static + */ public boolean isStatic; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param isVoid Is void + * @param receiver Receiver + * @param propertyName Property name + * @param arguments Arguments + * @param type Type + * @param isStatic Is static + */ public CallPropertyAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, boolean isVoid, GraphTargetItem receiver, GraphTargetItem propertyName, List arguments, GraphTargetItem type, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.receiver = receiver; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallStaticAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallStaticAVM2Item.java index a2ff4f235..8f45f8571 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallStaticAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallStaticAVM2Item.java @@ -32,12 +32,30 @@ import java.util.Objects; */ public class CallStaticAVM2Item extends AVM2Item { + /** + * Receiver + */ public GraphTargetItem receiver; + /** + * Method name + */ public String methodName; + /** + * Arguments + */ public List arguments; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param receiver Receiver + * @param methodName Method name + * @param arguments Arguments + */ public CallStaticAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem receiver, String methodName, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.receiver = receiver; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallSuperAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallSuperAVM2Item.java index b5db4ceb4..ca74f01fd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallSuperAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CallSuperAVM2Item.java @@ -32,14 +32,36 @@ import java.util.Objects; */ public class CallSuperAVM2Item extends AVM2Item { + /** + * Receiver + */ public GraphTargetItem receiver; + /** + * Multiname + */ public GraphTargetItem multiname; + /** + * Arguments + */ public List arguments; + /** + * Is void + */ public boolean isVoid; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param isVoid Is void + * @param receiver Receiver + * @param multiname Multiname + * @param arguments Arguments + */ public CallSuperAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, boolean isVoid, GraphTargetItem receiver, GraphTargetItem multiname, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.receiver = receiver; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ClassAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ClassAVM2Item.java index 266b0c85d..cdaae9616 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ClassAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ClassAVM2Item.java @@ -31,15 +31,31 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class ClassAVM2Item extends AVM2Item { + /** + * Class name + */ public Multiname className; + /** + * Class name as string + */ public DottedChain classNameAsStr; + /** + * Constructor. + * + * @param className Class name + */ public ClassAVM2Item(Multiname className) { super(null, null, PRECEDENCE_PRIMARY); this.className = className; } + /** + * Constructor. + * + * @param className Class name as string + */ public ClassAVM2Item(DottedChain className) { super(null, null, PRECEDENCE_PRIMARY); this.classNameAsStr = className; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CoerceAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CoerceAVM2Item.java index 911a1e0fe..e326bce98 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CoerceAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/CoerceAVM2Item.java @@ -42,8 +42,19 @@ import java.util.Set; */ public class CoerceAVM2Item extends AVM2Item { + /** + * Type + */ public GraphTargetItem typeObj; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param typeObj Type + */ public CoerceAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem typeObj) { super(instruction, lineStartIns, value.getPrecedence(), value); this.typeObj = typeObj; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructAVM2Item.java index 53ad63a29..915a6df63 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructAVM2Item.java @@ -31,10 +31,24 @@ import java.util.Objects; */ public class ConstructAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Arguments + */ public List args; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param args Arguments + */ public ConstructAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, List args) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructPropAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructPropAVM2Item.java index 375d5441d..ccff6ce8f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructPropAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructPropAVM2Item.java @@ -31,14 +31,36 @@ import java.util.Objects; */ public class ConstructPropAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public GraphTargetItem propertyName; + /** + * Arguments + */ public List args; + /** + * Type + */ public GraphTargetItem type; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param propertyName Property name + * @param args Arguments + * @param type Type + */ public ConstructPropAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem propertyName, List args, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructSuperAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructSuperAVM2Item.java index df7d124e8..574f601ea 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructSuperAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConstructSuperAVM2Item.java @@ -37,10 +37,24 @@ import java.util.Objects; */ public class ConstructSuperAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Arguments + */ public List args; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param args Arguments + */ public ConstructSuperAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, List args) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConvertAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConvertAVM2Item.java index 12cf50141..bb37d2a0f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConvertAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ConvertAVM2Item.java @@ -33,8 +33,19 @@ import java.util.Set; */ public class ConvertAVM2Item extends AVM2Item { + /** + * Type to convert to + */ public GraphTargetItem type; + /** + * Constructor + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value to convert + * @param type Type to convert to + */ public ConvertAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem type) { super(instruction, lineStartIns, value.getPrecedence(), value); this.type = type; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecLocalAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecLocalAVM2Item.java index 2e4d3780b..b63e29f4e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecLocalAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecLocalAVM2Item.java @@ -29,8 +29,17 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class DecLocalAVM2Item extends AVM2Item { + /** + * Register index + */ public int regIndex; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param regIndex Register index + */ public DecLocalAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int regIndex) { super(instruction, lineStartIns, PRECEDENCE_POSTFIX); this.regIndex = regIndex; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecrementAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecrementAVM2Item.java index bfaa8d2a3..20fd2ba5d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecrementAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DecrementAVM2Item.java @@ -31,6 +31,12 @@ import java.util.Set; */ public class DecrementAVM2Item extends AVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public DecrementAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE, object); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DefaultXMLNamespace.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DefaultXMLNamespace.java index cbc668fc0..ab0894eee 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DefaultXMLNamespace.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/DefaultXMLNamespace.java @@ -36,8 +36,18 @@ import java.util.Objects; */ public class DefaultXMLNamespace extends AVM2Item { + /** + * Namespace. + */ private final GraphTargetItem ns; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param ns Namespace + */ public DefaultXMLNamespace(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem ns) { super(instruction, lineStartIns, NOPRECEDENCE); this.ns = ns; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXAttrAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXAttrAVM2Item.java index 8c6548a31..7cad8b3d9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXAttrAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXAttrAVM2Item.java @@ -35,6 +35,12 @@ import java.util.Objects; */ public class EscapeXAttrAVM2Item extends AVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param expression Expression + */ public EscapeXAttrAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem expression) { super(instruction, lineStartIns, NOPRECEDENCE, expression); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXElemAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXElemAVM2Item.java index 13145a5c9..19de9e835 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXElemAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/EscapeXElemAVM2Item.java @@ -35,6 +35,12 @@ import java.util.Objects; */ public class EscapeXElemAVM2Item extends AVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param expression Expression + */ public EscapeXElemAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem expression) { super(instruction, lineStartIns, NOPRECEDENCE, expression); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FilteredCheckAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FilteredCheckAVM2Item.java index d789a4c47..1e0279a0b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FilteredCheckAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FilteredCheckAVM2Item.java @@ -31,8 +31,18 @@ import java.util.Objects; */ public class FilteredCheckAVM2Item extends AVM2Item { + /** + * Object. + */ public GraphTargetItem object; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public FilteredCheckAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, NOPRECEDENCE); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindDefAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindDefAVM2Item.java index 70c784e0b..9824e6acd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindDefAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindDefAVM2Item.java @@ -31,8 +31,18 @@ import java.util.Objects; */ public class FindDefAVM2Item extends AVM2Item { + /** + * Property name + */ public Multiname propertyName; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param propertyName Property name + */ public FindDefAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Multiname propertyName) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.propertyName = propertyName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindPropertyAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindPropertyAVM2Item.java index 0b36fd5a6..00f9e5e6e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindPropertyAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FindPropertyAVM2Item.java @@ -37,8 +37,18 @@ import java.util.Objects; */ public class FindPropertyAVM2Item extends AVM2Item { + /** + * Property name + */ public GraphTargetItem propertyName; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param propertyName Property name + */ public FindPropertyAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem propertyName) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.propertyName = propertyName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FloatValueAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FloatValueAVM2Item.java index 1c8636730..5f4b133ea 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FloatValueAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FloatValueAVM2Item.java @@ -39,8 +39,18 @@ import java.util.Set; */ public class FloatValueAVM2Item extends NumberValueAVM2Item { + /** + * Value + */ public Double value; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public FloatValueAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Double value) { super(instruction, lineStartIns); this.value = value; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FullMultinameAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FullMultinameAVM2Item.java index cc5317df4..fc4f65a96 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FullMultinameAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/FullMultinameAVM2Item.java @@ -39,16 +39,41 @@ import java.util.Set; */ public class FullMultinameAVM2Item extends AVM2Item { + /** + * Multiname index + */ public int multinameIndex; + /** + * Name + */ public GraphTargetItem name; + /** + * Namespace + */ public GraphTargetItem namespace; + /** + * Is property + */ public boolean property; + /** + * Resolved multiname name + */ public String resolvedMultinameName; + /** + * Constructor. + * + * @param property Is property + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param multinameIndex Multiname index + * @param resolvedMultinameName Resolved multiname name + * @param name Name + */ public FullMultinameAVM2Item(boolean property, GraphSourceItem instruction, GraphSourceItem lineStartIns, int multinameIndex, String resolvedMultinameName, GraphTargetItem name) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.multinameIndex = multinameIndex; @@ -58,6 +83,14 @@ public class FullMultinameAVM2Item extends AVM2Item { this.resolvedMultinameName = resolvedMultinameName; } + /** + * Constructor. + * @param property Is property + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param multinameIndex Multiname index + * @param resolvedMultinameName Resolved multiname name + */ public FullMultinameAVM2Item(boolean property, GraphSourceItem instruction, GraphSourceItem lineStartIns, int multinameIndex, String resolvedMultinameName) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.multinameIndex = multinameIndex; @@ -67,6 +100,16 @@ public class FullMultinameAVM2Item extends AVM2Item { this.property = property; } + /** + * Constructor. + * @param property Is property + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param multinameIndex Multiname index + * @param resolvedMultinameName Resolved multiname name + * @param name Name + * @param namespace Namespace + */ public FullMultinameAVM2Item(boolean property, GraphSourceItem instruction, GraphSourceItem lineStartIns, int multinameIndex, String resolvedMultinameName, GraphTargetItem name, GraphTargetItem namespace) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.multinameIndex = multinameIndex; @@ -86,10 +129,24 @@ public class FullMultinameAVM2Item extends AVM2Item { } } + /** + * Is runtime multiname. + * @return Is runtime multiname + */ public boolean isRuntime() { return (name != null) || (namespace != null); } + /** + * Is top level. + * @param tname Top level name + * @param abc ABC + * @param localRegNames Local register names + * @param fullyQualifiedNames Fully qualified names + * @param seenMethods Seen methods + * @return Is top level + * @throws InterruptedException On interrupt + */ public boolean isTopLevel(String tname, ABC abc, HashMap localRegNames, List fullyQualifiedNames, Set seenMethods) throws InterruptedException { String cname; if (name != null) { @@ -109,6 +166,15 @@ public class FullMultinameAVM2Item extends AVM2Item { return cname.equals(tname) && cns.isEmpty(); } + /** + * Is XML. + * @param abc ABC + * @param localRegNames Local register names + * @param fullyQualifiedNames Fully qualified names + * @param seenMethods Seen methods + * @return Is XML + * @throws InterruptedException On interrupt + */ public boolean isXML(ABC abc, HashMap localRegNames, List fullyQualifiedNames, Set seenMethods) throws InterruptedException { return isTopLevel("XML", abc, localRegNames, fullyQualifiedNames, seenMethods); } @@ -149,6 +215,11 @@ public class FullMultinameAVM2Item extends AVM2Item { return writer; } + /** + * Compare same. + * @param other Other + * @return Is same + */ public boolean compareSame(FullMultinameAVM2Item other) { if (multinameIndex != other.multinameIndex) { return false; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetDescendantsAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetDescendantsAVM2Item.java index 58d4b55d1..226843a32 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetDescendantsAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetDescendantsAVM2Item.java @@ -37,15 +37,33 @@ import java.util.Objects; */ public class GetDescendantsAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Multiname + */ public GraphTargetItem multiname; + /** + * Opened namespaces + */ public List openedNamespaces; + /** + * Name string + */ public String nameStr; - //constructor for compiler + /** + * Constructor. + * For compiler. + * @param object Object + * @param nameStr Name string + * @param openedNamespaces Opened namespaces + */ public GetDescendantsAVM2Item(GraphTargetItem object, String nameStr, List openedNamespaces) { super(null, null, PRECEDENCE_PRIMARY); this.object = object; @@ -58,6 +76,13 @@ public class GetDescendantsAVM2Item extends AVM2Item { visitor.visit(object); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param multiname Multiname + */ public GetDescendantsAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem multiname) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetLexAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetLexAVM2Item.java index f44678086..f2a4ae2d2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetLexAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetLexAVM2Item.java @@ -32,16 +32,41 @@ import java.util.Objects; */ public class GetLexAVM2Item extends AVM2Item { + /** + * Property name + */ public Multiname propertyName; + /** + * Type + */ public GraphTargetItem type; + /** + * Call type + */ public GraphTargetItem callType; + /** + * Is static + */ public boolean isStatic; + /** + * Full property name + */ private final DottedChain fullPropertyName; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param propertyName Property name + * @param constants Constants + * @param type Type + * @param callType Call type + * @param isStatic Is static + */ public GetLexAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Multiname propertyName, AVM2ConstantPool constants, GraphTargetItem type, GraphTargetItem callType, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.propertyName = propertyName; @@ -51,6 +76,10 @@ public class GetLexAVM2Item extends AVM2Item { this.isStatic = isStatic; } + /** + * Gets the raw property name. + * @return Raw property name + */ public String getRawPropertyName() { return fullPropertyName.toRawString(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetPropertyAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetPropertyAVM2Item.java index 0d63cc957..4ada66681 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetPropertyAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetPropertyAVM2Item.java @@ -44,14 +44,29 @@ import java.util.Set; */ public class GetPropertyAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public GraphTargetItem propertyName; + /** + * Type + */ public GraphTargetItem type; + /** + * Call type + */ public GraphTargetItem callType; + /** + * Is static + */ public boolean isStatic; @Override @@ -134,6 +149,17 @@ public class GetPropertyAVM2Item extends AVM2Item { return null; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param propertyName Property name + * @param type Type + * @param callType Call type + * @param isStatic Is static + */ public GetPropertyAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem propertyName, GraphTargetItem type, GraphTargetItem callType, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSlotAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSlotAVM2Item.java index 3db0c3d10..8731b98f0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSlotAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSlotAVM2Item.java @@ -31,16 +31,42 @@ import java.util.Objects; */ public class GetSlotAVM2Item extends AVM2Item { + /** + * Slot name + */ public Multiname slotName; + /** + * Scope + */ public GraphTargetItem scope; + /** + * Slot object + */ public GraphTargetItem slotObject; + /** + * Slot index + */ public int slotIndex; + /** + * Slot type + */ public GraphTargetItem slotType; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + * @param slotObject Slot object + * @param slotIndex Slot index + * @param slotName Slot name + * @param slotType Slot type + */ public GetSlotAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scope, GraphTargetItem slotObject, int slotIndex, Multiname slotName, GraphTargetItem slotType) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.slotName = slotName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSuperAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSuperAVM2Item.java index e9100e1c2..d09ba1856 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSuperAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GetSuperAVM2Item.java @@ -30,16 +30,42 @@ import java.util.Objects; */ public class GetSuperAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public FullMultinameAVM2Item propertyName; + /** + * Type + */ public GraphTargetItem type; + /** + * Call type + */ public GraphTargetItem callType; + /** + * Is static + */ public boolean isStatic; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param propertyName Property name + * @param type Type + * @param callType Call type + * @param isStatic Is static + */ public GetSuperAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, FullMultinameAVM2Item propertyName, GraphTargetItem type, GraphTargetItem callType, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GlobalAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GlobalAVM2Item.java index 43c40f645..cf3c1a10f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GlobalAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/GlobalAVM2Item.java @@ -31,6 +31,11 @@ import java.util.HashMap; */ public class GlobalAVM2Item extends AVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public GlobalAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/HasNextAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/HasNextAVM2Item.java index e4cd9f43b..362f82f67 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/HasNextAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/HasNextAVM2Item.java @@ -36,10 +36,24 @@ import java.util.Objects; */ public class HasNextAVM2Item extends AVM2Item { + /** + * Index + */ public GraphTargetItem index; + /** + * Object + */ public GraphTargetItem obj; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param index Index + * @param obj Object + */ public HasNextAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem index, GraphTargetItem obj) { super(instruction, lineStartIns, NOPRECEDENCE); this.index = index; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InAVM2Item.java index ff9235225..a8c17e718 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InAVM2Item.java @@ -36,10 +36,24 @@ import java.util.Objects; */ public class InAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Collection + */ public GraphTargetItem collection; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param collection Collection + */ public InAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem collection) { super(instruction, lineStartIns, NOPRECEDENCE); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncLocalAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncLocalAVM2Item.java index d9055a118..ffc44be89 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncLocalAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncLocalAVM2Item.java @@ -29,8 +29,17 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class IncLocalAVM2Item extends AVM2Item { + /** + * Local register index + */ public int regIndex; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param regIndex Local register index + */ public IncLocalAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int regIndex) { super(instruction, lineStartIns, PRECEDENCE_POSTFIX); this.regIndex = regIndex; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncrementAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncrementAVM2Item.java index bd1583569..f4500f364 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncrementAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IncrementAVM2Item.java @@ -31,6 +31,12 @@ import java.util.Set; */ public class IncrementAVM2Item extends AVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public IncrementAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE, object); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitPropertyAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitPropertyAVM2Item.java index 45614ef0d..648b88599 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitPropertyAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitPropertyAVM2Item.java @@ -33,20 +33,44 @@ import java.util.Objects; */ public class InitPropertyAVM2Item extends AVM2Item implements SetTypeAVM2Item, AssignmentAVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public FullMultinameAVM2Item propertyName; + /** + * Declaration + */ public DeclarationAVM2Item declaration; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; + /** + * Type + */ public GraphTargetItem type; + /** + * Call type + */ public GraphTargetItem callType; + /** + * Is static + */ public boolean isStatic; @Override @@ -66,6 +90,18 @@ public class InitPropertyAVM2Item extends AVM2Item implements SetTypeAVM2Item, A this.declaration = declaration; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param propertyName Property name + * @param value Value + * @param type Type + * @param callType Call type + * @param isStatic Is static + */ public InitPropertyAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, FullMultinameAVM2Item propertyName, GraphTargetItem value, GraphTargetItem type, GraphTargetItem callType, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitVectorAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitVectorAVM2Item.java index e2d53dcc1..f72eda7c0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitVectorAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/InitVectorAVM2Item.java @@ -44,22 +44,49 @@ import java.util.Objects; */ public class InitVectorAVM2Item extends AVM2Item { + /** + * Vector package name + */ public static final DottedChain VECTOR_PACKAGE = new DottedChain(new String[]{"__AS3__", "vec"}); + /** + * Vector fully qualified name + */ public static final DottedChain VECTOR_FQN = new DottedChain(new String[]{"__AS3__", "vec", "Vector"}); + /** + * Vector of int fully qualified name + */ public static final DottedChain VECTOR_INT = new DottedChain(new String[]{"__AS3__", "vec", "Vector$int"}); + /** + * Vector of double fully qualified name + */ public static final DottedChain VECTOR_DOUBLE = new DottedChain(new String[]{"__AS3__", "vec", "Vector$double"}); + /** + * Vector of uint fully qualified name + */ public static final DottedChain VECTOR_UINT = new DottedChain(new String[]{"__AS3__", "vec", "Vector$uint"}); + /** + * Vector of object fully qualified name + */ public static final DottedChain VECTOR_OBJECT = new DottedChain(new String[]{"__AS3__", "vec", "Vector$object"}); + /** + * Subtype + */ public GraphTargetItem subtype; + /** + * Arguments + */ public List arguments; + /** + * Opened namespaces + */ List openedNamespaces; private int allNsSet(AbcIndexing abc) throws CompilationException { @@ -72,12 +99,27 @@ public class InitVectorAVM2Item extends AVM2Item { visitor.visitAll(arguments); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param subtype Subtype + * @param arguments Arguments + */ public InitVectorAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem subtype, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.subtype = subtype; this.arguments = arguments; } + /** + * Constructor. + * + * @param subtype Subtype + * @param arguments Arguments + * @param openedNamespaces Opened namespaces + */ public InitVectorAVM2Item(GraphTargetItem subtype, List arguments, List openedNamespaces) { super(null, null, PRECEDENCE_PRIMARY); this.subtype = subtype; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IntegerValueAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IntegerValueAVM2Item.java index 686b04e03..0e59fac12 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IntegerValueAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/IntegerValueAVM2Item.java @@ -42,10 +42,22 @@ import java.util.Set; */ public class IntegerValueAVM2Item extends NumberValueAVM2Item implements IntegerValueTypeItem { + /** + * Value + */ public Integer value; + /** + * Formatted + */ private String formatted; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public IntegerValueAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Integer value) { super(instruction, lineStartIns); this.value = value; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/LocalRegAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/LocalRegAVM2Item.java index e5bb7528b..2d8a754eb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/LocalRegAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/LocalRegAVM2Item.java @@ -36,16 +36,40 @@ import java.util.Set; */ public class LocalRegAVM2Item extends AVM2Item { + /** + * Register index + */ public final int regIndex; + /*** + * Computed value + */ public GraphTargetItem computedValue; + /** + * Type + */ public GraphTargetItem type; + /** + * Computed result + */ private final Object computedResult; + /** + * Is compile time + */ private boolean isCT = false; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param regIndex Register index + * @param computedValue Computed value + * @param type Type + */ public LocalRegAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int regIndex, GraphTargetItem computedValue, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.regIndex = regIndex; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameSpaceAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameSpaceAVM2Item.java index 89a7d8ab6..9a3b37656 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameSpaceAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameSpaceAVM2Item.java @@ -33,8 +33,17 @@ import com.jpexs.helpers.Helper; */ public class NameSpaceAVM2Item extends AVM2Item { + /** + * Namespace index + */ public int namespaceIndex; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param namespaceIndex Namespace index + */ public NameSpaceAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int namespaceIndex) { super(instruction, lineStartIns, NOPRECEDENCE); this.namespaceIndex = namespaceIndex; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameValuePair.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameValuePair.java index 4b635ead1..8b924c9bb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameValuePair.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NameValuePair.java @@ -31,8 +31,16 @@ import java.util.Objects; */ public class NameValuePair extends AVM2Item { + /** + * Name + */ public GraphTargetItem name; + /** + * Constructor. + * @param name Name + * @param value Value + */ public NameValuePair(GraphTargetItem name, GraphTargetItem value) { super(name.getSrc(), name.getLineStartItem(), NOPRECEDENCE, value); this.name = name; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NanAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NanAVM2Item.java index cd5e5d216..4f95b8c99 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NanAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NanAVM2Item.java @@ -37,6 +37,11 @@ import java.util.List; */ public class NanAVM2Item extends AVM2Item implements SimpleValue { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public NanAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, NOPRECEDENCE); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewActivationAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewActivationAVM2Item.java index 5f828584c..bfb0ea17a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewActivationAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewActivationAVM2Item.java @@ -35,8 +35,17 @@ import java.util.List; */ public class NewActivationAVM2Item extends AVM2Item { + /** + * Slots. + */ public HashMap slots = new HashMap<>(); + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public NewActivationAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, NOPRECEDENCE); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewArrayAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewArrayAVM2Item.java index 05d01c2f8..9243be51e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewArrayAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewArrayAVM2Item.java @@ -40,8 +40,18 @@ import java.util.Set; */ public class NewArrayAVM2Item extends AVM2Item { + /** + * Values. + */ public List values; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param values Values + */ public NewArrayAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, List values) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.values = values; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewFunctionAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewFunctionAVM2Item.java index 3afb1a289..dfe6b39ab 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewFunctionAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewFunctionAVM2Item.java @@ -41,22 +41,59 @@ import java.util.Objects; */ public class NewFunctionAVM2Item extends AVM2Item { + /** + * Function name + */ public String functionName; + /** + * Path + */ public String path; + /** + * Is static + */ public boolean isStatic; + /** + * Script index + */ public int scriptIndex; + /** + * Class index + */ public int classIndex; + /** + * ABC + */ public ABC abc; + /** + * Method index + */ public int methodIndex; + /** + * Scope stack + */ public ScopeStack scopeStack; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param functionName Function name + * @param path Path + * @param isStatic Is static + * @param scriptIndex Script index + * @param classIndex Class index + * @param abc ABC + * @param methodIndex Method index + * @param scopeStack Scope stack + */ public NewFunctionAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, String functionName, String path, boolean isStatic, int scriptIndex, int classIndex, ABC abc, int methodIndex, ScopeStack scopeStack) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.functionName = functionName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewObjectAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewObjectAVM2Item.java index 1e0af815d..310095697 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewObjectAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NewObjectAVM2Item.java @@ -38,6 +38,7 @@ import java.util.Objects; import java.util.Set; /** + * New object. * @author JPEXS */ public class NewObjectAVM2Item extends AVM2Item { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextNameAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextNameAVM2Item.java index da21b51cc..29e7efd05 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextNameAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextNameAVM2Item.java @@ -36,12 +36,28 @@ import java.util.Objects; */ public class NextNameAVM2Item extends AVM2Item { + /** + * Index + */ public GraphTargetItem index; + /** + * Object + */ public GraphTargetItem obj; + /** + * Local register + */ public GraphTargetItem localReg; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param index Index + * @param obj Object + */ public NextNameAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem index, GraphTargetItem obj) { super(instruction, lineStartIns, NOPRECEDENCE); this.index = index; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextValueAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextValueAVM2Item.java index d22910339..48107157a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextValueAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NextValueAVM2Item.java @@ -36,12 +36,28 @@ import java.util.Objects; */ public class NextValueAVM2Item extends AVM2Item { + /** + * Index + */ public GraphTargetItem index; + /** + * Object + */ public GraphTargetItem obj; + /** + * Local register + */ public GraphTargetItem localReg; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param index Index + * @param obj Object + */ public NextValueAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem index, GraphTargetItem obj) { super(instruction, lineStartIns, NOPRECEDENCE); this.index = index; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NullAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NullAVM2Item.java index c0d9ff1d5..a2b404f0e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NullAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NullAVM2Item.java @@ -39,6 +39,11 @@ import java.util.Set; */ public class NullAVM2Item extends AVM2Item implements SimpleValue { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public NullAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NumberValueAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NumberValueAVM2Item.java index 2eec59061..d36cc0f75 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NumberValueAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/NumberValueAVM2Item.java @@ -26,6 +26,11 @@ import com.jpexs.decompiler.graph.SimpleValue; */ public abstract class NumberValueAVM2Item extends AVM2Item implements SimpleValue { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public NumberValueAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostDecrementAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostDecrementAVM2Item.java index a83a94992..3a5729d8b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostDecrementAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostDecrementAVM2Item.java @@ -37,8 +37,17 @@ import java.util.Objects; */ public class PostDecrementAVM2Item extends AVM2Item implements AssignmentAVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PostDecrementAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_POSTFIX); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostIncrementAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostIncrementAVM2Item.java index 7f898f0c6..739e2a0ff 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostIncrementAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/PostIncrementAVM2Item.java @@ -37,8 +37,17 @@ import java.util.Objects; */ public class PostIncrementAVM2Item extends AVM2Item implements AssignmentAVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PostIncrementAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_POSTFIX); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/RegExpAvm2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/RegExpAvm2Item.java index cc57d080f..5d2223f35 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/RegExpAvm2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/RegExpAvm2Item.java @@ -49,10 +49,23 @@ import java.util.regex.Pattern; */ public class RegExpAvm2Item extends AVM2Item implements Callable { + /** + * Pattern + */ public String pattern; + /** + * Modifier + */ public String modifier; + /** + * Constructor. + * @param pattern Pattern + * @param modifier Modifier + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public RegExpAvm2Item(String pattern, String modifier, GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.pattern = pattern; @@ -64,6 +77,11 @@ public class RegExpAvm2Item extends AVM2Item implements Callable { return true; } + /** + * Escapes regular expression string. + * @param s String + * @return Escaped string + */ public static String escapeRegExpString(String s) { StringBuilder ret = new StringBuilder(s.length()); boolean escape = false; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnValueAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnValueAVM2Item.java index f9408990a..8a328b8ca 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnValueAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnValueAVM2Item.java @@ -36,6 +36,12 @@ import java.util.Objects; */ public class ReturnValueAVM2Item extends AVM2Item implements ExitItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value to return + */ public ReturnValueAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, NOPRECEDENCE, value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnVoidAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnVoidAVM2Item.java index 5c9e20d3c..d9c24d817 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnVoidAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ReturnVoidAVM2Item.java @@ -35,6 +35,11 @@ import java.util.List; */ public class ReturnVoidAVM2Item extends AVM2Item implements ExitItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public ReturnVoidAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, NOPRECEDENCE); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetLocalAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetLocalAVM2Item.java index dd52ee1fb..ebec39c65 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetLocalAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetLocalAVM2Item.java @@ -38,18 +38,39 @@ import java.util.Objects; */ public class SetLocalAVM2Item extends AVM2Item implements SetTypeAVM2Item, AssignmentAVM2Item { + /** + * Register index + */ public int regIndex; + /** + * Declaration + */ public DeclarationAVM2Item declaration; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; + /** + * Type + */ public GraphTargetItem type; + /** + * Hide value + */ public boolean hideValue = false; + /** + * Caused by duplicate + */ public boolean causedByDup = false; @Override @@ -62,6 +83,14 @@ public class SetLocalAVM2Item extends AVM2Item implements SetTypeAVM2Item, Assig this.declaration = declaration; } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param regIndex Register index + * @param value Value + * @param type Type + */ public SetLocalAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int regIndex, GraphTargetItem value, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.regIndex = regIndex; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetPropertyAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetPropertyAVM2Item.java index f411af06a..014a03cbf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetPropertyAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetPropertyAVM2Item.java @@ -40,20 +40,44 @@ import java.util.List; */ public class SetPropertyAVM2Item extends AVM2Item implements SetTypeAVM2Item, AssignmentAVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public GraphTargetItem propertyName; + /** + * Declaration + */ public DeclarationAVM2Item declaration; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; + /** + * Type + */ public GraphTargetItem type; + /** + * Call type + */ public GraphTargetItem callType; + /** + * Is static + */ public boolean isStatic; @Override @@ -80,6 +104,17 @@ public class SetPropertyAVM2Item extends AVM2Item implements SetTypeAVM2Item, As } } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param propertyName Property name + * @param value Value + * @param type Type + * @param callType Call type + * @param isStatic Is static + */ public SetPropertyAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem propertyName, GraphTargetItem value, GraphTargetItem type, GraphTargetItem callType, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSlotAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSlotAVM2Item.java index 06d094a75..bb09e4da3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSlotAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSlotAVM2Item.java @@ -36,20 +36,44 @@ import java.util.Objects; */ public class SetSlotAVM2Item extends AVM2Item implements SetTypeAVM2Item, AssignmentAVM2Item { + /** + * Slot name + */ public Multiname slotName; + /** + * Scope + */ public GraphTargetItem scope; + /** + * Declaration + */ public DeclarationAVM2Item declaration; + /** + * Slot object + */ public GraphTargetItem slotObject; + /** + * Slot index + */ public int slotIndex; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; + /** + * Type + */ public GraphTargetItem type; @Override @@ -71,6 +95,17 @@ public class SetSlotAVM2Item extends AVM2Item implements SetTypeAVM2Item, Assign this.declaration = declaration; } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + * @param slotObject Slot object + * @param slotIndex Slot index + * @param slotName Slot name + * @param value Value + * @param type Type + */ public SetSlotAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scope, GraphTargetItem slotObject, int slotIndex, Multiname slotName, GraphTargetItem value, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.slotName = slotName; @@ -107,6 +142,12 @@ public class SetSlotAVM2Item extends AVM2Item implements SetTypeAVM2Item, Assign return SetTypeIns.handleNumberToInt(value, type).toString(writer, localData); } + /** + * Gets name as string. + * @param localData Local data + * @return Name as string + * @throws InterruptedException On interrupt + */ public String getNameAsStr(LocalData localData) throws InterruptedException { if (slotName == null) { return slotObject.toString(localData) + ".§§slot[" + slotIndex + "]"; @@ -114,6 +155,13 @@ public class SetSlotAVM2Item extends AVM2Item implements SetTypeAVM2Item, Assign return slotName.getName(localData.constantsAvm2, localData.fullyQualifiedNames, false, true); } + /** + * Gets name. + * @param writer Writer + * @param localData Local data + * @return Writer + * @throws InterruptedException + */ public GraphTextWriter getName(GraphTextWriter writer, LocalData localData) throws InterruptedException { return writer.append(getNameAsStr(localData)); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSuperAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSuperAVM2Item.java index 09502d6e4..24897b4d7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSuperAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/SetSuperAVM2Item.java @@ -33,20 +33,44 @@ import java.util.Objects; */ public class SetSuperAVM2Item extends AVM2Item implements SetTypeAVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public FullMultinameAVM2Item propertyName; + /** + * Declaration + */ public DeclarationAVM2Item declaration; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; + /** + * Type + */ public GraphTargetItem type; + /** + * Call type + */ public GraphTargetItem callType; + /** + * Is static + */ public boolean isStatic; @Override @@ -73,6 +97,18 @@ public class SetSuperAVM2Item extends AVM2Item implements SetTypeAVM2Item { return value.getFirstPart(); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param object Object + * @param propertyName Property name + * @param type Type + * @param callType Call type + * @param isStatic Is static + */ public SetSuperAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem object, FullMultinameAVM2Item propertyName, GraphTargetItem type, GraphTargetItem callType, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StoreNewActivationAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StoreNewActivationAVM2Item.java index 6c54988af..0302ffaaf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StoreNewActivationAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StoreNewActivationAVM2Item.java @@ -32,8 +32,18 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class StoreNewActivationAVM2Item extends AVM2Item { + /** + * Register index + */ public int regIndex; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param regIndex Register index + */ public StoreNewActivationAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, int regIndex) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.regIndex = regIndex; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StringAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StringAVM2Item.java index ba2b8092d..c442c5b86 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StringAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/StringAVM2Item.java @@ -40,10 +40,22 @@ import java.util.Set; */ public class StringAVM2Item extends AVM2Item implements SimpleValue { + /** + * Value + */ private String value; + /** + * Number value + */ private Double numberValue; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public StringAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, String value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.value = value; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThisAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThisAVM2Item.java index 5fc09ffc9..b0450e4a0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThisAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThisAVM2Item.java @@ -40,12 +40,30 @@ import java.util.Set; */ public class ThisAVM2Item extends AVM2Item { + /** + * Class name + */ public DottedChain className; + /** + * Is basic object + */ public boolean basicObject; + /** + * Show class name + */ public boolean showClassName; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param className Class name + * @param basicObject Is basic object + * @param showClassName Show class name + */ public ThisAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, DottedChain className, boolean basicObject, boolean showClassName) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.className = className; @@ -54,6 +72,10 @@ public class ThisAVM2Item extends AVM2Item { getSrcData().localName = "this"; } + /** + * Checks if this is a basic object. + * @return True if this is a basic object + */ public boolean isBasicObject() { return basicObject; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThrowAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThrowAVM2Item.java index dc38c45a2..a6a2270fe 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThrowAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/ThrowAVM2Item.java @@ -36,6 +36,12 @@ import java.util.Objects; */ public class ThrowAVM2Item extends AVM2Item implements ExitItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value to throw + */ public ThrowAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, NOPRECEDENCE, value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UndefinedAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UndefinedAVM2Item.java index fde972a4f..4c84a0ab3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UndefinedAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UndefinedAVM2Item.java @@ -38,6 +38,11 @@ import java.util.Set; */ public class UndefinedAVM2Item extends AVM2Item implements SimpleValue { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public UndefinedAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UnparsedAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UnparsedAVM2Item.java index 7b802737d..5bfc31fc1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UnparsedAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/UnparsedAVM2Item.java @@ -30,8 +30,17 @@ import java.util.Objects; */ public class UnparsedAVM2Item extends AVM2Item { + /** + * Unparsed data + */ public String value; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Unparsed data + */ public UnparsedAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, String value) { super(instruction, lineStartIns, NOPRECEDENCE); this.value = value; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithAVM2Item.java index 2f0093dfc..8361aeaef 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithAVM2Item.java @@ -38,12 +38,29 @@ import java.util.Objects; */ public class WithAVM2Item extends AVM2Item { + /** + * Scope + */ public GraphTargetItem scope; + /** + * Items + */ public List items; + /** + * Subvariables + */ public List subvariables = new ArrayList<>(); + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + * @param items Items + */ public WithAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scope, List items) { super(instruction, lineStartIns, NOPRECEDENCE); this.scope = scope; @@ -56,6 +73,13 @@ public class WithAVM2Item extends AVM2Item { visitor.visitAll(items); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + */ public WithAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scope) { super(instruction, lineStartIns, NOPRECEDENCE); this.scope = scope; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithEndAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithEndAVM2Item.java index 4578bf128..5eabe6973 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithEndAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithEndAVM2Item.java @@ -31,8 +31,17 @@ import java.util.Objects; */ public class WithEndAVM2Item extends AVM2Item { + /** + * Scope. + */ public GraphTargetItem scope; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + */ public WithEndAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scope) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.scope = scope; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithObjectAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithObjectAVM2Item.java index e46fc737f..4878e5f32 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithObjectAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/WithObjectAVM2Item.java @@ -35,8 +35,18 @@ import java.util.Objects; */ public class WithObjectAVM2Item extends AVM2Item { + /** + * Scope + */ public GraphTargetItem scope; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + */ public WithObjectAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scope) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.scope = scope; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/XMLAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/XMLAVM2Item.java index 8691fb7d0..2ae34f353 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/XMLAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/XMLAVM2Item.java @@ -33,8 +33,17 @@ import java.util.Objects; */ public class XMLAVM2Item extends AVM2Item { + /** + * Parts of XML. + */ public List parts; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param parts Parts + */ public XMLAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, List parts) { super(instruction, lineStartIns, NOPRECEDENCE); this.parts = parts; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/DeclarationAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/DeclarationAVM2Item.java index d7de218c9..01ce94df7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/DeclarationAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/DeclarationAVM2Item.java @@ -40,14 +40,32 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class DeclarationAVM2Item extends AVM2Item { + /** + * Assignment + */ public GraphTargetItem assignment; + /** + * Type + */ public GraphTargetItem type; + /** + * Type is null + */ public boolean typeIsNull = false; + /** + * Show value + */ public boolean showValue = true; + /** + * Constructor. + * + * @param assignment Assignment + * @param type Type + */ public DeclarationAVM2Item(GraphTargetItem assignment, GraphTargetItem type) { super(assignment.getSrc(), assignment.getLineStartItem(), assignment.getPrecedence()); this.type = type; @@ -60,6 +78,11 @@ public class DeclarationAVM2Item extends AVM2Item { visitor.visit(assignment); } + /** + * Constructor. + * + * @param assignment Assignment + */ public DeclarationAVM2Item(GraphTargetItem assignment) { this(assignment, null); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ExceptionAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ExceptionAVM2Item.java index d8e220e85..8c4d26609 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ExceptionAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ExceptionAVM2Item.java @@ -30,8 +30,16 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class ExceptionAVM2Item extends AVM2Item { + /** + * Exception. + */ public ABCException exception; + /** + * Constructor. + * + * @param exception Exception + */ public ExceptionAVM2Item(ABCException exception) { super(null, null, NOPRECEDENCE); this.exception = exception; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/FilterAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/FilterAVM2Item.java index 3bb261b37..1bc11a33e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/FilterAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/FilterAVM2Item.java @@ -31,10 +31,24 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class FilterAVM2Item extends AVM2Item { + /** + * Expression + */ public GraphTargetItem expression; + /** + * Collection + */ public GraphTargetItem collection; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param collection Collection + * @param expression Expression + */ public FilterAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem collection, GraphTargetItem expression) { super(instruction, lineStartIns, NOPRECEDENCE); this.expression = expression; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForEachInAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForEachInAVM2Item.java index 4fa01b39a..23381458c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForEachInAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForEachInAVM2Item.java @@ -43,10 +43,19 @@ import java.util.List; */ public class ForEachInAVM2Item extends LoopItem implements Block { + /** + * Expression + */ public InAVM2Item expression; + /** + * Commands + */ public List commands; + /** + * Label used + */ private boolean labelUsed; @Override @@ -69,6 +78,15 @@ public class ForEachInAVM2Item extends LoopItem implements Block { visitor.visit(expression); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param loop Loop + * @param expression Expression + * @param commands Commands + */ public ForEachInAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop, InAVM2Item expression, List commands) { super(instruction, lineStartIns, loop); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java index 8fb02cd48..05691aa78 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/ForInAVM2Item.java @@ -43,10 +43,19 @@ import java.util.List; */ public class ForInAVM2Item extends LoopItem implements Block { + /** + * Expression + */ public InAVM2Item expression; + /** + * Commands + */ public List commands; + /** + * Label used + */ private boolean labelUsed; @Override @@ -69,6 +78,15 @@ public class ForInAVM2Item extends LoopItem implements Block { visitor.visit(expression); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param loop Loop + * @param expression Expression + * @param commands Commands + */ public ForInAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop, InAVM2Item expression, List commands) { super(instruction, lineStartIns, loop); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/TryAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/TryAVM2Item.java index 1bd3cb8b8..2337558c4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/TryAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/clauses/TryAVM2Item.java @@ -45,18 +45,39 @@ import java.util.List; */ public class TryAVM2Item extends AVM2Item implements Block { + /** + * Try commands + */ public List tryCommands; + /** + * Catch exceptions + */ public List catchExceptions; + /** + * Catch exceptions 2 + */ public List catchExceptions2; + /** + * Catch commands + */ public List> catchCommands; + /** + * Finally commands + */ public List finallyCommands; + /** + * Catch variables + */ public List> catchVariables = new ArrayList<>(); + /** + * Finally catch name + */ public String finCatchName = ""; @Override @@ -95,6 +116,15 @@ public class TryAVM2Item extends AVM2Item implements Block { } + /** + * Constructor. + * + * @param tryCommands Try commands + * @param catchExceptions Catch exceptions + * @param catchCommands Catch commands + * @param finallyCommands Finally commands + * @param finCatchName Finally catch name + */ public TryAVM2Item(List tryCommands, List catchExceptions, List> catchCommands, List finallyCommands, String finCatchName) { super(null, null, NOPRECEDENCE); this.tryCommands = tryCommands; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AddAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AddAVM2Item.java index 239e30c17..706618bd5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AddAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AddAVM2Item.java @@ -40,6 +40,13 @@ import java.util.List; */ public class AddAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public AddAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE, leftSide, rightSide, "+", "", ""); //? } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AsTypeAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AsTypeAVM2Item.java index 5ed9b8b4f..b262f8b84 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AsTypeAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/AsTypeAVM2Item.java @@ -34,6 +34,13 @@ import java.util.List; */ public class AsTypeAVM2Item extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param type Type + */ public AsTypeAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, value, type, "as", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitAndAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitAndAVM2Item.java index 2d2e6f664..8aee45867 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitAndAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitAndAVM2Item.java @@ -34,6 +34,13 @@ import java.util.List; */ public class BitAndAVM2Item extends BitwiseBinaryOpAVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public BitAndAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISEAND, leftSide, rightSide, "&", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitNotAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitNotAVM2Item.java index 133fa3745..f15cd2712 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitNotAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitNotAVM2Item.java @@ -37,6 +37,12 @@ import java.util.List; */ public class BitNotAVM2Item extends UnaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public BitNotAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_UNARY, value, "~", "int"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitOrAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitOrAVM2Item.java index 42341446d..e0d985874 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitOrAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitOrAVM2Item.java @@ -34,6 +34,13 @@ import java.util.List; */ public class BitOrAVM2Item extends BitwiseBinaryOpAVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public BitOrAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISEOR, leftSide, rightSide, "|", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitXorAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitXorAVM2Item.java index 172210f5f..b4b5828d7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitXorAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitXorAVM2Item.java @@ -34,6 +34,13 @@ import java.util.List; */ public class BitXorAVM2Item extends BitwiseBinaryOpAVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public BitXorAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISEXOR, leftSide, rightSide, "^", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitwiseBinaryOpAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitwiseBinaryOpAVM2Item.java index 763ea1fbd..a38042250 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitwiseBinaryOpAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/BitwiseBinaryOpAVM2Item.java @@ -31,6 +31,17 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public abstract class BitwiseBinaryOpAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartItem Line start item + * @param precedence Precedence + * @param leftSide Left side + * @param rightSide Right side + * @param operator Operator + * @param coerceLeft Coerce left + * @param coerceRight Coerce right + */ public BitwiseBinaryOpAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartItem, int precedence, GraphTargetItem leftSide, GraphTargetItem rightSide, String operator, String coerceLeft, String coerceRight) { super(instruction, lineStartItem, precedence, leftSide, rightSide, operator, coerceLeft, coerceRight); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DeletePropertyAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DeletePropertyAVM2Item.java index 9ec32ea72..dfba2e330 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DeletePropertyAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DeletePropertyAVM2Item.java @@ -43,15 +43,32 @@ import java.util.Objects; */ public class DeletePropertyAVM2Item extends AVM2Item { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public GraphTargetItem propertyName; + /** + * Line + */ private int line; + /** + * Is static + */ public boolean isStatic; - //Constructor for compiler + /** + * Constructor. + * For compiler. + * @param property Property + * @param line Line + */ public DeletePropertyAVM2Item(GraphTargetItem property, int line) { this(null, null, property, null, false); this.line = line; @@ -63,6 +80,14 @@ public class DeletePropertyAVM2Item extends AVM2Item { visitor.visit(propertyName); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param propertyName Property name + * @param isStatic Is static + */ public DeletePropertyAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem propertyName, boolean isStatic) { super(instruction, lineStartIns, PRECEDENCE_UNARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DivideAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DivideAVM2Item.java index e278319fd..bc49be69b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DivideAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/DivideAVM2Item.java @@ -38,6 +38,14 @@ import java.util.List; */ public class DivideAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public DivideAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_MULTIPLICATIVE, leftSide, rightSide, "/", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/EqAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/EqAVM2Item.java index 117ed0695..2f242046a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/EqAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/EqAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class EqAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition, EqualsTypeItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public EqAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "==", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GeAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GeAVM2Item.java index e38ed2fa7..25814800f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GeAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GeAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class GeAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public GeAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, ">=", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GtAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GtAVM2Item.java index 536572792..87c7f2933 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GtAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/GtAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class GtAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public GtAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, ">", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InAVM2Item.java index 0fbd10243..6ea80a422 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InAVM2Item.java @@ -35,6 +35,13 @@ import java.util.List; */ public class InAVM2Item extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param name Name + * @param object Object + */ public InAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem name, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, name, object, "in", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InstanceOfAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InstanceOfAVM2Item.java index 858bd08fa..2dae1aa45 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InstanceOfAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/InstanceOfAVM2Item.java @@ -35,6 +35,13 @@ import java.util.List; */ public class InstanceOfAVM2Item extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param type Type + */ public InstanceOfAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, value, type, "instanceof", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/IsTypeAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/IsTypeAVM2Item.java index 04d6f893d..25c4b8829 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/IsTypeAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/IsTypeAVM2Item.java @@ -35,6 +35,13 @@ import java.util.List; */ public class IsTypeAVM2Item extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param type Type + */ public IsTypeAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, value, type, "is", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LShiftAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LShiftAVM2Item.java index 1e6e65e1a..f8bce16a2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LShiftAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LShiftAVM2Item.java @@ -36,6 +36,13 @@ import java.util.List; */ public class LShiftAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public LShiftAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISESHIFT, leftSide, rightSide, "<<", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LeAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LeAVM2Item.java index 17eed7c8b..2ce5980b3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LeAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LeAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class LeAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public LeAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "<=", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LtAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LtAVM2Item.java index 352fcbfc4..6b9bef9ff 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LtAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/LtAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class LtAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public LtAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "<", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java index fa24fdab2..c7838636c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/ModuloAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class ModuloAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public ModuloAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_MULTIPLICATIVE, leftSide, rightSide, "%", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/MultiplyAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/MultiplyAVM2Item.java index 241f88843..d1aaa6fae 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/MultiplyAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/MultiplyAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class MultiplyAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public MultiplyAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_MULTIPLICATIVE, leftSide, rightSide, "*", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NegAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NegAVM2Item.java index 85fd8d5a2..085ccdd4a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NegAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NegAVM2Item.java @@ -34,6 +34,12 @@ import java.util.List; */ public class NegAVM2Item extends UnaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public NegAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_UNARY, value, "-", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NeqAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NeqAVM2Item.java index bb9ed23eb..d489d3aca 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NeqAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/NeqAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class NeqAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition, NotEqualsTypeItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public NeqAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "!=", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreDecrementAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreDecrementAVM2Item.java index ecace4e48..4d0b3883c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreDecrementAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreDecrementAVM2Item.java @@ -34,6 +34,12 @@ import java.util.List; */ public class PreDecrementAVM2Item extends UnaryOpItem implements AssignmentAVM2Item { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PreDecrementAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_UNARY, object, "--", "" /*"Number" Causes unneccessary ++Number(xx) when xx not number*/); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreIncrementAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreIncrementAVM2Item.java index 17e1d4d51..a7c62e0ee 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreIncrementAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/PreIncrementAVM2Item.java @@ -33,6 +33,12 @@ import java.util.List; */ public class PreIncrementAVM2Item extends UnaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PreIncrementAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_UNARY, object, "++", "" /*"Number" Causes unneccessary ++Number(xx) when xx not number*/); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/RShiftAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/RShiftAVM2Item.java index 65962d73c..e7074dafb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/RShiftAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/RShiftAVM2Item.java @@ -36,6 +36,13 @@ import java.util.List; */ public class RShiftAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public RShiftAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISESHIFT, leftSide, rightSide, ">>", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictEqAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictEqAVM2Item.java index 3303dfb67..3129ea5f3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictEqAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictEqAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class StrictEqAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition, EqualsTypeItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StrictEqAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "===", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictNeqAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictNeqAVM2Item.java index ba1e106ee..59f986581 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictNeqAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/StrictNeqAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class StrictNeqAVM2Item extends BinaryOpItem implements LogicalOpItem, IfCondition, NotEqualsTypeItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StrictNeqAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "!==", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/SubtractAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/SubtractAVM2Item.java index 16f3eb757..54d2a2276 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/SubtractAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/SubtractAVM2Item.java @@ -38,6 +38,13 @@ import java.util.List; */ public class SubtractAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public SubtractAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE, leftSide, rightSide, "-", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/TypeOfAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/TypeOfAVM2Item.java index b8440eada..b4c412ccb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/TypeOfAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/TypeOfAVM2Item.java @@ -38,6 +38,12 @@ import java.util.Set; */ public class TypeOfAVM2Item extends UnaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public TypeOfAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_UNARY, value, "typeof ", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/URShiftAVM2Item.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/URShiftAVM2Item.java index 6b31bb9c6..10306e28c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/URShiftAVM2Item.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/model/operations/URShiftAVM2Item.java @@ -36,6 +36,13 @@ import java.util.List; */ public class URShiftAVM2Item extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public URShiftAVM2Item(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISESHIFT, leftSide, rightSide, ">>>", "Number", "Number"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/AVM2ParseException.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/AVM2ParseException.java index eeaa639dd..a27fe5e9a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/AVM2ParseException.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/AVM2ParseException.java @@ -25,6 +25,12 @@ import com.jpexs.decompiler.flash.ParseException; */ public class AVM2ParseException extends ParseException { + /** + * Constructor. + * + * @param text Text + * @param line Line + */ public AVM2ParseException(String text, long line) { super(text, line); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/pcode/MissingSymbolHandler.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/pcode/MissingSymbolHandler.java index 6a50a4994..d3e5e164a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/pcode/MissingSymbolHandler.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/pcode/MissingSymbolHandler.java @@ -20,6 +20,7 @@ import com.jpexs.decompiler.flash.abc.types.Decimal; import com.jpexs.decompiler.flash.abc.types.Float4; /** + * Missing symbol handler. * @author JPEXS */ public interface MissingSymbolHandler { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AbcIndexing.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AbcIndexing.java index acc183e97..8b10144c8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AbcIndexing.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/AbcIndexing.java @@ -122,6 +122,10 @@ public final class AbcIndexing { private ABC abc = null; + /** + * To string + * @return String + */ @Override public String toString() { return parent.toString() + ":" + propName + (propNsIndex > 0 ? "[ns:" + propNsIndex + "]" : "") + (propNsString != null ? "[ns: " + propNsString + "]" : ""); @@ -137,10 +141,18 @@ public final class AbcIndexing { this.propNsString = abc.constants.getNamespace(propNsIndex).getRawName(abc.constants); } + /** + * Gets property name + * @return Property name + */ public String getPropertyName() { return propName; } + /** + * Gets property namespace string + * @return Property namespace string + */ public String getPropNsString() { return propNsString; } @@ -185,6 +197,12 @@ public final class AbcIndexing { } } + /** + * Creates key to property. + * @param propName Property name + * @param parent Parent type + * @param propNsString Namespace string + */ public PropertyDef(String propName, GraphTargetItem parent, String propNsString) { this.propName = propName; this.parent = parent; @@ -192,6 +210,10 @@ public final class AbcIndexing { this.propNsString = propNsString; } + /** + * Hash code + * @return Hash code + */ @Override public int hashCode() { int hash = 3; @@ -202,6 +224,11 @@ public final class AbcIndexing { return hash; } + /** + * Equals + * @param obj Object + * @return True if equals + */ @Override public boolean equals(Object obj) { if (this == obj) { @@ -246,15 +273,30 @@ public final class AbcIndexing { this.abc = abc; } + /** + * Gets property name + * @return Property name + */ public String getPropertyName() { return propName; } + /** + * To string + * @return String + */ @Override public String toString() { return ns.toString() + ":" + propName + (propNsIndex > 0 ? "[ns:" + propNsIndex + "]" : ""); } + /** + * Constructs namespaced property key + * @param propName Property name + * @param ns Namespace + * @param abc ABC + * @param nsIndex Namespace index + */ public PropertyNsDef(String propName, DottedChain ns, ABC abc, int nsIndex) { this.propName = propName; this.ns = ns; @@ -267,6 +309,10 @@ public final class AbcIndexing { } } + /** + * Hash code + * @return Hash code + */ @Override public int hashCode() { int hash = 7; @@ -277,6 +323,11 @@ public final class AbcIndexing { return hash; } + /** + * Equals + * @param obj Object + * @return True if equals + */ @Override public boolean equals(Object obj) { if (obj == null) { @@ -299,20 +350,50 @@ public final class AbcIndexing { } } + /** + * Trait index + */ public static class TraitIndex { + /** + * Trait + */ public Trait trait; + /** + * ABC + */ public ABC abc; + /** + * Return type + */ public GraphTargetItem returnType; + /** + * Call return type + */ public GraphTargetItem callReturnType; + /** + * Value kind + */ public ValueKind value; + /** + * Object type + */ public GraphTargetItem objType; + /** + * Constructs trait index + * @param trait Trait + * @param abc ABC + * @param type Type + * @param callType Call type + * @param value Value + * @param objType Object type + */ public TraitIndex(Trait trait, ABC abc, GraphTargetItem type, GraphTargetItem callType, ValueKind value, GraphTargetItem objType) { this.trait = trait; this.abc = abc; @@ -323,9 +404,19 @@ public final class AbcIndexing { } } + /** + * Class definition + */ private static class ClassDef { + /** + * Class type + */ public GraphTargetItem type; + + /** + * Package + */ public DottedChain pkg; private GraphTargetItem noNsType(GraphTargetItem type) { @@ -335,6 +426,12 @@ public final class AbcIndexing { return ti; } + /** + * Constructs class definition + * @param type Type + * @param abc ABC + * @param scriptIndex Script index + */ public ClassDef(GraphTargetItem type, ABC abc, Integer scriptIndex) { this.type = type; if (scriptIndex != null) { @@ -376,21 +473,47 @@ public final class AbcIndexing { } + /** + * Class index + */ public static class ClassIndex { + /** + * Index of class in ABC + */ public int index; + /** + * ABC + */ public ABC abc; + /** + * Parent class index + */ public ClassIndex parent; + /** + * Script index + */ public Integer scriptIndex; + /** + * To string + * @return String + */ @Override public String toString() { return abc.constants.getMultiname(abc.instance_info.get(index).name_index).getNameWithNamespace(abc.constants, true).toPrintableString(true); } + /** + * Constructs class index + * @param index Index + * @param abc ABC + * @param parent Parent + * @param scriptIndex Script index + */ public ClassIndex(int index, ABC abc, ClassIndex parent, Integer scriptIndex) { this.index = index; this.abc = abc; @@ -447,6 +570,9 @@ public final class AbcIndexing { private final Map scriptProperties = new HashMap<>(); + /** + * Rebuids package to objects name map. + */ public void rebuildPkgToObjectsNameMap() { pkgToObjectsName.clear(); for (ClassDef cd : classes.keySet()) { @@ -466,6 +592,11 @@ public final class AbcIndexing { } } + /** + * Gets package objects. + * @param pkg Package + * @return Set of class names + */ public Set getPackageObjects(DottedChain pkg) { Set classNames = new LinkedHashSet<>(); if (pkgToObjectsName.containsKey(pkg)) { @@ -477,6 +608,13 @@ public final class AbcIndexing { return classNames; } + /** + * Finds class in index. + * @param cls Class to find + * @param abc ABC + * @param scriptIndex Script index + * @return Class index or null + */ public ClassIndex findClass(GraphTargetItem cls, ABC abc, Integer scriptIndex) { ClassDef keyWithScriptIndex = new ClassDef(cls, abc, scriptIndex); if (classes.containsKey(keyWithScriptIndex)) { @@ -494,6 +632,18 @@ public final class AbcIndexing { return parent.findClass(cls, abc, scriptIndex); } + /** + * Finds property type or call type. + * @param abc ABC + * @param cls Class + * @param propName Property name + * @param ns Namespace + * @param findStatic Find static properties + * @param findInstance Find instance properties + * @param findProtected Find protected namespace properties + * @param type Property type + * @param callType Call type + */ public void findPropertyTypeOrCallType(ABC abc, GraphTargetItem cls, String propName, int ns, boolean findStatic, boolean findInstance, boolean findProtected, Reference type, Reference callType) { TraitIndex traitIndex = findProperty(new PropertyDef(propName, cls, abc, ns), findStatic, findInstance, findProtected); if (traitIndex == null) { @@ -505,6 +655,17 @@ public final class AbcIndexing { } } + /** + * Finds property type. + * @param abc ABC + * @param cls Class + * @param propName Property name + * @param ns Namespace + * @param findStatic Find static properties + * @param findInstance Find instance properties + * @param findProtected Find protected namespace properties + * @return Trait index or null + */ public GraphTargetItem findPropertyType(ABC abc, GraphTargetItem cls, String propName, int ns, boolean findStatic, boolean findInstance, boolean findProtected) { TraitIndex traitIndex = findProperty(new PropertyDef(propName, cls, abc, ns), findStatic, findInstance, findProtected); if (traitIndex == null) { @@ -513,6 +674,17 @@ public final class AbcIndexing { return traitIndex.returnType; } + /** + * Finds property call type. + * @param abc ABC + * @param cls Class + * @param propName Property name + * @param ns Namespace + * @param findStatic Find static properties + * @param findInstance Find instance properties + * @param findProtected Find protected namespace properties + * @return Trait index or null + */ public GraphTargetItem findPropertyCallType(ABC abc, GraphTargetItem cls, String propName, int ns, boolean findStatic, boolean findInstance, boolean findProtected) { TraitIndex traitIndex = findProperty(new PropertyDef(propName, cls, abc, ns), findStatic, findInstance, findProtected); if (traitIndex == null) { @@ -521,10 +693,21 @@ public final class AbcIndexing { return traitIndex.callReturnType; } + /** + * Finds script property + * @param ns Namespace + * @return Trait index or null + */ public TraitIndex findScriptProperty(DottedChain ns) { return findScriptProperty(ns.getLast(), ns.getWithoutLast()); } + /** + * Finds script property + * @param propName Property name + * @param ns Namespace + * @return Trait index or null + */ public TraitIndex findScriptProperty(String propName, DottedChain ns) { PropertyNsDef nsd = new PropertyNsDef(propName, ns, null, 0); if (!scriptProperties.containsKey(nsd)) { @@ -536,6 +719,13 @@ public final class AbcIndexing { return scriptProperties.get(nsd); } + /** + * Finds property with namespace. + * @param prop Property to find + * @param findStatic Find static properties + * @param findInstance Find instance properties + * @return Trait index or null + */ public TraitIndex findNsProperty(PropertyNsDef prop, boolean findStatic, boolean findInstance) { if (findStatic && classNsProperties.containsKey(prop)) { @@ -565,6 +755,14 @@ public final class AbcIndexing { return null; } + /** + * Finds property in index + * @param prop Property to find + * @param findStatic Find static properties + * @param findInstance Find instance properties + * @param findProtected Find protected namespace properties + * @return Trait index or null + */ public TraitIndex findProperty(PropertyDef prop, boolean findStatic, boolean findInstance, boolean findProtected) { /*System.out.println("searching " + prop); for (PropertyDef p : instanceProperties.keySet()) { @@ -633,6 +831,12 @@ public final class AbcIndexing { return null; } + /** + * Converts multiname to type + * @param m_index Multiname index + * @param constants AVM2 constant pool + * @return Type + */ public static GraphTargetItem multinameToType(int m_index, AVM2ConstantPool constants) { if (m_index == 0) { return TypeItem.UNBOUNDED; @@ -718,6 +922,14 @@ public final class AbcIndexing { return TypeItem.UNBOUNDED; } + /** + * Indexes traits + * @param abc ABC + * @param name_index Name index + * @param ts Traits + * @param map Map to index + * @param mapNs Map to index + */ protected void indexTraits(ABC abc, int name_index, Traits ts, Map map, Map mapNs) { for (Trait t : ts.traits) { ValueKind propValue = null; @@ -741,10 +953,17 @@ public final class AbcIndexing { } } + /** + * Refreshes selected ABC + */ public void refreshSelected() { refreshAbc(getSelectedAbc()); } + /** + * Refreshes ABC in index + * @param abc ABC to refresh + */ public void refreshAbc(ABC abc) { if (abc == null) { return; @@ -754,6 +973,10 @@ public final class AbcIndexing { rebuildPkgToObjectsNameMap(); } + /** + * Removes ABC from index + * @param abc ABC to remove + */ public void removeAbc(ABC abc) { abcs.remove(abc); Set gti_keys = new HashSet<>(classes.keySet()); @@ -800,6 +1023,11 @@ public final class AbcIndexing { } + /** + * Adds ABC to index + * + * @param abc ABC to add + */ public void addAbc(ABC abc) { if (abc == null) { return; @@ -846,6 +1074,11 @@ public final class AbcIndexing { selectedAbc = abc; } + /** + * Selects ABC for indexing + * + * @param abc ABC to select + */ public void selectAbc(ABC abc) { if (abcs.contains(abc)) { selectedAbc = abc; @@ -855,10 +1088,20 @@ public final class AbcIndexing { } } + /** + * Gets selected ABC + * + * @return Selected ABC + */ public ABC getSelectedAbc() { return selectedAbc; } + /** + * Converts namespace value to name + * @param valueStr Namespace value + * @return Namespace name + */ public DottedChain nsValueToName(String valueStr) { for (ABC abc : abcs) { DottedChain ret = abc.nsValueToName(valueStr); @@ -872,6 +1115,13 @@ public final class AbcIndexing { return null; } + /** + * Checks if class is instance of another class + * @param abc ABC + * @param classIndex Class index + * @param searchClassName Class name to search + * @return True if class is instance of another class + */ public boolean isInstanceOf(ABC abc, int classIndex, DottedChain searchClassName) { DottedChain clsName = abc.instance_info.get(classIndex).getName(abc.constants).getNameWithNamespace(abc.constants, false); if (searchClassName.equals(clsName)) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java index f6300a2ef..e1f0de345 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/parser/script/ActionScript3Parser.java @@ -2615,6 +2615,18 @@ public class ActionScript3Parser { return items; } + /** + * Converts string to script traits. + * @param allOpenedNamespaces All opened namespaces + * @param str String to parse + * @param fileName File name + * @param scriptIndex Script index + * @return List of script traits + * @throws AVM2ParseException On parsing error + * @throws IOException On I/O error + * @throws CompilationException On compilation error + * @throws InterruptedException On interrupt + */ public List scriptTraitsFromString(List> allOpenedNamespaces, String str, String fileName, int scriptIndex) throws AVM2ParseException, IOException, CompilationException, InterruptedException { lexer = new ActionScriptLexer(str); @@ -2625,6 +2637,15 @@ public class ActionScript3Parser { return ret; } + /** + * Adds script from tree. + * @param allOpenedNamespaces All opened namespaces + * @param items Items + * @param classPos Class position + * @param documentClass Document class + * @throws AVM2ParseException On parsing error + * @throws CompilationException On compilation error + */ public void addScriptFromTree(List> allOpenedNamespaces, List items, int classPos, String documentClass) throws AVM2ParseException, CompilationException { AVM2SourceGenerator gen = new AVM2SourceGenerator(abcIndex); SourceGeneratorLocalData localData = new SourceGeneratorLocalData( @@ -2643,18 +2664,51 @@ public class ActionScript3Parser { abcIndex.getSelectedAbc().fireChanged(); } + /** + * Adds script. + * @param s Source code + * @param fileName File name + * @param classPos Class position + * @param scriptIndex Script index + * @param documentClass Document class + * @throws AVM2ParseException On parsing error + * @throws IOException On I/O error + * @throws CompilationException On compilation error + * @throws InterruptedException On interrupt + */ public void addScript(String s, String fileName, int classPos, int scriptIndex, String documentClass) throws AVM2ParseException, IOException, CompilationException, InterruptedException { List> allOpenedNamespaces = new ArrayList<>(); List traits = scriptTraitsFromString(allOpenedNamespaces, s, fileName, scriptIndex); addScriptFromTree(allOpenedNamespaces, traits, classPos, documentClass); } + /** + * Constructor. + * @param abcIndex ABC index + * @throws IOException On I/O error + * @throws InterruptedException On interrupt + */ public ActionScript3Parser(AbcIndexing abcIndex) throws IOException, InterruptedException { SWF.initPlayer(); this.abcIndex = abcIndex; } + /** + * Compiles AS3 source code. + * @param src Source code + * @param abc ABC + * @param abcIndex ABC index + * @param fileName File name + * @param classPos Class position + * @param scriptIndex Script index + * @param air AIR + * @param documentClass Document class + * @throws AVM2ParseException On parsing error + * @throws IOException On I/O error + * @throws InterruptedException On interrupt + * @throws CompilationException On compilation error + */ public static void compile(String src, ABC abc, AbcIndexing abcIndex, String fileName, int classPos, int scriptIndex, boolean air, String documentClass) throws AVM2ParseException, IOException, InterruptedException, CompilationException { //List parABCs = new ArrayList<>(); SWF.initPlayer(); @@ -2679,7 +2733,15 @@ public class ActionScript3Parser { } } - public static void compile(SWF swf, String src, String dst, int classPos, int scriptIndex) { + /** + * Compiles AS3 source code. + * @param swf SWF + * @param srcFile Source file + * @param destFile Target file + * @param classPos Class position + * @param scriptIndex Script index + */ + public static void compile(SWF swf, String srcFile, String destFile, int classPos, int scriptIndex) { System.err.println("WARNING: AS3 compiler is not finished yet. This is only used for debuggging!"); try { SWF.initPlayer(); @@ -2687,8 +2749,8 @@ public class ActionScript3Parser { AbcIndexing abcIndex = swf.getAbcIndex(); abcIndex.selectAbc(abc); ActionScript3Parser parser = new ActionScript3Parser(abcIndex); - parser.addScript(new String(Helper.readFile(src), Utf8Helper.charset), src, classPos, scriptIndex, swf.getDocumentClass()); - try (OutputStream fos = new BufferedOutputStream(new FileOutputStream(new File(dst)))) { + parser.addScript(new String(Helper.readFile(srcFile), Utf8Helper.charset), srcFile, classPos, scriptIndex, swf.getDocumentClass()); + try (OutputStream fos = new BufferedOutputStream(new FileOutputStream(new File(destFile)))) { abc.saveToStream(fos); } } catch (Exception ex) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/ABCException.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/ABCException.java index b8b8a2d24..ddea6bfac 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/ABCException.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/ABCException.java @@ -31,27 +31,68 @@ import java.util.List; */ public class ABCException implements Serializable, Cloneable { + /** + * Start offset + */ public int start; + /** + * End offset + */ public int end; + /** + * Target offset + */ public int target; + /** + * Type index - index to multiname constant pool + */ public int type_index; + /** + * Name index - index to multiname constant pool + */ public int name_index; + /** + * Default exception name + */ public static final String DEFAULT_EXCEPTION_NAME = "_loc_e_"; + /** + * Constructs ABCException + */ + public ABCException() { + } + + /** + * To string. + * @return String + */ @Override public String toString() { return "Exception: startServer=" + Helper.formatAddress(start) + " end=" + Helper.formatAddress(end) + " target=" + target + " type_index=" + type_index + " name_index=" + name_index; } + /** + * To string. + * @param constants AVM2 constant pool + * @param fullyQualifiedNames Fully qualified names + * @return String + */ public String toString(AVM2ConstantPool constants, List fullyQualifiedNames) { return "Exception: startServer=" + Helper.formatAddress(start) + " end=" + Helper.formatAddress(end) + " target=" + target + " type=\"" + getTypeName(constants, fullyQualifiedNames) + "\" name=\"" + getVarName(constants, fullyQualifiedNames) + "\""; } + /** + * To string. + * @param constants AVM2 constant pool + * @param code AVM2 code + * @param fullyQualifiedNames Fully qualified names + * @return String + */ public String toString(AVM2ConstantPool constants, AVM2Code code, List fullyQualifiedNames) { try { return "Exception: startServer=" + code.adr2pos(start) + ":" + code.code.get(code.adr2pos(start)).toStringNoAddress(constants, fullyQualifiedNames) + " end=" + code.adr2pos(end) + ":" + code.code.get(code.adr2pos(end)).toStringNoAddress(constants, fullyQualifiedNames) + " target=" + code.adr2pos(target) + ":" + code.code.get(code.adr2pos(target)).toStringNoAddress(constants, fullyQualifiedNames) + " type=\"" + getTypeName(constants, fullyQualifiedNames) + "\" name=\"" + getVarName(constants, fullyQualifiedNames) + "\""; @@ -60,10 +101,20 @@ public class ABCException implements Serializable, Cloneable { } } + /** + * Checks if exception is finally. + * @return True if exception is finally + */ public boolean isFinally() { return (name_index == 0) && (type_index == 0); } + /** + * Gets variable name. + * @param constants AVM2 constant pool + * @param fullyQualifiedNames Fully qualified names + * @return Variable name + */ public String getVarName(AVM2ConstantPool constants, List fullyQualifiedNames) { if (name_index == 0) { return DEFAULT_EXCEPTION_NAME; @@ -71,6 +122,12 @@ public class ABCException implements Serializable, Cloneable { return constants.getMultiname(name_index).getName(constants, fullyQualifiedNames, false, true); } + /** + * Gets type name. + * @param constants AVM2 constant pool + * @param fullyQualifiedNames Fully qualified names + * @return Type name + */ public String getTypeName(AVM2ConstantPool constants, List fullyQualifiedNames) { if (type_index == 0) { return "*"; @@ -78,6 +135,10 @@ public class ABCException implements Serializable, Cloneable { return constants.getMultiname(type_index).getName(constants, fullyQualifiedNames, false, true); } + /** + * Clones exception. + * @return Cloned exception + */ @Override public ABCException clone() { try { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/InstanceInfo.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/InstanceInfo.java index b47fb7a19..d88bec1dd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/InstanceInfo.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/InstanceInfo.java @@ -61,7 +61,8 @@ public class InstanceInfo { public int flags; /** - * Protected namespace. if flags & 8 + * Protected namespace. + * If flag CLASS_PROTECTEDNS set. */ public int protectedNS; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitClass.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitClass.java index a4de657cc..5617b8155 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitClass.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitClass.java @@ -161,7 +161,6 @@ public class TraitClass extends Trait implements TraitWithSlot { * @param parallel Parallel * @param insideInterface Inside interface * @return Writer - * @throws InterruptedException */ @Override public GraphTextWriter toStringHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List fullyQualifiedNames, boolean parallel, boolean insideInterface) { @@ -183,7 +182,6 @@ public class TraitClass extends Trait implements TraitWithSlot { * @param writer Writer * @param fullyQualifiedNames Fully qualified names * @param parallel Parallel - * @throws InterruptedException */ @Override public void convertHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List fullyQualifiedNames, boolean parallel) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitFunction.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitFunction.java index 5e8b57a19..5983e3634 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitFunction.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitFunction.java @@ -91,7 +91,6 @@ public class TraitFunction extends Trait implements TraitWithSlot { * @param parallel Parallel * @param insideInterface Inside interface * @return Writer - * @throws InterruptedException */ @Override public GraphTextWriter toStringHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List fullyQualifiedNames, boolean parallel, boolean insideInterface) { @@ -123,7 +122,6 @@ public class TraitFunction extends Trait implements TraitWithSlot { * @param writer Writer * @param fullyQualifiedNames Fully qualified names * @param parallel Parallel - * @throws InterruptedException */ @Override public void convertHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List fullyQualifiedNames, boolean parallel) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitMethodGetterSetter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitMethodGetterSetter.java index 1295edff6..be4d06bb6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitMethodGetterSetter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitMethodGetterSetter.java @@ -83,7 +83,6 @@ public class TraitMethodGetterSetter extends Trait { * @param writer Writer * @param fullyQualifiedNames Fully qualified names * @param parallel Parallel - * @throws InterruptedException */ @Override public void convertHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, NulWriter writer, List fullyQualifiedNames, boolean parallel) { @@ -137,7 +136,6 @@ public class TraitMethodGetterSetter extends Trait { * @param parallel Parallel * @param insideInterface Inside interface * @return Writer - * @throws InterruptedException */ @Override public GraphTextWriter toStringHeader(Trait parent, ConvertData convertData, String path, ABC abc, boolean isStatic, ScriptExportMode exportMode, int scriptIndex, int classIndex, GraphTextWriter writer, List fullyQualifiedNames, boolean parallel, boolean insideInterface) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java index df9f4760a..10edd6388 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/types/traits/TraitSlotConst.java @@ -335,7 +335,6 @@ public class TraitSlotConst extends Trait implements TraitWithSlot { * @param abc ABC * @param path Path * @return Number of removed traps - * @throws InterruptedException */ @Override public int removeTraps(int scriptIndex, int classIndex, boolean isStatic, ABC abc, String path) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCCleaner.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCCleaner.java index 9f0cc6420..cdc8ee10a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCCleaner.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCCleaner.java @@ -52,6 +52,12 @@ import java.util.Map; */ public class ABCCleaner { + /** + * Constructs ABCCleaner. + */ + public ABCCleaner() { + } + /** * Cleans unused items from ABC file. * diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCSimpleUsageDetector.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCSimpleUsageDetector.java index 31c9c7827..6d4e6a8c4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCSimpleUsageDetector.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCSimpleUsageDetector.java @@ -50,24 +50,68 @@ public class ABCSimpleUsageDetector { * Item kind */ public static enum ItemKind { + /** + * Integer + */ INT(true), + /** + * Unsigned integer + */ UINT(true), + /** + * Double + */ DOUBLE(true), + /** + * String + */ STRING(true), + /** + * Namespace + */ NAMESPACE(true), + /** + * Namespace set + */ NAMESPACESET(true), + /** + * Multiname + */ MULTINAME(true), + /** + * Metadata info + */ METADATAINFO(false), + /** + * Method info + */ METHODINFO(false), + /** + * Method body + */ METHODBODY(false), + /** + * Class + */ CLASS(false); + /** + * True if has reserved zero index. + */ private boolean reserveZeroIndex; + /** + * Constructs a new item kind. + * @param reserveZeroIndex True if has reserved zero index + */ private ItemKind(boolean reserveZeroIndex) { this.reserveZeroIndex = reserveZeroIndex; } + /** + * Checks if has reserved zero index. + * @return True if has reserved zero index + */ public boolean hasReservedZeroIndex() { return reserveZeroIndex; } @@ -78,10 +122,19 @@ public class ABCSimpleUsageDetector { private final ABC abc; + /** + * Constructs a new ABC simple usage detector. + * @param abc ABC + */ public ABCSimpleUsageDetector(ABC abc) { this.abc = abc; } + /** + * Initializes usages. + * @param kind Item kind + * @param itemCount Item count + */ private void initUsages(ItemKind kind, int itemCount) { List> list = new ArrayList<>(); if (kind.hasReservedZeroIndex() && itemCount == 0) { @@ -93,6 +146,9 @@ public class ABCSimpleUsageDetector { usages.put(kind, list); } + /** + * Detects usages. + */ public void detect() { usages.clear(); @@ -443,9 +499,10 @@ public class ABCSimpleUsageDetector { } /** - * @param kind - * @param index - * @param usageDescription + * Handles usage. + * @param kind Item kind + * @param index Index + * @param usageDescription Usage description * @return True if it is new */ private boolean handleUsage(ItemKind kind, int index, String usageDescription) { @@ -456,26 +513,54 @@ public class ABCSimpleUsageDetector { return kindList.size() == 1; } + /** + * Gets usages. + * @return Usages + */ public Map>> getUsages() { return Collections.unmodifiableMap(usages); } + /** + * Gets usages of kind and index. + * @param kind Item kind + * @param index Index + * @return Usages + */ public List getUsages(ItemKind kind, int index) { return Collections.unmodifiableList(usages.get(kind).get(index)); } + /** + * Gets usages of kind. + * @param kind Item kind + * @return Usages + */ public List> getUsages(ItemKind kind) { return Collections.unmodifiableList(usages.get(kind)); } + /** + * Gets zero usages. + * @return Zero usages + */ public Map> getZeroUsages() { return Collections.unmodifiableMap(zeroUsages); } + /** + * Gets zero usages of kind. + * @param kind Item kind + * @return Zero usages + */ public List getZeroUsages(ItemKind kind) { return zeroUsages.get(kind); } + /** + * Gets zero usages count. + * @return Zero usages count + */ public int getZeroUsagesCount() { int cnt = 0; for (ItemKind kind : zeroUsages.keySet()) { @@ -484,6 +569,11 @@ public class ABCSimpleUsageDetector { return cnt; } + /** + * Gets zero usages count of kind. + * @param kind Item kind + * @return Zero usages count + */ public int getZeroUsagesCount(ItemKind kind) { return zeroUsages.get(kind).size(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCWalker.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCWalker.java index dbaf9834d..e3eddde10 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCWalker.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/usages/simple/ABCWalker.java @@ -38,13 +38,38 @@ import java.util.Stack; */ public abstract class ABCWalker { + /** + * Walk type + */ public static enum WalkType { + /** + * Orphan + */ Orphan, + /** + * Script + */ Script, + /** + * Class + */ Class, + /** + * Instance + */ Instance } + /** + * Constructor + */ + public ABCWalker() { + } + /** + * Walks ABC + * @param abc ABC + * @param walkOrphanItems Walk orphan items + */ public final void walkABC(ABC abc, boolean walkOrphanItems) { Set handledClasses = new HashSet<>(); Set handledMethodInfos = new HashSet<>(); @@ -72,6 +97,19 @@ public abstract class ABCWalker { } } + /** + * Optional handle class + * @param handledClasses Handled classes + * @param handledMethodBodies Handled method bodies + * @param handledMethodInfos Handled method infos + * @param abc ABC + * @param index Index + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param traitIndex Trait index + * @param walkType Walk type + * @return + */ private boolean optionalHandleClass(Set handledClasses, Set handledMethodBodies, Set handledMethodInfos, ABC abc, int index, int scriptIndex, int scriptTraitIndex, int traitIndex, WalkType walkType) { if (handledClasses.contains(index)) { return false; @@ -86,6 +124,20 @@ public abstract class ABCWalker { return true; } + /** + * Optional handle method info. + * @param handledMethodBodies Handled method bodies + * @param handledMethodInfos Handled method infos + * @param abc ABC + * @param index Index + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param walkType Walk type + * @param initializer Initializer + * @param callStack Call stack + */ private void optionalHandleMethodInfo(Set handledMethodBodies, Set handledMethodInfos, ABC abc, int index, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, WalkType walkType, boolean initializer, Stack callStack) { if (handledMethodInfos.contains(index)) { return; @@ -107,6 +159,20 @@ public abstract class ABCWalker { } } + /** + * Optional handle method body. + * @param handledMethodBodies Handled method bodies + * @param handledMethodInfos Handled method infos + * @param abc ABC + * @param index Index + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param walkType Walk type + * @param initializer Initializer + * @param callStack Call stack + */ private void optionalHandleMethodBody(Set handledMethodBodies, Set handledMethodInfos, ABC abc, int index, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, WalkType walkType, boolean initializer, Stack callStack) { if (handledMethodBodies.contains(index)) { return; @@ -124,6 +190,21 @@ public abstract class ABCWalker { walkTraits(abc, abc.bodies.get(index).traits, scriptIndex, scriptTraitIndex, classIndex, traitIndex, index, handledMethodBodies, handledMethodInfos, handledMethodInfos, walkType, callStack); } + /** + * Walk traits. + * @param abc ABC + * @param traits Traits + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param bodyIndex Body index + * @param handledMethodBodies Handled method bodies + * @param handledMethodInfos Handled method infos + * @param handledClasses Handled classes + * @param walkType Walk type + * @param callStack Call stack + */ private void walkTraits(ABC abc, Traits traits, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, int bodyIndex, Set handledMethodBodies, Set handledMethodInfos, Set handledClasses, WalkType walkType, Stack callStack) { int bodyTraitIndex = -1; @@ -167,38 +248,125 @@ public abstract class ABCWalker { } } + /** + * Handle method info. + * @param abc ABC + * @param index Index + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param walkType Walk type + * @param initializer Initializer + * @param callStack Call stack + */ protected void handleMethodInfo(ABC abc, int index, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, WalkType walkType, boolean initializer, Stack callStack) { } + /** + * Handle method body. + * @param abc ABC + * @param index Index + * @param scriptIndex Script index + * @param classIndex Class index + * @param traitIndex Trait index + * @param walkType Walk type + * @param initializer Initializer + */ protected void handleMethodBody(ABC abc, int index, int scriptIndex, int classIndex, int traitIndex, WalkType walkType, boolean initializer) { } + /** + * Handle class. + * @param abc ABC + * @param index Index + * @param scriptIndex Script index + * @param traitIndex Trait index + * @param walkType Walk type + */ protected void handleClass(ABC abc, int index, int scriptIndex, int traitIndex, WalkType walkType) { } + /** + * Handle script. + * @param abc ABC + * @param index Index + */ protected void handleScript(ABC abc, int index) { } + /** + * Handle trait slot const. + * @param abc ABC + * @param trait Trait + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param bodyIndex Body index + * @param bodyTraitIndex Body trait index + * @param walkType Walk type + * @param callStack Call stack + */ protected void handleTraitSlotConst(ABC abc, TraitSlotConst trait, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, int bodyIndex, int bodyTraitIndex, WalkType walkType, Stack callStack) { } + /** + * Handle trait method getter setter. + * @param abc ABC + * @param trait Trait + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param walkType Walk type + */ protected void handleTraitMethodGetterSetter(ABC abc, TraitMethodGetterSetter trait, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, WalkType walkType) { } + /** + * Handle trait function. + * @param abc ABC + * @param trait Trait + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param walkType Walk type + */ protected void handleTraitFunction(ABC abc, TraitFunction trait, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, WalkType walkType) { } + /** + * Handle trait class. + * @param abc ABC + * @param trait Trait + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + */ protected void handleTraitClass(ABC abc, TraitClass trait, int scriptIndex, int scriptTraitIndex) { } + /** + * Handle metadata info. + * @param abc ABC + * @param index Index + * @param trait Trait + * @param scriptIndex Script index + * @param scriptTraitIndex Script trait index + * @param classIndex Class index + * @param traitIndex Trait index + * @param traitMetadataIndex Trait metadata index + * @param walkType Walk type + */ protected void handleMetadataInfo(ABC abc, int index, Trait trait, int scriptIndex, int scriptTraitIndex, int classIndex, int traitIndex, int traitMetadataIndex, WalkType walkType) { } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java index 3ef63ba78..d5450fbd8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/Action.java @@ -219,6 +219,7 @@ public abstract class Action implements GraphSourceItem { * * @param actionCode Action type identifier * @param actionLength Length of action data + * @param charset Charset */ public Action(int actionCode, int actionLength, String charset) { this.actionCode = actionCode; @@ -307,7 +308,7 @@ public abstract class Action implements GraphSourceItem { * * @param lex FlasmLexer * @return String value - * @throws IOException + * @throws IOException On I/O error * @throws ActionParseException When read object is not String */ protected String lexString(FlasmLexer lex) throws IOException, ActionParseException { @@ -322,7 +323,7 @@ public abstract class Action implements GraphSourceItem { * Reads Block startServer from FlasmLexer. * * @param lex FlasmLexer - * @throws IOException + * @throws IOException On I/O error * @throws ActionParseException When read object is not Block startServer */ protected void lexBlockOpen(FlasmLexer lex) throws IOException, ActionParseException { @@ -337,7 +338,7 @@ public abstract class Action implements GraphSourceItem { * * @param lex FlasmLexer * @return Identifier name - * @throws IOException + * @throws IOException On I/O error * @throws ActionParseException When read object is not Identifier */ protected String lexIdentifier(FlasmLexer lex) throws IOException, ActionParseException { @@ -353,7 +354,7 @@ public abstract class Action implements GraphSourceItem { * * @param lex FlasmLexer * @return long value - * @throws IOException + * @throws IOException On I/O error * @throws ActionParseException When read object is not long value */ protected long lexLong(FlasmLexer lex) throws IOException, ActionParseException { @@ -369,7 +370,7 @@ public abstract class Action implements GraphSourceItem { * * @param lex FlasmLexer * @return boolean value - * @throws IOException + * @throws IOException On I/O error * @throws ActionParseException When read object is not boolean value */ protected boolean lexBoolean(FlasmLexer lex) throws IOException, ActionParseException { @@ -384,8 +385,8 @@ public abstract class Action implements GraphSourceItem { * Reads optional comma from FlasmLexer. * * @param lex FlasmLexer - * @throws IOException - * @throws ActionParseException + * @throws IOException On I/O error + * @throws ActionParseException On parse error */ protected void lexOptionalComma(FlasmLexer lex) throws IOException, ActionParseException { ASMParsedSymbol symb = lex.lex(); @@ -416,7 +417,7 @@ public abstract class Action implements GraphSourceItem { * Gets content bytes of action. * * @param sos SWFOutputStream - * @throws IOException + * @throws IOException On I/O error */ protected void getContentBytes(SWFOutputStream sos) throws IOException { } @@ -525,7 +526,7 @@ public abstract class Action implements GraphSourceItem { * @param src ASMSource * @param constantPools List of constant pools * @param tryInline Whether to try to inline constant pools - * @throws ConstantPoolTooBigException + * @throws ConstantPoolTooBigException When constant pool is too big */ public static void setConstantPools(ASMSource src, List> constantPools, boolean tryInline) throws ConstantPoolTooBigException { try { @@ -593,13 +594,13 @@ public abstract class Action implements GraphSourceItem { /** * Converts list of actions to ASM source. * - * @param listeners - * @param address + * @param listeners List of listeners + * @param address Address * @param list List of actions * @param version SWF version * @param exportMode PCode or hex? - * @param writer - * @return GraphTextWriter + * @param writer Writer + * @return Writer */ public static GraphTextWriter actionsToString(List listeners, long address, ActionList list, int version, ScriptExportMode exportMode, GraphTextWriter writer) { if (exportMode == ScriptExportMode.CONSTANTS) { @@ -958,7 +959,7 @@ public abstract class Action implements GraphSourceItem { * @param writer Writer * @param charset Charset * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public static GraphTextWriter actionsToSource(Map> uninitializedClassTraits, final ASMSource asm, final List actions, final String path, GraphTextWriter writer, String charset) throws InterruptedException { return Action.actionsToSource(uninitializedClassTraits, asm, actions, path, writer, charset, new ArrayList<>()); @@ -967,6 +968,7 @@ public abstract class Action implements GraphSourceItem { /** * Converts list of actions to ActionScript source code. * + * @param uninitializedClassTraits Uninitialized class traits * @param asm ASM source * @param actions List of actions * @param path Path @@ -974,7 +976,7 @@ public abstract class Action implements GraphSourceItem { * @param charset Charset * @param treeOperations List of tree operations * @return Writer - * @throws java.lang.InterruptedException + * @throws InterruptedException On interrupt */ public static GraphTextWriter actionsToSource(Map> uninitializedClassTraits, final ASMSource asm, final List actions, final String path, GraphTextWriter writer, String charset, List treeOperations) throws InterruptedException { writer.suspendMeasure(); @@ -1050,7 +1052,7 @@ public abstract class Action implements GraphSourceItem { * @param path Path * @param charset Charset * @return List of treeItems - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public static List actionsToTree(Map> uninitializedClassTraits, boolean insideDoInitAction, boolean insideFunction, List actions, int version, int staticOperation, String path, String charset) throws InterruptedException { return actionsToTree(uninitializedClassTraits, insideDoInitAction, insideFunction, new HashMap<>(), new HashMap<>(), new HashMap<>(), actions, version, staticOperation, path, charset); @@ -1058,7 +1060,9 @@ public abstract class Action implements GraphSourceItem { /** * Converts list of actions to List of treeItems. - * + * @param uninitializedClassTraits Uninitialized class traits + * @param insideDoInitAction Inside DoInitAction? + * @param insideFunction Inside function? * @param regNames Register names * @param variables Variables * @param functions Functions @@ -1066,8 +1070,9 @@ public abstract class Action implements GraphSourceItem { * @param version SWF version * @param staticOperation Unused * @param path Path + * @param charset Charset * @return List of treeItems - * @throws java.lang.InterruptedException + * @throws InterruptedException On interrupt */ public static List actionsToTree(Map> uninitializedClassTraits, boolean insideDoInitAction, boolean insideFunction, HashMap regNames, HashMap variables, HashMap functions, List actions, int version, int staticOperation, String path, String charset) throws InterruptedException { HashMap variablesBackup = new LinkedHashMap<>(variables); @@ -1097,7 +1102,7 @@ public abstract class Action implements GraphSourceItem { * @param functions Functions * @param staticOperation the value of staticOperation * @param path the value of path - * @throws java.lang.InterruptedException + * @throws InterruptedException On interrupt */ public void translate(Map> uninitializedClassTraits, SecondPassData secondPassData, boolean insideDoInitAction, GraphSourceItem lineStartIns, TranslateStack stack, List output, HashMap regNames, HashMap variables, HashMap functions, int staticOperation, String path) throws InterruptedException { } @@ -1110,7 +1115,7 @@ public abstract class Action implements GraphSourceItem { * @param output Output list * @param staticOperation Unused * @param path Path - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override public void translate(BaseLocalData localData, TranslateStack stack, List output, int staticOperation, String path) throws InterruptedException { @@ -1219,8 +1224,8 @@ public abstract class Action implements GraphSourceItem { * @param path Path * @param charset Charset * @return List of tree items - * @throws InterruptedException - * @throws GraphPartChangeException + * @throws InterruptedException On interrupt + * @throws GraphPartChangeException On graph part change */ public static List actionsPartToTree(ActionGraph graph, Set switchParts, SecondPassData secondPassData, boolean insideDoInitAction, Reference lineStartActionRef, HashMap registerNames, HashMap variables, HashMap functions, TranslateStack stack, List actions, int start, int end, int version, int staticOperation, String path, String charset) throws InterruptedException, GraphPartChangeException { if (start < actions.size() && (end > 0) && (start > 0)) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionDefineFunctionPushRegistersCleaner.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionDefineFunctionPushRegistersCleaner.java index 10711a8d2..267a314a8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionDefineFunctionPushRegistersCleaner.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionDefineFunctionPushRegistersCleaner.java @@ -49,12 +49,18 @@ import java.util.TreeSet; */ public class ActionDefineFunctionPushRegistersCleaner extends SWFDecompilerAdapter { + /** + * Constructor. + */ + public ActionDefineFunctionPushRegistersCleaner() { + } + /** * Called when an action list is parsed * * @param actions Action list * @param swf SWF object - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override public void actionListParsed(ActionList actions, SWF swf) throws InterruptedException { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraph.java index 53047ef0a..48a7b89df 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraph.java @@ -146,12 +146,7 @@ public class ActionGraph extends Graph { public ActionGraphSource getGraphCode() { return (ActionGraphSource) code; } - - /** - * Gets sub-graphs - * - * @return - */ + @Override public LinkedHashMap getSubGraphs() { LinkedHashMap subgraphs = new LinkedHashMap<>(); @@ -218,7 +213,7 @@ public class ActionGraph extends Graph { * @param path Path * @param charset Charset * @return List of graph target items - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public static List translateViaGraph(Map> uninitializedClassTraits, SecondPassData secondPassData, boolean insideDoInitAction, boolean insideFunction, HashMap registerNames, HashMap variables, HashMap functions, List code, int version, int staticOperation, String path, String charset) throws InterruptedException { ActionGraph g = new ActionGraph(uninitializedClassTraits, path, insideDoInitAction, insideFunction, code, registerNames, variables, functions, version, charset); @@ -282,7 +277,7 @@ public class ActionGraph extends Graph { * @param level Level * @param localData Local data * @param path Path - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override protected void finalProcess(List list, int level, FinalProcessLocalData localData, String path) throws InterruptedException { @@ -617,7 +612,7 @@ public class ActionGraph extends Graph { * @param staticOperation Unused * @param path Path * @return List of GraphTargetItems - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override public List translate(BaseLocalData localData, int staticOperation, String path) throws InterruptedException { @@ -736,7 +731,7 @@ public class ActionGraph extends Graph { * @param path Path * @return List of GraphTargetItems to replace current output and stop * further processing. Null to continue. - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override protected List check(List currentRet, List foundGotos, Map> partCodes, Map partCodePos, Set visited, GraphSource code, BaseLocalData localData, Set allParts, TranslateStack stack, GraphPart parent, GraphPart part, List stopPart, List stopPartKind, List loops, List throwStates, List output, Loop currentLoop, int staticOperation, String path) throws InterruptedException { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraphSource.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraphSource.java index 18f9d0cad..a6960e816 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraphSource.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionGraphSource.java @@ -204,8 +204,8 @@ public class ActionGraphSource extends GraphSource { * @param staticOperation Unused * @param path Path * @return List of graph target items - * @throws InterruptedException - * @throws GraphPartChangeException + * @throws InterruptedException On interrupt + * @throws GraphPartChangeException On graph part change */ @Override public List translatePart(Graph graph, GraphPart part, BaseLocalData localData, TranslateStack stack, int start, int end, int staticOperation, String path) throws InterruptedException, GraphPartChangeException { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java index 7ea25f3a6..4b9bc977d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionListReader.java @@ -60,6 +60,12 @@ public class ActionListReader { */ private static final Logger logger = Logger.getLogger(ActionListReader.class.getName()); + /** + * Constructor. + */ + public ActionListReader() { + } + /** * Reads list of actions from the stream. Reading ends with * ActionEndFlag(=0) or end of the stream. @@ -72,9 +78,9 @@ public class ActionListReader { * @param path Path * @param deobfuscationMode Deobfuscation mode * @return List of actions - * @throws IOException - * @throws java.lang.InterruptedException - * @throws java.util.concurrent.TimeoutException + * @throws IOException On I/O error + * @throws InterruptedException On interrupt + * @throws TimeoutException On timeout */ public static ActionList readActionListTimeout(final List listeners, final SWFInputStream sis, final int version, final int ip, final int endIp, final String path, final int deobfuscationMode) throws IOException, InterruptedException, TimeoutException { try { @@ -112,8 +118,8 @@ public class ActionListReader { * @param path Path * @param deobfuscationMode Deobfuscation mode * @return List of actions - * @throws IOException - * @throws java.lang.InterruptedException + * @throws IOException On I/O error + * @throws InterruptedException On interrupt */ public static ActionList readActionList(List listeners, SWFInputStream sis, int version, int ip, int endIp, String path, int deobfuscationMode) throws IOException, InterruptedException { // Map of the actions. Use TreeMap to sort the keys in ascending order @@ -246,8 +252,8 @@ public class ActionListReader { * @param startIp Start IP * @param endIp End IP * @return List of actions - * @throws IOException - * @throws InterruptedException + * @throws IOException On I/O error + * @throws InterruptedException On interrupt */ public static List getOriginalActions(SWFInputStream sis, int startIp, int endIp) throws IOException, InterruptedException { // Map of the actions. Use TreeMap to sort the keys in ascending order diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptArray.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptArray.java index bcaa9bd34..5d1fd14be 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptArray.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptArray.java @@ -33,10 +33,17 @@ public class ActionScriptArray extends ActionScriptObject { protected List values = new ArrayList<>(); //TODO: implement some methods? + + /** + * Constructor. + */ + public ActionScriptArray() { + } + /** * Enumerates all members of this object * - * @return + * @return List of member names */ @Override public List enumerate() { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptObject.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptObject.java index e441804e4..8a45bdaa6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptObject.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionScriptObject.java @@ -49,6 +49,13 @@ public class ActionScriptObject implements Cloneable { */ protected List implementsObjs = new ArrayList<>(); + /** + * Constructor. + */ + public ActionScriptObject() { + + } + /** * Clears all members of the object */ diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionSecondPassData.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionSecondPassData.java index 9addf449b..62059d032 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionSecondPassData.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/ActionSecondPassData.java @@ -41,4 +41,11 @@ public class ActionSecondPassData extends SecondPassData { * List of case expressions for each switch statement */ List> switchCaseExpressions = new ArrayList<>(); + + /** + * Constructor. + */ + public ActionSecondPassData() { + + } } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java index 4e921f219..d3eeb88c7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2ClassDetector.java @@ -71,6 +71,13 @@ public class ActionScript2ClassDetector { */ private static final Logger logger = Logger.getLogger(ActionScript2ClassDetector.class.getName()); + + /** + * Constructor. + */ + public ActionScript2ClassDetector() { + } + /** * Assert exception */ diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2Classes.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2Classes.java index ed0cf4057..12a6250ba 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2Classes.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/as2/ActionScript2Classes.java @@ -51,6 +51,13 @@ public class ActionScript2Classes { */ private static boolean inited = false; + /** + * Constructor. + */ + private ActionScript2Classes() { + + } + /** * Initialize the classes */ @@ -200,7 +207,7 @@ public class ActionScript2Classes { /** * Sample test * - * @param args + * @param args Command line arguments */ public static void main(String[] args) { Map traits = getClassTraits("flash.filters.BevelFilter", true); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java index 85b5e0927..6c31ac1ad 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java @@ -99,6 +99,13 @@ import java.util.Stack; */ public class ActionDeobfuscator extends SWFDecompilerAdapter { + /** + * Constructor. + */ + public ActionDeobfuscator() { + super(); + } + @Override public void actionListParsed(ActionList actions, SWF swf) throws InterruptedException { FastActionList fastActions = new FastActionList(actions); @@ -449,10 +456,26 @@ public class ActionDeobfuscator extends SWFDecompilerAdapter { return false; } + /** + * Check if the name is fake. + * @param name Name + * @return True if the name is fake + */ protected boolean isFakeName(String name) { return !IdentifiersDeobfuscation.isValidName(false, name); } + /** + * Execute actions. + * @param item Action item + * @param localData Local data + * @param constantPool Constant pool + * @param result Execution result + * @param fakeFunctions Fake functions + * @param useVariables Use variables + * @param allowGetUninitializedVariables Allow get uninitialized variables + * @throws InterruptedException On interrupt + */ private void executeActions(ActionItem item, LocalDataArea localData, ActionConstantPool constantPool, ExecutionResult result, Map fakeFunctions, boolean useVariables, boolean allowGetUninitializedVariables) throws InterruptedException { if (item.action.isExit()) { return; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/ActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/ActionItem.java index 7cc5504b9..73aaf3fa0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/ActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/fastactionlist/ActionItem.java @@ -29,37 +29,37 @@ import java.util.Set; public class ActionItem { /** - * + * Action */ public Action action; /** - * Previous action in the list. + * Previous action in the list */ public ActionItem prev; /** - * Next action in the list. + * Next action in the list */ public ActionItem next; /** - * Jump target of this action. + * Jump target of this action */ private ActionItem jumpTarget; /** - * Actions that jump to this action. + * Actions that jump to this action */ public Set jumpsHere; /** - * Last actions. + * Last actions */ public Set lastActionOf; /** - * Container last actions. + * Container last actions */ private List containerLastActions; @@ -69,14 +69,14 @@ public class ActionItem { int reachable; /** - * Excluded flag. + * Excluded flag */ public boolean excluded; /** * Constructs a new ActionItem. * - * @param action + * @param action Action */ public ActionItem(Action action) { this.action = action; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionFSCommand2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionFSCommand2.java index 9d0f79882..794193465 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionFSCommand2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionFSCommand2.java @@ -37,6 +37,10 @@ import java.util.Map; */ public class ActionFSCommand2 extends Action { + /** + * Constructor + * @param charset Charset + */ public ActionFSCommand2(String charset) { super(0x2D, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionStrictMode.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionStrictMode.java index 05c803eba..c7073ebef 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionStrictMode.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/flashlite/ActionStrictMode.java @@ -40,13 +40,28 @@ import java.util.Map; */ public class ActionStrictMode extends Action { + /** + * Mode + */ public int mode; + /** + * Constructor + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionStrictMode(SWFInputStream sis) throws IOException { super(0x89, 1, sis.getCharset()); mode = sis.readUI8("mode"); } + /** + * Constructor + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionStrictMode(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x89, 1, charset); mode = (int) lexLong(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ActionItem.java index ab8bddd14..8c8ed1b89 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ActionItem.java @@ -38,18 +38,41 @@ import java.util.List; */ public abstract class ActionItem extends GraphTargetItem implements Serializable { + /** + * Constructor. + */ public ActionItem() { super(null, null, NOPRECEDENCE); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param precedence Precedence + */ public ActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, int precedence) { this(instruction, lineStartIns, precedence, null); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param precedence Precedence + * @param value Value + */ public ActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, int precedence, GraphTargetItem value) { super(instruction, lineStartIns, precedence, value); } + /** + * Chech if item is empty string. + * @param target Target + * @return True if item is empty string + */ protected boolean isEmptyString(GraphTargetItem target) { if (target instanceof DirectValueActionItem) { if (((DirectValueActionItem) target).value instanceof String) { @@ -62,6 +85,14 @@ public abstract class ActionItem extends GraphTargetItem implements Serializable return false; } + /** + * Strip quotes. + * @param target Target + * @param localData Local data + * @param writer Writer + * @return Writer + * @throws InterruptedException On interrupt + */ protected GraphTextWriter stripQuotes(GraphTargetItem target, LocalData localData, GraphTextWriter writer) throws InterruptedException { if (target instanceof DirectValueActionItem) { if (((DirectValueActionItem) target).value instanceof String) { @@ -75,6 +106,14 @@ public abstract class ActionItem extends GraphTargetItem implements Serializable } } + /** + * Converts item to source including call. + * @param localData Local data + * @param gen Generator + * @param list List + * @return List of source items + * @throws CompilationException On compilation error + */ protected List toSourceCall(SourceGeneratorLocalData localData, SourceGenerator gen, List list) throws CompilationException { ActionSourceGenerator asGenerator = (ActionSourceGenerator) gen; String charset = asGenerator.getCharset(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/AsciiToCharActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/AsciiToCharActionItem.java index 95dacd884..88f577e9a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/AsciiToCharActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/AsciiToCharActionItem.java @@ -36,6 +36,12 @@ import java.util.Objects; */ public class AsciiToCharActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value ASCII code + */ public AsciiToCharActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -61,6 +67,11 @@ public class AsciiToCharActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Get result. + * @param ascii ASCII code + * @return Result + */ public static String getResult(Object ascii) { int res = (char) EcmaScript.toInt32(ascii); if (res == 0) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallActionItem.java index 406ca8d29..760b88935 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallActionItem.java @@ -35,6 +35,12 @@ import java.util.Objects; */ public class CallActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public CallActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallFunctionActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallFunctionActionItem.java index 379017671..7576dc828 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallFunctionActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallFunctionActionItem.java @@ -44,10 +44,19 @@ import java.util.Set; */ public class CallFunctionActionItem extends ActionItem { + /** + * Function name. + */ public final GraphTargetItem functionName; + /** + * Arguments. + */ public final List arguments; + /** + * Calculated function. + */ public GraphTargetItem calculatedFunction; @Override @@ -55,6 +64,14 @@ public class CallFunctionActionItem extends ActionItem { visitor.visitAll(arguments); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param functionName Function name + * @param arguments Arguments + */ public CallFunctionActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem functionName, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.functionName = functionName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallMethodActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallMethodActionItem.java index 1eae5d1e2..2ca19afd0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallMethodActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CallMethodActionItem.java @@ -39,16 +39,38 @@ import java.util.Objects; */ public class CallMethodActionItem extends ActionItem { + /** + * Method name + */ public GraphTargetItem methodName; + /** + * Script object + */ public GraphTargetItem scriptObject; + /** + * Arguments + */ public List arguments; + /** + * Special - getter + */ public static int SPECIAL_GETTER = 1; + /** + * Special - setter + */ public static int SPECIAL_SETTER = 2; + /** + * Special + */ private int special = 0; + + /** + * Setter/getter variable name + */ private String setterGetterVarName = null; @Override @@ -57,6 +79,15 @@ public class CallMethodActionItem extends ActionItem { visitor.visit(scriptObject); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scriptObject Script object + * @param methodName Method name + * @param arguments Arguments + */ public CallMethodActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scriptObject, GraphTargetItem methodName, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.methodName = methodName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CastOpActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CastOpActionItem.java index 6bbf29e4d..e6f57cb5f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CastOpActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CastOpActionItem.java @@ -36,8 +36,14 @@ import java.util.Objects; */ public class CastOpActionItem extends ActionItem { + /** + * Constructor + */ public GraphTargetItem constructor; + /** + * Object + */ public GraphTargetItem object; @Override @@ -46,6 +52,14 @@ public class CastOpActionItem extends ActionItem { visitor.visit(object); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param constructor Constructor + * @param object Object + */ public CastOpActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem constructor, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.constructor = constructor; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CharToAsciiActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CharToAsciiActionItem.java index 46c062600..eabdcace7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CharToAsciiActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CharToAsciiActionItem.java @@ -36,6 +36,12 @@ import java.util.Set; */ public class CharToAsciiActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public CharToAsciiActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -75,6 +81,11 @@ public class CharToAsciiActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Get result. + * @param ch Character + * @return Result + */ public static int getResult(Object ch) { String s = ch.toString(); if (s.length() > 0) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CloneSpriteActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CloneSpriteActionItem.java index 1ebb35a13..633d06ea1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CloneSpriteActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/CloneSpriteActionItem.java @@ -39,10 +39,19 @@ import java.util.Objects; */ public class CloneSpriteActionItem extends ActionItem { + /** + * Source + */ public GraphTargetItem source; + /** + * Target + */ public GraphTargetItem target; + /** + * Depth + */ public GraphTargetItem depth; @Override @@ -52,6 +61,15 @@ public class CloneSpriteActionItem extends ActionItem { visitor.visit(depth); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param source Source + * @param target Target + * @param depth Depth + */ public CloneSpriteActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem source, GraphTargetItem target, GraphTargetItem depth) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.source = source; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ConstantPool.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ConstantPool.java index 7d998fc85..4652d56e9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ConstantPool.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ConstantPool.java @@ -26,15 +26,30 @@ import java.util.List; */ public class ConstantPool { + /** + * List of constants. + */ public List constants = new ArrayList<>(); + /** + * Constructor. + */ public ConstantPool() { } + /** + * Constructor. + * + * @param constants List of constants + */ public ConstantPool(List constants) { this.constants = constants; } + /** + * Sets new constants. + * @param constants List of constants + */ public void setNew(List constants) { this.constants = constants; } @@ -44,6 +59,10 @@ public class ConstantPool { return "x " + constants.toString(); } + /** + * Checks if constant pool is empty. + * @return True if empty, false otherwise + */ public boolean isEmpty() { return constants.isEmpty(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DecrementActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DecrementActionItem.java index 143806ba7..35ab1d2dd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DecrementActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DecrementActionItem.java @@ -37,6 +37,9 @@ import java.util.Set; */ public class DecrementActionItem extends ActionItem { + /** + * Object + */ public GraphTargetItem object; @Override @@ -44,6 +47,13 @@ public class DecrementActionItem extends ActionItem { visitor.visit(object); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public DecrementActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE); this.object = object; @@ -75,6 +85,11 @@ public class DecrementActionItem extends ActionItem { return getResult(object.getResultAsNumber()); } + /** + * Get result. + * @param num Number + * @return Result + */ public static Double getResult(Double num) { return num - 1; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DefineLocalActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DefineLocalActionItem.java index 434f1c5fb..2fd174eb1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DefineLocalActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DefineLocalActionItem.java @@ -39,8 +39,14 @@ import java.util.Objects; */ public class DefineLocalActionItem extends ActionItem implements SetTypeActionItem { + /** + * name + */ public GraphTargetItem name; + /** + * Temp register + */ private int tempRegister = -1; @Override @@ -71,6 +77,14 @@ public class DefineLocalActionItem extends ActionItem implements SetTypeActionIt return value; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param name Name + * @param value Value + */ public DefineLocalActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem name, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); this.name = name; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java index c0cb4cf0b..c68dc676d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DeleteActionItem.java @@ -38,8 +38,14 @@ import java.util.Objects; */ public class DeleteActionItem extends ActionItem { + /** + * Object + */ public GraphTargetItem object; + /** + * Property name + */ public GraphTargetItem propertyName; @Override @@ -48,6 +54,13 @@ public class DeleteActionItem extends ActionItem { visitor.visit(propertyName); } + /** + * Constructor. + * + * @param instruction Instruction + * @param object Object + * @param propertyName Property name + */ public DeleteActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem propertyName) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java index 1b4d050a0..47f737a7c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/DirectValueActionItem.java @@ -46,18 +46,44 @@ import java.util.Set; */ public class DirectValueActionItem extends ActionItem implements SimpleValue { + /** + * Value. + */ public Object value; + /** + * Constants. + */ public final List constants; + /** + * Computed register value. + */ public GraphTargetItem computedRegValue; + /** + * Position. + */ public final int pos; + /** + * Constructor. + * + * @param o Value + */ public DirectValueActionItem(Object o) { this(null, null, 0, o, new ArrayList<>()); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param instructionPos Instruction position + * @param value Value + * @param constants Constants + */ public DirectValueActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, int instructionPos, Object value, List constants) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.constants = constants; @@ -161,6 +187,11 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue { return writer.append(value.toString()); } + /** + * To string no hilight. + * @param constants Constants + * @return String + */ public String toStringNoH(ConstantPool constants) { if (value instanceof ConstantIndex) { return this.constants.get(((ConstantIndex) value).index); @@ -272,10 +303,18 @@ public class DirectValueActionItem extends ActionItem implements SimpleValue { return true; } + /** + * Checks if value is string. + * @return True if value is string + */ public boolean isString() { return (value instanceof String) || (value instanceof ConstantIndex); } + /** + * Gets value as string. + * @return Value as string + */ public String getAsString() { if (!isString()) { return null; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerateActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerateActionItem.java index 510be813e..1a5813f82 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerateActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerateActionItem.java @@ -37,6 +37,9 @@ import java.util.Objects; */ public class EnumerateActionItem extends ActionItem { + /** + * Object + */ public GraphTargetItem object; @Override @@ -44,6 +47,13 @@ public class EnumerateActionItem extends ActionItem { visitor.visit(object); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public EnumerateActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumeratedValueActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumeratedValueActionItem.java index 4cae889a3..48df1caf1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumeratedValueActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumeratedValueActionItem.java @@ -40,6 +40,9 @@ public class EnumeratedValueActionItem extends ActionItem implements BranchStack } + /** + * Constructor. + */ public EnumeratedValueActionItem() { super(null, null, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerationAssignmentValueActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerationAssignmentValueActionItem.java index 1396796ab..765107bbb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerationAssignmentValueActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EnumerationAssignmentValueActionItem.java @@ -39,6 +39,9 @@ public class EnumerationAssignmentValueActionItem extends ActionItem { } + /** + * Constructor. + */ public EnumerationAssignmentValueActionItem() { super(null, null, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EvalActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EvalActionItem.java index 1bfdc138e..43c9e794b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EvalActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/EvalActionItem.java @@ -34,6 +34,13 @@ import java.util.Objects; */ public class EvalActionItem extends ActionItem { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public EvalActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ExtendsActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ExtendsActionItem.java index be85fb2b9..8926aa6f5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ExtendsActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ExtendsActionItem.java @@ -31,10 +31,24 @@ import java.util.Objects; */ public class ExtendsActionItem extends ActionItem { + /** + * Subclass + */ public GraphTargetItem subclass; + /** + * Super class + */ public GraphTargetItem superclass; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param subclass Subclass + * @param superclass Superclass + */ public ExtendsActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem subclass, GraphTargetItem superclass) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.subclass = subclass; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommand2ActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommand2ActionItem.java index a8095fb30..f14e4c3d3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommand2ActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommand2ActionItem.java @@ -39,8 +39,14 @@ import java.util.Objects; */ public class FSCommand2ActionItem extends ActionItem { + /** + * Arguments + */ public List arguments; + /** + * Command + */ public GraphTargetItem command; @Override @@ -49,6 +55,14 @@ public class FSCommand2ActionItem extends ActionItem { visitor.visit(command); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param command Command + * @param arguments Arguments + */ public FSCommand2ActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem command, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.command = command; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommandActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommandActionItem.java index 96d78f1f8..25dc3e0a1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommandActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FSCommandActionItem.java @@ -39,8 +39,18 @@ import java.util.Objects; */ public class FSCommandActionItem extends ActionItem { + /** + * Command + */ private final GraphTargetItem command; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param command Command + */ public FSCommandActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem command) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.command = command; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FunctionActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FunctionActionItem.java index ce2fb3380..9606bae9f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FunctionActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/FunctionActionItem.java @@ -52,41 +52,99 @@ import java.util.Set; */ public class FunctionActionItem extends ActionItem implements BranchStackResistant { + /** + * Decompile get/set functions + */ public static final boolean DECOMPILE_GET_SET = true; + /** + * Is getter + */ public boolean isGetter = false; + /** + * Is setter + */ public boolean isSetter = false; + /** + * Actions + */ public List actions; + /** + * Constants + */ public List constants; + /** + * Function name + */ public String functionName; + /** + * Parameter names + */ public List paramNames; + /** + * Register names + */ public Map regNames; + /** + * Calculated function name + */ public GraphTargetItem calculatedFunctionName; + /** + * Has eval + */ public boolean hasEval = false; + /** + * Register start + */ private int regStart; + /** + * Variables + */ private List variables; + + /** + * Inner functions + */ private List innerFunctions; + /** + * Register - this + */ public static final int REGISTER_THIS = 1; + /** + * Register - arguments + */ public static final int REGISTER_ARGUMENTS = 2; + /** + * Register - super + */ public static final int REGISTER_SUPER = 3; + /** + * Register - root + */ public static final int REGISTER_ROOT = 4; + /** + * Register - parent + */ public static final int REGISTER_PARENT = 5; + /** + * Register - global + */ public static final int REGISTER_GLOBAL = 6; @Override @@ -99,14 +157,35 @@ public class FunctionActionItem extends ActionItem implements BranchStackResista } + /** + * Adds variable. + * @param variable Variable + */ public void addVariable(VariableActionItem variable) { variables.add(variable); } + /** + * Constructor. + */ public FunctionActionItem() { super(null, null, PRECEDENCE_PRIMARY); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param functionName Function name + * @param paramNames Parameter names + * @param regNames Register names + * @param actions Actions + * @param constants Constants + * @param regStart Register start + * @param variables Variables + * @param innerFunctions Inner functions + * @param hasEval Has eval + */ public FunctionActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, String functionName, List paramNames, Map regNames, List actions, List constants, int regStart, List variables, List innerFunctions, boolean hasEval) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.actions = actions; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetMemberActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetMemberActionItem.java index 3ab916a5f..4d7cd4f35 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetMemberActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetMemberActionItem.java @@ -39,10 +39,19 @@ import java.util.Objects; */ public class GetMemberActionItem extends ActionItem { + /** + * Object + */ public GraphTargetItem object; + /** + * Member name + */ public final GraphTargetItem memberName; + /** + * Print obfuscated member name + */ public boolean printObfuscatedMemberName = false; @Override @@ -51,6 +60,14 @@ public class GetMemberActionItem extends ActionItem { visitor.visit(memberName); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param memberName Member name + */ public GetMemberActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem memberName) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetPropertyActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetPropertyActionItem.java index 9a5c90773..9f93923c4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetPropertyActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetPropertyActionItem.java @@ -39,10 +39,19 @@ import java.util.Objects; */ public class GetPropertyActionItem extends ActionItem { + /** + * Target + */ public GraphTargetItem target; + /** + * Property index + */ public int propertyIndex; + /** + * Use getProperty function + */ public boolean useGetPropertyFunction = true; @Override @@ -50,6 +59,14 @@ public class GetPropertyActionItem extends ActionItem { visitor.visit(target); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + * @param propertyIndex Property index + */ public GetPropertyActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target, int propertyIndex) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetTimeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetTimeActionItem.java index feb52164f..faa19296b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetTimeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetTimeActionItem.java @@ -35,6 +35,11 @@ import java.util.Set; */ public class GetTimeActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public GetTimeActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURL2ActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURL2ActionItem.java index 99bcbd295..1c781af8a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURL2ActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURL2ActionItem.java @@ -39,10 +39,19 @@ import java.util.Objects; */ public class GetURL2ActionItem extends ActionItem { + /** + * URL string + */ public GraphTargetItem urlString; + /** + * Target string + */ public GraphTargetItem targetString; + /** + * Send vars method + */ public int sendVarsMethod; @Override @@ -70,6 +79,15 @@ public class GetURL2ActionItem extends ActionItem { return writer.append(methodStr).append(")"); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param urlString URL string + * @param targetString Target string + * @param method Send vars method + */ public GetURL2ActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem urlString, GraphTargetItem targetString, int method) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.urlString = urlString; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURLActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURLActionItem.java index 5dbcde181..e02531695 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURLActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetURLActionItem.java @@ -36,8 +36,14 @@ import java.util.Objects; */ public class GetURLActionItem extends ActionItem { + /** + * URL string + */ public String urlString; + /** + * Target string + */ public String targetString; @Override @@ -51,6 +57,13 @@ public class GetURLActionItem extends ActionItem { return writer.append("\")"); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param urlString URL string + * @param targetString Target string + */ public GetURLActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, String urlString, String targetString) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.urlString = urlString; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java index 64e2a3ee4..b82e70016 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVariableActionItem.java @@ -41,16 +41,34 @@ import java.util.Set; */ public class GetVariableActionItem extends ActionItem { + /** + * Name + */ public final GraphTargetItem name; + /** + * Computed value + */ private GraphTargetItem computedValue; + /** + * Computed result + */ private Object computedResult; + /** + * Computed compile time + */ private boolean computedCompiletime = false; + /** + * Computed variable computed + */ private boolean computedVariableComputed = false; + /** + * Print obfuscated name + */ public boolean printObfuscatedName = false; @Override @@ -63,6 +81,13 @@ public class GetVariableActionItem extends ActionItem { visitor.visit(name); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public GetVariableActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.name = value; @@ -114,6 +139,10 @@ public class GetVariableActionItem extends ActionItem { return null; } + /** + * Sets computed value. + * @param computedValue Computed value + */ public void setComputedValue(GraphTargetItem computedValue) { this.computedValue = computedValue; if (computedValue != null) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVersionActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVersionActionItem.java index 60b74fe87..757366cb4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVersionActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GetVersionActionItem.java @@ -34,6 +34,11 @@ import java.util.List; */ public class GetVersionActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public GetVersionActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java index 7ee0910b0..3933ef09f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrame2ActionItem.java @@ -42,12 +42,24 @@ import java.util.Objects; */ public class GotoFrame2ActionItem extends ActionItem { + /** + * Frame + */ public GraphTargetItem frame; + /** + * Scene bias flag + */ public boolean sceneBiasFlag; + /** + * Play flag + */ public boolean playFlag; + /** + * Scene bias + */ public int sceneBias; @Override @@ -55,6 +67,16 @@ public class GotoFrame2ActionItem extends ActionItem { visitor.visit(frame); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param frame Frame + * @param sceneBiasFlag Scene bias flag + * @param playFlag Play flag + * @param sceneBias Scene bias + */ public GotoFrame2ActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem frame, boolean sceneBiasFlag, boolean playFlag, int sceneBias) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.frame = frame; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrameActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrameActionItem.java index 04024897b..9521f4ced 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrameActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoFrameActionItem.java @@ -33,8 +33,18 @@ import java.util.List; */ public class GotoFrameActionItem extends ActionItem { + /** + * Frame number + */ public int frame; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param frame Frame number + */ public GotoFrameActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, int frame) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.frame = frame; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoLabelActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoLabelActionItem.java index ca860d2cc..50584436b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoLabelActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/GotoLabelActionItem.java @@ -35,8 +35,18 @@ import java.util.Objects; */ public class GotoLabelActionItem extends ActionItem { + /** + * Label + */ public String label; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param label Label + */ public GotoLabelActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, String label) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.label = label; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ImplementsOpActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ImplementsOpActionItem.java index ef1a38885..206ffd8e3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ImplementsOpActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ImplementsOpActionItem.java @@ -31,10 +31,24 @@ import java.util.Objects; */ public class ImplementsOpActionItem extends ActionItem { + /** + * Subclass + */ public GraphTargetItem subclass; + /** + * Superclasses + */ public List superclasses; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param subclass Subclass + * @param superclasses Superclasses + */ public ImplementsOpActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem subclass, List superclasses) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.subclass = subclass; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/IncrementActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/IncrementActionItem.java index 3241b9dbb..a9412456f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/IncrementActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/IncrementActionItem.java @@ -37,6 +37,9 @@ import java.util.Set; */ public class IncrementActionItem extends ActionItem { + /** + * Object + */ public GraphTargetItem object; @Override @@ -44,6 +47,13 @@ public class IncrementActionItem extends ActionItem { visitor.visit(object); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public IncrementActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE); this.object = object; @@ -75,6 +85,11 @@ public class IncrementActionItem extends ActionItem { return getResult(object.getResultAsNumber()); } + /** + * Gets result. + * @param num Number + * @return Result + */ public static Double getResult(Double num) { return num + 1; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitArrayActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitArrayActionItem.java index 89ef4bc70..c793e05d2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitArrayActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitArrayActionItem.java @@ -36,6 +36,9 @@ import java.util.Objects; */ public class InitArrayActionItem extends ActionItem { + /** + * Values + */ public List values; @Override @@ -43,6 +46,12 @@ public class InitArrayActionItem extends ActionItem { visitor.visitAll(values); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param values Values + */ public InitArrayActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, List values) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.values = values; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitObjectActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitObjectActionItem.java index 8bee12a7e..756ba692d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitObjectActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/InitObjectActionItem.java @@ -41,8 +41,14 @@ import java.util.Objects; */ public class InitObjectActionItem extends ActionItem { + /** + * Names + */ public List names; + /** + * Values + */ public List values; @Override @@ -51,6 +57,14 @@ public class InitObjectActionItem extends ActionItem { visitor.visitAll(values); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param names Names + * @param values Values + */ public InitObjectActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, List names, List values) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.values = values; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieActionItem.java index 676f4adf9..ec7c9d779 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieActionItem.java @@ -38,10 +38,19 @@ import java.util.Objects; */ public class LoadMovieActionItem extends ActionItem { + /** + * URL string + */ private final GraphTargetItem urlString; + /** + * Target string + */ private final GraphTargetItem targetString; + /** + * Method + */ private final int method; @Override @@ -50,6 +59,15 @@ public class LoadMovieActionItem extends ActionItem { visitor.visit(targetString); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param urlString URL string + * @param targetString Target string + * @param method Method + */ public LoadMovieActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem urlString, GraphTargetItem targetString, int method) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.urlString = urlString; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieNumActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieNumActionItem.java index a0cb1a912..14d08db26 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieNumActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadMovieNumActionItem.java @@ -39,10 +39,19 @@ import java.util.Objects; */ public class LoadMovieNumActionItem extends ActionItem { + /** + * URL string + */ private final GraphTargetItem urlString; + /** + * Number + */ private final GraphTargetItem num; + /** + * Method + */ private final int method; @Override @@ -51,6 +60,15 @@ public class LoadMovieNumActionItem extends ActionItem { visitor.visit(num); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param urlString URL string + * @param num Number + * @param method Method + */ public LoadMovieNumActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem urlString, GraphTargetItem num, int method) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.urlString = urlString; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesActionItem.java index 662329e73..9711b869f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesActionItem.java @@ -38,10 +38,19 @@ import java.util.Objects; */ public class LoadVariablesActionItem extends ActionItem { + /** + * URL string + */ private final GraphTargetItem urlString; + /** + * Target string + */ private final GraphTargetItem targetString; + /** + * Method + */ private final int method; @Override @@ -50,6 +59,15 @@ public class LoadVariablesActionItem extends ActionItem { visitor.visit(targetString); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param urlString URL string + * @param targetString Target string + * @param method Method + */ public LoadVariablesActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem urlString, GraphTargetItem targetString, int method) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.urlString = urlString; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesNumActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesNumActionItem.java index 04dba6607..fe2d81ffd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesNumActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/LoadVariablesNumActionItem.java @@ -39,10 +39,19 @@ import java.util.Objects; */ public class LoadVariablesNumActionItem extends ActionItem { + /** + * URL string + */ private final GraphTargetItem urlString; + /** + * Number + */ private final GraphTargetItem num; + /** + * Method + */ private final int method; @Override @@ -51,6 +60,15 @@ public class LoadVariablesNumActionItem extends ActionItem { visitor.visit(num); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param urlString URL string + * @param num Number + * @param method Method + */ public LoadVariablesNumActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem urlString, GraphTargetItem num, int method) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.urlString = urlString; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBAsciiToCharActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBAsciiToCharActionItem.java index 99a8f85c8..f6d55cbd8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBAsciiToCharActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBAsciiToCharActionItem.java @@ -36,6 +36,12 @@ import java.util.Objects; */ public class MBAsciiToCharActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public MBAsciiToCharActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -61,6 +67,11 @@ public class MBAsciiToCharActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Gets result. + * @param ascii ASCII + * @return Result + */ public static String getResult(Object ascii) { int res = (char) EcmaScript.toInt32(ascii); if (res == 0) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBCharToAsciiActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBCharToAsciiActionItem.java index 8da6bce7e..4920e33a0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBCharToAsciiActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBCharToAsciiActionItem.java @@ -35,6 +35,12 @@ import java.util.Objects; */ public class MBCharToAsciiActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public MBCharToAsciiActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -60,6 +66,11 @@ public class MBCharToAsciiActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Get result. + * @param ch Character + * @return Result + */ public static int getResult(Object ch) { String s = ch.toString(); if (s.length() > 0) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringExtractActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringExtractActionItem.java index 46d2f4de3..aa96dad86 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringExtractActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringExtractActionItem.java @@ -37,8 +37,14 @@ import java.util.Objects; */ public class MBStringExtractActionItem extends ActionItem { + /** + * Index + */ public GraphTargetItem index; + /** + * Count + */ public GraphTargetItem count; @Override @@ -48,6 +54,15 @@ public class MBStringExtractActionItem extends ActionItem { visitor.visit(count); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param index Index + * @param count Count + */ public MBStringExtractActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem index, GraphTargetItem count) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); this.index = index; @@ -81,6 +96,14 @@ public class MBStringExtractActionItem extends ActionItem { return getResult(count.getResult(), index.getResult(), value.getResult()); } + /** + * Gets result. + * + * @param count Count + * @param index Index + * @param value Value + * @return Result + */ public static String getResult(Object count, Object index, Object value) { String str = EcmaScript.toString(value); int idx = EcmaScript.toInt32(index); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringLengthActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringLengthActionItem.java index f6e3db6b3..930866e84 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringLengthActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/MBStringLengthActionItem.java @@ -36,6 +36,13 @@ import java.util.Objects; */ public class MBStringLengthActionItem extends ActionItem { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public MBStringLengthActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -67,6 +74,12 @@ public class MBStringLengthActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Gets result. + * + * @param obj Object + * @return Result + */ public static Double getResult(Object obj) { return EcmaScript.toNumberAs2(EcmaScript.toString(obj).length()); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java index 4c4d3da73..31bf9aa19 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewMethodActionItem.java @@ -38,10 +38,19 @@ import java.util.Objects; */ public class NewMethodActionItem extends ActionItem { + /** + * Method name + */ public GraphTargetItem methodName; + /** + * Script object + */ public GraphTargetItem scriptObject; + /** + * Arguments + */ public List arguments; @Override @@ -50,6 +59,15 @@ public class NewMethodActionItem extends ActionItem { visitor.visitAll(arguments); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scriptObject Script object + * @param methodName Method name + * @param arguments Arguments + */ public NewMethodActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scriptObject, GraphTargetItem methodName, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.methodName = methodName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java index 96f07a597..be94086d6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NewObjectActionItem.java @@ -37,8 +37,14 @@ import java.util.Objects; */ public class NewObjectActionItem extends ActionItem { + /** + * Object name + */ public GraphTargetItem objectName; + /** + * Arguments + */ public List arguments; @Override @@ -47,6 +53,14 @@ public class NewObjectActionItem extends ActionItem { visitor.visitAll(arguments); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param objectName Object name + * @param arguments Arguments + */ public NewObjectActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem objectName, List arguments) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.objectName = objectName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NextFrameActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NextFrameActionItem.java index efa056c42..da1db8dc4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NextFrameActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/NextFrameActionItem.java @@ -42,6 +42,12 @@ public class NextFrameActionItem extends ActionItem { return writer.append("()"); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public NextFrameActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PlayActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PlayActionItem.java index 4c0c04495..e9b1c5180 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PlayActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PlayActionItem.java @@ -42,6 +42,11 @@ public class PlayActionItem extends ActionItem { return writer.append("()"); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public PlayActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PopActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PopActionItem.java index b2e07718b..66c0a4894 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PopActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PopActionItem.java @@ -32,6 +32,11 @@ import java.util.List; */ public class PopActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public PopActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, NOPRECEDENCE); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostDecrementActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostDecrementActionItem.java index 7710da944..b79a8968d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostDecrementActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostDecrementActionItem.java @@ -46,8 +46,14 @@ import java.util.Objects; */ public class PostDecrementActionItem extends ActionItem implements SetTypeActionItem { + /** + * Object + */ public GraphTargetItem object; + /** + * Temp register + */ private int tempRegister = -1; @Override @@ -55,6 +61,13 @@ public class PostDecrementActionItem extends ActionItem implements SetTypeAction visitor.visit(object); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PostDecrementActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_POSTFIX); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostIncrementActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostIncrementActionItem.java index 9f201a6de..873d27d05 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostIncrementActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PostIncrementActionItem.java @@ -46,8 +46,14 @@ import java.util.Objects; */ public class PostIncrementActionItem extends ActionItem implements SetTypeActionItem { + /** + * Object + */ public GraphTargetItem object; + /** + * Temp register + */ private int tempRegister = -1; @Override @@ -55,6 +61,13 @@ public class PostIncrementActionItem extends ActionItem implements SetTypeAction visitor.visit(object); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PostIncrementActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_POSTFIX); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrevFrameActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrevFrameActionItem.java index 7112d4f07..074d5c06f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrevFrameActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrevFrameActionItem.java @@ -42,6 +42,12 @@ public class PrevFrameActionItem extends ActionItem { return writer.append("()"); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public PrevFrameActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintActionItem.java index 2836596b6..e28b97132 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintActionItem.java @@ -39,8 +39,14 @@ import java.util.Objects; */ public class PrintActionItem extends ActionItem { + /** + * Target + */ private final GraphTargetItem target; + /** + * Bounding box + */ private final GraphTargetItem boundingBox; @Override @@ -49,6 +55,14 @@ public class PrintActionItem extends ActionItem { visitor.visit(boundingBox); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + * @param boundingBox Bounding box + */ public PrintActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target, GraphTargetItem boundingBox) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapActionItem.java index 323eab974..b05b1cdd3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapActionItem.java @@ -39,8 +39,14 @@ import java.util.Objects; */ public class PrintAsBitmapActionItem extends ActionItem { + /** + * Target + */ private final GraphTargetItem target; + /** + * Bounding box + */ private final GraphTargetItem boundingBox; @Override @@ -49,6 +55,14 @@ public class PrintAsBitmapActionItem extends ActionItem { visitor.visit(boundingBox); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + * @param boundingBox Bounding box + */ public PrintAsBitmapActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target, GraphTargetItem boundingBox) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapNumActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapNumActionItem.java index 113540ef0..0695a19d7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapNumActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintAsBitmapNumActionItem.java @@ -39,8 +39,14 @@ import java.util.Objects; */ public class PrintAsBitmapNumActionItem extends ActionItem { + /** + * Number + */ private final GraphTargetItem num; + /** + * Bounding box + */ private final GraphTargetItem boundingBox; @Override @@ -49,6 +55,14 @@ public class PrintAsBitmapNumActionItem extends ActionItem { visitor.visit(boundingBox); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param num Number + * @param boundingBox Bounding box + */ public PrintAsBitmapNumActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem num, GraphTargetItem boundingBox) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.num = num; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintNumActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintNumActionItem.java index c394c9ae3..5c641d084 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintNumActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/PrintNumActionItem.java @@ -39,8 +39,14 @@ import java.util.Objects; */ public class PrintNumActionItem extends ActionItem { + /** + * Number + */ private final GraphTargetItem num; + /** + * Bounding box + */ private final GraphTargetItem boundingBox; @Override @@ -49,6 +55,14 @@ public class PrintNumActionItem extends ActionItem { visitor.visit(boundingBox); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param num Number + * @param boundingBox Bounding box + */ public PrintNumActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem num, GraphTargetItem boundingBox) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.num = num; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RandomNumberActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RandomNumberActionItem.java index bb20217ae..34c22dff8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RandomNumberActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RandomNumberActionItem.java @@ -37,12 +37,27 @@ import java.util.Random; */ public class RandomNumberActionItem extends ActionItem { + /** + * Random number generator + */ private static final Random rnd = new Random(); + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param maximum Maximum + */ public RandomNumberActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem maximum) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, maximum); } + /** + * Gets result. + * + * @param maximum Maximum + * @return Result + */ public static Integer getResult(Object maximum) { int maximumInt = EcmaScript.toInt32(maximum); if (maximumInt <= 0) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RemoveSpriteActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RemoveSpriteActionItem.java index 458f91bc0..c47e726c7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RemoveSpriteActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/RemoveSpriteActionItem.java @@ -38,6 +38,12 @@ import java.util.Objects; */ public class RemoveSpriteActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + */ public RemoveSpriteActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, target); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ReturnActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ReturnActionItem.java index e0e5833c3..8446ca58c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ReturnActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ReturnActionItem.java @@ -47,6 +47,12 @@ import java.util.Set; */ public class ReturnActionItem extends ActionItem implements ExitItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value to return + */ public ReturnActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetMemberActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetMemberActionItem.java index 1d502a696..a338cb3e3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetMemberActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetMemberActionItem.java @@ -42,14 +42,29 @@ import java.util.Objects; */ public class SetMemberActionItem extends ActionItem implements SetTypeActionItem { + /** + * Object + */ public GraphTargetItem object; + /** + * Object name + */ public GraphTargetItem objectName; + /** + * Value + */ private int tempRegister = -1; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; @Override @@ -84,6 +99,15 @@ public class SetMemberActionItem extends ActionItem implements SetTypeActionItem return value; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + * @param objectName Object name + * @param value Value + */ public SetMemberActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object, GraphTargetItem objectName, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.object = object; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetPropertyActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetPropertyActionItem.java index 6f1d8ffe5..8c1193777 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetPropertyActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetPropertyActionItem.java @@ -41,10 +41,21 @@ import java.util.Objects; */ public class SetPropertyActionItem extends ActionItem implements SetTypeActionItem { + /** + * Target + */ public GraphTargetItem target; + /** + * Property index + */ public int propertyIndex; + /** + * Temp register + */ + private int tempRegister = -1; + @Override public GraphPart getFirstPart() { return value.getFirstPart(); @@ -55,8 +66,6 @@ public class SetPropertyActionItem extends ActionItem implements SetTypeActionIt this.value = value; } - private int tempRegister = -1; - @Override public int getTempRegister() { return tempRegister; @@ -72,6 +81,15 @@ public class SetPropertyActionItem extends ActionItem implements SetTypeActionIt return value; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + * @param propertyIndex Property index + * @param value Value + */ public SetPropertyActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target, int propertyIndex, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTarget2ActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTarget2ActionItem.java index d9e2f88eb..8163ef5d3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTarget2ActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTarget2ActionItem.java @@ -34,8 +34,18 @@ import java.util.Objects; */ public class SetTarget2ActionItem extends ActionItem { + /** + * Target + */ public GraphTargetItem target; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + */ public SetTarget2ActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTargetActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTargetActionItem.java index 9a61814e1..9577fa03a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTargetActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTargetActionItem.java @@ -34,8 +34,18 @@ import java.util.Objects; */ public class SetTargetActionItem extends ActionItem { + /** + * Target + */ public String target; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + */ public SetTargetActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, String target) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTypeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTypeActionItem.java index cab84f807..04ca9b3be 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTypeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetTypeActionItem.java @@ -25,21 +25,57 @@ import com.jpexs.decompiler.graph.GraphTargetItem; */ public interface SetTypeActionItem { + /** + * Gets object. + * @return Object + */ public GraphTargetItem getObject(); + /** + * Gets value. + * @return Value + */ public GraphTargetItem getValue(); + /** + * Sets temp register. + * @param regIndex + */ public void setTempRegister(int regIndex); + /** + * Gets temp register. + * @return Temp register + */ public int getTempRegister(); + /** + * Sets value. + * @param value Value + */ public void setValue(GraphTargetItem value); + /** + * Gets compound value. + * @return Compound value + */ public GraphTargetItem getCompoundValue(); + /** + * Sets compound value. + * @param value Compound value + */ public void setCompoundValue(GraphTargetItem value); + /** + * Sets compound operator. + * @param operator Compound operator + */ public void setCompoundOperator(String operator); + /** + * Gets compound operator. + * @return Compound operator + */ public String getCompoundOperator(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetVariableActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetVariableActionItem.java index 40dc077b5..05d939424 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetVariableActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/SetVariableActionItem.java @@ -45,14 +45,29 @@ import java.util.Set; */ public class SetVariableActionItem extends ActionItem implements SetTypeActionItem { + /** + * Name + */ public GraphTargetItem name; + /** + * Temp register + */ private int tempRegister = -1; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; + /** + * Force use set + */ public boolean forceUseSet = false; @Override @@ -80,6 +95,14 @@ public class SetVariableActionItem extends ActionItem implements SetTypeActionIt return value; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param name Name + * @param value Value + */ public SetVariableActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem name, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.name = name; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StartDragActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StartDragActionItem.java index e45c7f58c..94e220c12 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StartDragActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StartDragActionItem.java @@ -40,20 +40,54 @@ import java.util.Objects; */ public class StartDragActionItem extends ActionItem { + /** + * Target + */ public GraphTargetItem target; + /** + * Lock center + */ public GraphTargetItem lockCenter; + /** + * Constrain + */ public GraphTargetItem constrain; + /** + * Y2 + */ public GraphTargetItem y2; + /** + * X2 + */ public GraphTargetItem x2; + /** + * Y1 + */ public GraphTargetItem y1; + /** + * X1 + */ public GraphTargetItem x1; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + * @param lockCenter Lock center + * @param constrain Constrain + * @param x1 X1 + * @param y1 Y1 + * @param x2 X2 + * @param y2 Y2 + */ public StartDragActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target, GraphTargetItem lockCenter, GraphTargetItem constrain, GraphTargetItem x1, GraphTargetItem y1, GraphTargetItem x2, GraphTargetItem y2) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopActionItem.java index 8c0258030..d567a269c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopActionItem.java @@ -42,6 +42,11 @@ public class StopActionItem extends ActionItem { return writer.append("()"); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public StopActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopAllSoundsActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopAllSoundsActionItem.java index b0b8c6b08..99e89f883 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopAllSoundsActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopAllSoundsActionItem.java @@ -42,6 +42,11 @@ public class StopAllSoundsActionItem extends ActionItem { return writer.append("()"); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public StopAllSoundsActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopDragActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopDragActionItem.java index f2d856235..a385ac024 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopDragActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StopDragActionItem.java @@ -42,6 +42,11 @@ public class StopDragActionItem extends ActionItem { return writer.append("()"); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public StopDragActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StoreRegisterActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StoreRegisterActionItem.java index e20b02793..e59d69326 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StoreRegisterActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StoreRegisterActionItem.java @@ -41,16 +41,36 @@ import java.util.Objects; */ public class StoreRegisterActionItem extends ActionItem implements SetTypeActionItem { + /** + * Register number + */ public RegisterNumber register; + /** + * Define + */ public boolean define = false; + /** + * Temporary + */ public boolean temporary = false; + /** + * Compound value + */ public GraphTargetItem compoundValue; + /** + * Compound operator + */ public String compoundOperator; + /** + * Temp register + */ + private int tempRegister = -1; + @Override public GraphPart getFirstPart() { return value.getFirstPart(); @@ -61,8 +81,6 @@ public class StoreRegisterActionItem extends ActionItem implements SetTypeAction this.value = value; } - private int tempRegister = -1; - @Override public int getTempRegister() { return tempRegister; @@ -78,6 +96,15 @@ public class StoreRegisterActionItem extends ActionItem implements SetTypeAction return value; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param register Register number + * @param value Value + * @param define Define + */ public StoreRegisterActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, RegisterNumber register, GraphTargetItem value, boolean define) { super(instruction, lineStartIns, PRECEDENCE_ASSIGMENT, value); this.register = register; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StrictModeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StrictModeActionItem.java index a4cc947c4..f3005e733 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StrictModeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StrictModeActionItem.java @@ -27,8 +27,18 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class StrictModeActionItem extends ActionItem { + /** + * Mode + */ public int mode; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param mode Mode + */ public StrictModeActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, int mode) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.mode = mode; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringExtractActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringExtractActionItem.java index e1cb62413..240c32de6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringExtractActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringExtractActionItem.java @@ -36,10 +36,25 @@ import java.util.Objects; */ public class StringExtractActionItem extends ActionItem { + /** + * Index + */ public GraphTargetItem index; + /** + * Count + */ public GraphTargetItem count; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param index Index + * @param count Count + */ public StringExtractActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem index, GraphTargetItem count) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); this.index = index; @@ -72,6 +87,14 @@ public class StringExtractActionItem extends ActionItem { return getResult(count.getResult(), index.getResult(), value.getResult()); } + /** + * Get result. + * + * @param count Count + * @param index Index + * @param value Value + * @return Result + */ public static String getResult(Object count, Object index, Object value) { String str = EcmaScript.toString(value); int idx = EcmaScript.toInt32(index); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringLengthActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringLengthActionItem.java index 9a9ec25e0..4699d3521 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringLengthActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/StringLengthActionItem.java @@ -36,6 +36,12 @@ import java.util.Set; */ public class StringLengthActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public StringLengthActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -59,6 +65,11 @@ public class StringLengthActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Gets result. + * @param obj Object + * @return Result + */ public static Double getResult(Object obj) { return EcmaScript.toNumberAs2(EcmaScript.toString(obj).length()); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TargetPathActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TargetPathActionItem.java index 443573b24..3dc778093 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TargetPathActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TargetPathActionItem.java @@ -35,6 +35,12 @@ import java.util.Objects; */ public class TargetPathActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public TargetPathActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, object); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegister.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegister.java index 193a20cf1..094d25e60 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegister.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegister.java @@ -31,15 +31,32 @@ import java.util.Objects; */ public class TemporaryRegister extends ActionItem { + /** + * Register ID. + */ private final int regId; + /** + * If this register is used. + */ public boolean used = false; + /** + * Constructor. + * + * @param regId Register ID + * @param value Value + */ public TemporaryRegister(int regId, GraphTargetItem value) { super(value.getSrc(), value.getLineStartItem(), value.getPrecedence(), value); this.regId = regId; } + /** + * Gets register ID. + * + * @return Register ID + */ public int getRegId() { return regId; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegisterMark.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegisterMark.java index 71acd41cd..a59e616b7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegisterMark.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TemporaryRegisterMark.java @@ -26,8 +26,16 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public class TemporaryRegisterMark extends ActionItem { + /** + * Temporary register. + */ public TemporaryRegister tempReg; + /** + * Constructor. + * + * @param tempReg Temporary register + */ public TemporaryRegisterMark(TemporaryRegister tempReg) { this.tempReg = tempReg; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ThrowActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ThrowActionItem.java index c0bcb07f3..5088e626a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ThrowActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ThrowActionItem.java @@ -36,6 +36,12 @@ import java.util.Objects; */ public class ThrowActionItem extends ActionItem implements ExitItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object to throw + */ public ThrowActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, object); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToIntegerActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToIntegerActionItem.java index c73024e74..3cfe72b37 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToIntegerActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToIntegerActionItem.java @@ -36,6 +36,12 @@ import java.util.Objects; */ public class ToIntegerActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public ToIntegerActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -61,6 +67,11 @@ public class ToIntegerActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Gets result. + * @param num Number + * @return Result + */ public static long getResult(Object num) { return EcmaScript.toInt32(num); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToNumberActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToNumberActionItem.java index fac1c0bef..cfb0fb667 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToNumberActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToNumberActionItem.java @@ -35,6 +35,12 @@ import java.util.Objects; */ public class ToNumberActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public ToNumberActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -60,6 +66,11 @@ public class ToNumberActionItem extends ActionItem { return getResult(value.getResultAsNumber()); } + /** + * Gets result. + * @param num Number + * @return Result + */ public static Double getResult(Double num) { return num; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToStringActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToStringActionItem.java index 8fe3dc0d9..816478fbf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToStringActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToStringActionItem.java @@ -36,6 +36,12 @@ import java.util.Objects; */ public class ToStringActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public ToStringActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } @@ -61,6 +67,11 @@ public class ToStringActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Gets result. + * @param obj Object + * @return Result + */ public static String getResult(Object obj) { return EcmaScript.toString(obj); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToggleHighQualityActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToggleHighQualityActionItem.java index 632131289..9434d1780 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToggleHighQualityActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/ToggleHighQualityActionItem.java @@ -42,6 +42,11 @@ public class ToggleHighQualityActionItem extends ActionItem { return writer.append("()"); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public ToggleHighQualityActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TraceActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TraceActionItem.java index 933b0309e..93bc12dfe 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TraceActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TraceActionItem.java @@ -38,6 +38,12 @@ import java.util.Objects; */ public class TraceActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public TraceActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY, value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TypeOfActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TypeOfActionItem.java index ecd8c0663..3c72b6f35 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TypeOfActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/TypeOfActionItem.java @@ -39,6 +39,12 @@ import java.util.Set; */ public class TypeOfActionItem extends ActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public TypeOfActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_UNARY, value); } @@ -70,6 +76,11 @@ public class TypeOfActionItem extends ActionItem { return getResult(value.getResult()); } + /** + * Gets result. + * @param obj Object + * @return Result + */ public static String getResult(Object obj) { Object res = obj; EcmaType type = EcmaScript.type(res); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieActionItem.java index c93729703..225613624 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieActionItem.java @@ -38,6 +38,9 @@ import java.util.Objects; */ public class UnLoadMovieActionItem extends ActionItem { + /** + * Target string + */ private final GraphTargetItem targetString; @Override @@ -45,6 +48,12 @@ public class UnLoadMovieActionItem extends ActionItem { visitor.visit(targetString); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param targetString Target string + */ public UnLoadMovieActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem targetString) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.targetString = targetString; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieNumActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieNumActionItem.java index 2197c139a..db81c76c2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieNumActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnLoadMovieNumActionItem.java @@ -40,6 +40,9 @@ import java.util.Objects; */ public class UnLoadMovieNumActionItem extends ActionItem { + /** + * Number + */ private final GraphTargetItem num; @Override @@ -47,6 +50,13 @@ public class UnLoadMovieNumActionItem extends ActionItem { visitor.visit(num); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param num Number + */ public UnLoadMovieNumActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem num) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.num = num; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnresolvedConstantActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnresolvedConstantActionItem.java index 986a33cb3..4f518fcb1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnresolvedConstantActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnresolvedConstantActionItem.java @@ -39,16 +39,38 @@ import java.util.Set; */ public class UnresolvedConstantActionItem extends ActionItem implements SimpleValue { + /** + * Computed register value + */ public GraphTargetItem computedRegValue; + /** + * Position + */ public final int pos; + /** + * Index + */ private int index; + /** + * Constructor. + * + * @param index Index + */ public UnresolvedConstantActionItem(int index) { this(null, null, 0, index); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param instructionPos Instruction position + * @param index Index + */ public UnresolvedConstantActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, int instructionPos, int index) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.index = index; @@ -80,6 +102,10 @@ public class UnresolvedConstantActionItem extends ActionItem implements SimpleVa return "\u00A7\u00A7constant(" + index + ")"; } + /** + * Gets the index. + * @return Index + */ public int getIndex() { return index; } @@ -151,10 +177,18 @@ public class UnresolvedConstantActionItem extends ActionItem implements SimpleVa return true; } + /** + * Checks if this is string. + * @return True if this is string + */ public boolean isString() { return true; } + /** + * Gets as string. + * @return String + */ public String getAsString() { if (!isString()) { return null; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnsupportedActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnsupportedActionItem.java index 27854eeb1..a36295ba9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnsupportedActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/UnsupportedActionItem.java @@ -30,8 +30,18 @@ import java.util.Objects; */ public class UnsupportedActionItem extends ActionItem { + /** + * Value + */ public String value; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public UnsupportedActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, String value) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.value = value; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java index 20a982930..9b3c9c78d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ClassActionItem.java @@ -49,16 +49,36 @@ import java.util.Set; */ public class ClassActionItem extends ActionItem implements Block { + /** + * Extends + */ public GraphTargetItem extendsOp; + /** + * Implements + */ public List implementsOp; + /** + * Class name + */ public GraphTargetItem className; //public GraphTargetItem constructor; + + /** + * Traits + */ public List> traits; + + /** + * Which traits are static + */ public List traitsStatic; + /** + * Uninitialized variables + */ public Set uninitializedVars; @Override @@ -73,6 +93,15 @@ public class ClassActionItem extends ActionItem implements Block { } + /** + * Constructor. + * + * @param className Class name + * @param extendsOp Extends + * @param implementsOp Implements + * @param traits Traits + * @param traitsStatic Which traits are static + */ public ClassActionItem(GraphTargetItem className, GraphTargetItem extendsOp, List implementsOp, List> traits, List traitsStatic) { super(null, null, NOPRECEDENCE); this.className = className; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java index 40de6dc52..b548559f9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/ForInActionItem.java @@ -56,12 +56,24 @@ import java.util.List; */ public class ForInActionItem extends LoopActionItem implements Block { + /** + * Variable name + */ public GraphTargetItem variableName; + /** + * Enumerated variable + */ public GraphTargetItem enumVariable; + /** + * Commands + */ public List commands; + /** + * Label used + */ private boolean labelUsed; @Override @@ -86,6 +98,16 @@ public class ForInActionItem extends LoopActionItem implements Block { visitor.visit(enumVariable); } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param loop Loop + * @param variableName Variable name + * @param enumVariable Enumerated variable + * @param commands Commands + */ public ForInActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop, GraphTargetItem variableName, GraphTargetItem enumVariable, List commands) { super(instruction, lineStartIns, loop); this.variableName = variableName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/IfFrameLoadedActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/IfFrameLoadedActionItem.java index 27f4b4656..9e0348b44 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/IfFrameLoadedActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/IfFrameLoadedActionItem.java @@ -40,10 +40,24 @@ import java.util.List; */ public class IfFrameLoadedActionItem extends ActionItem implements Block { + /** + * Actions + */ private final List actions; + /** + * Frame + */ private final GraphTargetItem frame; + /** + * Constructor. + * + * @param frame Frame + * @param actions Actions + * @param instruction Instruction + * @param lineStartIns Line start instruction + */ public IfFrameLoadedActionItem(GraphTargetItem frame, List actions, GraphSourceItem instruction, GraphSourceItem lineStartIns) { super(instruction, lineStartIns, NOPRECEDENCE); this.actions = actions; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/InterfaceActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/InterfaceActionItem.java index 6ef6166c5..ac13ead58 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/InterfaceActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/InterfaceActionItem.java @@ -37,10 +37,22 @@ import java.util.List; */ public class InterfaceActionItem extends ActionItem { + /** + * Name + */ public GraphTargetItem name; + /** + * Super interfaces + */ public List superInterfaces; + /** + * Constructor. + * + * @param name Name + * @param superInterfaces Super interfaces + */ public InterfaceActionItem(GraphTargetItem name, List superInterfaces) { super(null, null, NOPRECEDENCE); this.name = name; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/LoopActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/LoopActionItem.java index 2782b9fd6..bbc814a07 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/LoopActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/LoopActionItem.java @@ -27,8 +27,18 @@ import com.jpexs.decompiler.graph.Loop; */ public abstract class LoopActionItem extends ActionItem { + /*** + * Loop + */ public Loop loop; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param loop Loop + */ public LoopActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop) { super(instruction, lineStartIns, NOPRECEDENCE); this.loop = loop; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TellTargetActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TellTargetActionItem.java index 5b38adbce..3a99610c7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TellTargetActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TellTargetActionItem.java @@ -44,12 +44,29 @@ import java.util.List; */ public class TellTargetActionItem extends ActionItem implements Block { + /** + * Commands + */ public List commands; + /** + * Target + */ public GraphTargetItem target; + /** + * Nested + */ public boolean nested = false; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param target Target + * @param commands Commands + */ public TellTargetActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem target, List commands) { super(instruction, lineStartIns, PRECEDENCE_PRIMARY); this.target = target; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TryActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TryActionItem.java index fde64467e..61f62b323 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TryActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/TryActionItem.java @@ -56,14 +56,29 @@ import java.util.logging.Logger; */ public class TryActionItem extends ActionItem implements Block { + /** + * Try commands + */ public List tryCommands; + /** + * Catch exception names + */ public List catchExceptionNames; + /** + * Catch exception types + */ public List catchExceptionTypes; + /** + * Catch commands + */ public List> catchCommands; + /** + * Finally commands + */ public List finallyCommands; @Override @@ -97,6 +112,15 @@ public class TryActionItem extends ActionItem implements Block { } + /** + * Constructor. + * + * @param tryCommands Try commands + * @param catchExceptionNames Catch exception names + * @param catchExceptionTypes Catch exception types + * @param catchCommands Catch commands + * @param finallyCommands Finally commands + */ public TryActionItem(List tryCommands, List catchExceptionNames, List catchExceptionTypes, List> catchCommands, List finallyCommands) { super(null, null, NOPRECEDENCE); this.tryCommands = tryCommands; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/WithActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/WithActionItem.java index 8e0281a33..c1e3f2c45 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/WithActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/clauses/WithActionItem.java @@ -38,16 +38,36 @@ import java.util.List; */ public class WithActionItem extends ActionItem { + /** + * Scope + */ public GraphTargetItem scope; + /** + * Items + */ public List items; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + * @param items Items + */ public WithActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem scope, List items) { super(instruction, lineStartIns, NOPRECEDENCE); this.scope = scope; this.items = items; } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param scope Scope + */ public WithActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, ActionItem scope) { super(instruction, lineStartIns, NOPRECEDENCE); this.scope = scope; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AddActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AddActionItem.java index 50ddbd9fc..87fc724a3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AddActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AddActionItem.java @@ -41,8 +41,20 @@ import java.util.List; */ public class AddActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Version 2. + */ boolean version2; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + * @param version2 Version 2 + */ public AddActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide, boolean version2) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE, leftSide, rightSide, "+", "", ""); this.version2 = version2; @@ -74,6 +86,14 @@ public class AddActionItem extends BinaryOpItem implements CompoundableBinaryOpA return getResult(rightSide.getResult(), leftSide.getResult(), version2); } + /** + * Gets result. + * + * @param rightResult Right result + * @param leftResult Left result + * @param version2 Version 2 + * @return Result + */ public static Object getResult(Object rightResult, Object leftResult, boolean version2) { if (version2) { if (EcmaScript.type(leftResult) == EcmaType.STRING || EcmaScript.type(rightResult) == EcmaType.STRING) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AndActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AndActionItem.java index bcb78c912..18e9d9bef 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AndActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/AndActionItem.java @@ -35,6 +35,13 @@ import java.util.List; */ public class AndActionItem extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public AndActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_LOGICALAND, leftSide, rightSide, "and", "Boolean", "Boolean"); } @@ -44,6 +51,12 @@ public class AndActionItem extends BinaryOpItem { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Boolean getResult(Object rightResult, Object leftResult) { return EcmaScript.toBoolean(leftResult) && EcmaScript.toBoolean(rightResult); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitAndActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitAndActionItem.java index 12e8e19ed..170c461da 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitAndActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitAndActionItem.java @@ -34,6 +34,13 @@ import java.util.List; */ public class BitAndActionItem extends BitwiseBinaryOpActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public BitAndActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISEAND, leftSide, rightSide, "&", "int", "int"); } @@ -43,6 +50,12 @@ public class BitAndActionItem extends BitwiseBinaryOpActionItem { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static long getResult(Object rightResult, Object leftResult) { return EcmaScript.toInt32(leftResult) & EcmaScript.toInt32(rightResult); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitOrActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitOrActionItem.java index a601db594..8405030d0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitOrActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitOrActionItem.java @@ -34,6 +34,13 @@ import java.util.List; */ public class BitOrActionItem extends BitwiseBinaryOpActionItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public BitOrActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISEOR, leftSide, rightSide, "|", "int", "int"); } @@ -43,6 +50,12 @@ public class BitOrActionItem extends BitwiseBinaryOpActionItem { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static long getResult(Object rightResult, Object leftResult) { return EcmaScript.toInt32(leftResult) | EcmaScript.toInt32(rightResult); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitXorActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitXorActionItem.java index ace753377..9106184c3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitXorActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitXorActionItem.java @@ -37,6 +37,14 @@ import java.util.List; */ public class BitXorActionItem extends BitwiseBinaryOpActionItem { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public BitXorActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISEXOR, leftSide, rightSide, "^", "int", "int"); } @@ -46,6 +54,13 @@ public class BitXorActionItem extends BitwiseBinaryOpActionItem { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static long getResult(Object rightResult, Object leftResult) { return EcmaScript.toInt32(leftResult) ^ EcmaScript.toInt32(rightResult); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitwiseBinaryOpActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitwiseBinaryOpActionItem.java index 51f843d46..28da3ca74 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitwiseBinaryOpActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/BitwiseBinaryOpActionItem.java @@ -31,6 +31,17 @@ import com.jpexs.decompiler.graph.model.LocalData; */ public abstract class BitwiseBinaryOpActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartItem Line start item + * @param precedence Precedence + * @param leftSide Left side + * @param rightSide Right side + * @param operator Operator + * @param coerceLeft Coerce left + * @param coerceRight Coerce right + */ public BitwiseBinaryOpActionItem(GraphSourceItem instruction, GraphSourceItem lineStartItem, int precedence, GraphTargetItem leftSide, GraphTargetItem rightSide, String operator, String coerceLeft, String coerceRight) { super(instruction, lineStartItem, precedence, leftSide, rightSide, operator, coerceLeft, coerceRight); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/DivideActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/DivideActionItem.java index 75c1592d0..ad5e193ec 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/DivideActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/DivideActionItem.java @@ -35,6 +35,13 @@ import java.util.List; */ public class DivideActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public DivideActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_MULTIPLICATIVE, leftSide, rightSide, "/", "Number", "Number"); } @@ -44,6 +51,12 @@ public class DivideActionItem extends BinaryOpItem implements CompoundableBinary return getResult(rightSide.getResultAsNumber(), leftSide.getResultAsNumber()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Double getResult(Double rightResult, Double leftResult) { if (Double.compare(rightResult, 0) == 0) { return leftResult < 0 ? Double.NEGATIVE_INFINITY diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/EqActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/EqActionItem.java index 1760b9a4a..6099a86ce 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/EqActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/EqActionItem.java @@ -38,8 +38,19 @@ import java.util.List; */ public class EqActionItem extends BinaryOpItem implements LogicalOpItem, EqualsTypeItem { + /** + * Version 2 flag. + */ boolean version2; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + * @param version2 Version 2 flag + */ public EqActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide, boolean version2) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "==", "", ""); this.version2 = version2; @@ -50,6 +61,13 @@ public class EqActionItem extends BinaryOpItem implements LogicalOpItem, EqualsT return getResult(rightSide.getResult(), leftSide.getResult(), version2); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @param version2 Version 2 flag + * @return Result + */ public static Boolean getResult(Object rightResult, Object leftResult, boolean version2) { if (version2) { return EcmaScript.equals(true, leftResult, rightResult); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GeActionItem.java index 39d878a9b..33aadf96d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GeActionItem.java @@ -41,8 +41,19 @@ import java.util.List; */ public class GeActionItem extends BinaryOpItem implements LogicalOpItem, Inverted { + /** + * Version 2 flag + */ boolean version2; + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + * @param version2 Version 2 flag + */ public GeActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide, boolean version2) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, ">=", "", ""); this.version2 = version2; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GtActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GtActionItem.java index 06c832930..22f53408a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GtActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/GtActionItem.java @@ -40,6 +40,13 @@ import java.util.List; */ public class GtActionItem extends BinaryOpItem implements LogicalOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public GtActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, ">", "", ""); } @@ -49,6 +56,12 @@ public class GtActionItem extends BinaryOpItem implements LogicalOpItem { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Object getResult(Object rightResult, Object leftResult) { Object ret = EcmaScript.compare(leftResult, rightResult, true); if (ret == Undefined.INSTANCE) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InActionItem.java index 729116732..2552cbd54 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InActionItem.java @@ -32,6 +32,14 @@ import java.util.Set; */ public class InActionItem extends BinaryOpItem { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param name Name + * @param object Object + */ public InActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, ActionItem name, ActionItem object) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, name, object, "in", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InstanceOfActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InstanceOfActionItem.java index c16d2c3aa..66e46d640 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InstanceOfActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/InstanceOfActionItem.java @@ -35,6 +35,13 @@ import java.util.Set; */ public class InstanceOfActionItem extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + * @param type Type + */ public InstanceOfActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value, GraphTargetItem type) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, value, type, "instanceof", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LShiftActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LShiftActionItem.java index 9f1df5260..7fbe4c489 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LShiftActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LShiftActionItem.java @@ -36,6 +36,13 @@ import java.util.List; */ public class LShiftActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public LShiftActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISESHIFT, leftSide, rightSide, "<<", "int", "int"); } @@ -45,6 +52,12 @@ public class LShiftActionItem extends BinaryOpItem implements CompoundableBinary return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static int getResult(Object rightResult, Object leftResult) { return EcmaScript.toInt32(leftResult) << EcmaScript.toInt32(rightResult); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LeActionItem.java index cb1fb2bef..96b3021b1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LeActionItem.java @@ -41,6 +41,13 @@ import java.util.List; */ public class LeActionItem extends BinaryOpItem implements LogicalOpItem, Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public LeActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "<=", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LtActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LtActionItem.java index 4c9c616e9..4b7a13fb8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LtActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/LtActionItem.java @@ -40,8 +40,20 @@ import java.util.List; */ public class LtActionItem extends BinaryOpItem implements LogicalOpItem { + /** + * Version 2 flag + */ boolean version2; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + * @param version2 Version 2 flag + */ public LtActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide, boolean version2) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "<", "", ""); this.version2 = version2; @@ -52,6 +64,14 @@ public class LtActionItem extends BinaryOpItem implements LogicalOpItem { return getResult(rightSide.getResult(), leftSide.getResult(), version2); } + /** + * Gets result. + * + * @param rightResult Right result + * @param leftResult Left result + * @param version2 Version 2 flag + * @return Result + */ public static Object getResult(Object rightResult, Object leftResult, boolean version2) { if (version2) { Object ret = EcmaScript.compare(leftResult, rightResult, true); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/ModuloActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/ModuloActionItem.java index 81bac9459..d4d6f6ed4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/ModuloActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/ModuloActionItem.java @@ -35,6 +35,13 @@ import java.util.List; */ public class ModuloActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public ModuloActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_MULTIPLICATIVE, leftSide, rightSide, "%", "Number", "Number"); } @@ -44,6 +51,12 @@ public class ModuloActionItem extends BinaryOpItem implements CompoundableBinary return getResult(rightSide.getResultAsNumber(), leftSide.getResultAsNumber()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Number getResult(Double rightResult, Double leftResult) { if (Double.isNaN(leftResult) || Double.isNaN(rightResult) || Double.compare(rightResult, 0) == 0) { return Double.NaN; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/MultiplyActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/MultiplyActionItem.java index 851f78385..aac1ed8a2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/MultiplyActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/MultiplyActionItem.java @@ -35,6 +35,13 @@ import java.util.List; */ public class MultiplyActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public MultiplyActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_MULTIPLICATIVE, leftSide, rightSide, "*", "Number", "Number"); } @@ -44,6 +51,12 @@ public class MultiplyActionItem extends BinaryOpItem implements CompoundableBina return getResult(rightSide.getResultAsNumber(), leftSide.getResultAsNumber()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Double getResult(Double rightResult, Double leftResult) { return leftResult * rightResult; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/NeqActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/NeqActionItem.java index 537569755..91b67ce71 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/NeqActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/NeqActionItem.java @@ -39,8 +39,20 @@ import java.util.List; */ public class NeqActionItem extends BinaryOpItem implements LogicalOpItem, Inverted, NotEqualsTypeItem { + /** + * Version 2 flag + */ boolean version2; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + * @param version2 Version 2 flag + */ public NeqActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide, boolean version2) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "!=", "", ""); this.version2 = version2; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/OrActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/OrActionItem.java index 0504a7b19..ad30c5dca 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/OrActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/OrActionItem.java @@ -35,6 +35,13 @@ import java.util.List; */ public class OrActionItem extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public OrActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_LOGICALOR, leftSide, rightSide, "or", "Boolean", "Boolean"); } @@ -44,6 +51,12 @@ public class OrActionItem extends BinaryOpItem { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Boolean getResult(Object rightResult, Object leftResult) { return EcmaScript.toBoolean(leftResult) || EcmaScript.toBoolean(rightResult); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreDecrementActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreDecrementActionItem.java index 9cd3751e5..64b721097 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreDecrementActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreDecrementActionItem.java @@ -45,6 +45,12 @@ import java.util.List; */ public class PreDecrementActionItem extends UnaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PreDecrementActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_UNARY, object, "--", "" /*"Number" Causes unneccessary ++Number(xx) when xx not number*/); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreIncrementActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreIncrementActionItem.java index 632cabf58..d25c26802 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreIncrementActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/PreIncrementActionItem.java @@ -45,6 +45,13 @@ import java.util.List; */ public class PreIncrementActionItem extends UnaryOpItem { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param object Object + */ public PreIncrementActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem object) { super(instruction, lineStartIns, PRECEDENCE_UNARY, object, "++", "" /*"Number" Causes unneccessary ++Number(xx) when xx not number*/); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/RShiftActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/RShiftActionItem.java index 8bedbd9d3..d793f3b41 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/RShiftActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/RShiftActionItem.java @@ -36,6 +36,13 @@ import java.util.List; */ public class RShiftActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public RShiftActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISESHIFT, leftSide, rightSide, ">>", "int", "int"); } @@ -45,6 +52,12 @@ public class RShiftActionItem extends BinaryOpItem implements CompoundableBinary return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static long getResult(Object rightResult, Object leftResult) { long rightResult2 = EcmaScript.toInt32(rightResult) & 0x1f; return EcmaScript.toInt32(leftResult) >> rightResult2; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictEqActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictEqActionItem.java index 68c01e054..300f462cd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictEqActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictEqActionItem.java @@ -37,6 +37,13 @@ import java.util.List; */ public class StrictEqActionItem extends BinaryOpItem implements LogicalOpItem, Inverted, EqualsTypeItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StrictEqActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "===", "", ""); } @@ -46,6 +53,12 @@ public class StrictEqActionItem extends BinaryOpItem implements LogicalOpItem, I return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static boolean getResult(Object rightResult, Object leftResult) { Object x = leftResult; Object y = rightResult; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictNeqActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictNeqActionItem.java index 1e8f50d6f..3b4e4c89b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictNeqActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StrictNeqActionItem.java @@ -38,6 +38,14 @@ import java.util.List; */ public class StrictNeqActionItem extends BinaryOpItem implements LogicalOpItem, Inverted, NotEqualsTypeItem { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StrictNeqActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "!==", "", ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringAddActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringAddActionItem.java index dbefcb74c..8ad076e36 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringAddActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringAddActionItem.java @@ -36,6 +36,13 @@ import java.util.Set; */ public class StringAddActionItem extends BinaryOpItem { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StringAddActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE, leftSide, rightSide, "add", "String", "String"); } @@ -50,6 +57,12 @@ public class StringAddActionItem extends BinaryOpItem { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static String getResult(Object rightResult, Object leftResult) { return EcmaScript.toString(leftResult) + EcmaScript.toString(rightResult); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringEqActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringEqActionItem.java index 1c53d7d56..bf1a50acd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringEqActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringEqActionItem.java @@ -36,6 +36,13 @@ import java.util.Set; */ public class StringEqActionItem extends BinaryOpItem implements Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StringEqActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "eq", "String", "String"); } @@ -50,6 +57,12 @@ public class StringEqActionItem extends BinaryOpItem implements Inverted { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Boolean getResult(Object rightResult, Object leftResult) { return EcmaScript.toString(leftResult).equals(EcmaScript.toString(rightResult)); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGeActionItem.java index 8e6a22c23..b1075f09b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGeActionItem.java @@ -37,6 +37,13 @@ import java.util.Set; */ public class StringGeActionItem extends BinaryOpItem implements Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StringGeActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "ge", "String", "String"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGtActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGtActionItem.java index 12c5fef18..30311e91b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGtActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringGtActionItem.java @@ -38,6 +38,13 @@ import java.util.Set; */ public class StringGtActionItem extends BinaryOpItem implements Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StringGtActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "gt", "String", "String"); } @@ -52,6 +59,12 @@ public class StringGtActionItem extends BinaryOpItem implements Inverted { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static boolean getResult(Object rightResult, Object leftResult) { return EcmaScript.toString(leftResult).compareTo(EcmaScript.toString(rightResult)) > 0; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLeActionItem.java index 1593855f8..b454a5136 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLeActionItem.java @@ -39,6 +39,13 @@ import java.util.Set; */ public class StringLeActionItem extends BinaryOpItem implements Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StringLeActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "le", "String", "String"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLtActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLtActionItem.java index 3ccd3ef37..07965083a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLtActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringLtActionItem.java @@ -36,6 +36,13 @@ import java.util.Set; */ public class StringLtActionItem extends BinaryOpItem implements Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide + */ public StringLtActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "lt", "String", "String"); } @@ -50,6 +57,12 @@ public class StringLtActionItem extends BinaryOpItem implements Inverted { return getResult(rightSide.getResult(), leftSide.getResult()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static boolean getResult(Object rightResult, Object leftResult) { return EcmaScript.toString(leftResult).compareTo(EcmaScript.toString(rightResult)) < 0; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringNeActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringNeActionItem.java index 4dab65d65..a02f1858e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringNeActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/StringNeActionItem.java @@ -36,6 +36,13 @@ import java.util.Set; */ public class StringNeActionItem extends BinaryOpItem implements Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public StringNeActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_EQUALITY, leftSide, rightSide, "ne", "String", "String"); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/SubtractActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/SubtractActionItem.java index 8c3f8968e..c9c1f423b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/SubtractActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/SubtractActionItem.java @@ -38,6 +38,14 @@ import java.util.List; */ public class SubtractActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public SubtractActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_ADDITIVE, leftSide, rightSide, "-", "Number", "Number"); } @@ -47,6 +55,13 @@ public class SubtractActionItem extends BinaryOpItem implements CompoundableBina return getResult(rightSide.getResultAsNumber(), leftSide.getResultAsNumber()); } + /** + * Gets result. + * + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static Double getResult(Double rightResult, Double leftResult) { return leftResult - rightResult; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/URShiftActionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/URShiftActionItem.java index 9fe5f50e1..d0fc1feb5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/URShiftActionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/model/operations/URShiftActionItem.java @@ -35,6 +35,13 @@ import java.util.List; */ public class URShiftActionItem extends BinaryOpItem implements CompoundableBinaryOpAs12 { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public URShiftActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(instruction, lineStartIns, PRECEDENCE_BITWISESHIFT, leftSide, rightSide, ">>>", "Number", "Number"); } @@ -44,6 +51,12 @@ public class URShiftActionItem extends BinaryOpItem implements CompoundableBinar return getResult(rightSide.getResultAsNumber(), leftSide.getResultAsNumber()); } + /** + * Gets result. + * @param rightResult Right result + * @param leftResult Left result + * @return Result + */ public static long getResult(Double rightResult, Double leftResult) { long leftResult2 = ((long) (double) leftResult) & 0xffffffffL; long rightResult2 = ((long) (double) rightResult) & 0x1f; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/ActionParseException.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/ActionParseException.java index 282e537bc..042febf21 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/ActionParseException.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/ActionParseException.java @@ -25,6 +25,11 @@ import com.jpexs.decompiler.flash.ParseException; */ public class ActionParseException extends ParseException { + /** + * Constructs a new parse exception. + * @param text Text of the exception + * @param line Line number where the exception occurred + */ public ActionParseException(String text, long line) { super(text, line); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java index a8d5952c4..f9bef1727 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionScript2Parser.java @@ -178,6 +178,9 @@ import java.util.Map; */ public class ActionScript2Parser { + /** + * Builtin classes that can be casted to + */ public static final List BUILTIN_CASTS = Arrays.asList(new String[]{ "flash.display.BitmapData", "flash.external.ExternalInterface", @@ -227,11 +230,28 @@ public class ActionScript2Parser { "XMLUI" }); + /** + * Swf version + */ private final int swfVersion; + /** + * Swf classes + */ private List swfClasses = new ArrayList<>(); + /** + * Target source + */ private final ASMSource targetSource; + /** + * Charset + */ private String charset; + /** + * Constructor + * @param swf Swf + * @param targetSource Target source + */ public ActionScript2Parser(SWF swf, ASMSource targetSource) { this.swfVersion = swf.version; this.charset = swf.getCharset(); @@ -243,6 +263,10 @@ public class ActionScript2Parser { private final boolean debugMode = false; + /** + * Parse SWF classes + * @param swf SWF + */ private void parseSwfClasses(SWF swf) { Map asms = swf.getASMs(false); for (ASMSource s : asms.values()) { @@ -2104,6 +2128,15 @@ public class ActionScript2Parser { private List constantPool; + /** + * Convert a string to a high-level model. + * @param str The string to convert + * @param constantPool The constant pool to use + * @return The high-level model + * @throws ActionParseException On parse error + * @throws IOException On I/O error + * @throws InterruptedException On interrupt + */ public List treeFromString(String str, List constantPool) throws ActionParseException, IOException, InterruptedException { List retTree = new ArrayList<>(); this.constantPool = constantPool; @@ -2399,6 +2432,16 @@ public class ActionScript2Parser { return ret; } + /** + * Converts a string to a list of actions. + * @param s The string to convert + * @param charset Charset + * @return List of actions + * @throws ActionParseException On parsing error + * @throws IOException On I/O error + * @throws CompilationException On compilation error + * @throws InterruptedException On interrupt + */ public List actionsFromString(String s, String charset) throws ActionParseException, IOException, CompilationException, InterruptedException { try { List constantPool = new ArrayList<>(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.java index aa78cb56d..d96c120e5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/parser/script/ActionSourceGenerator.java @@ -88,21 +88,35 @@ public class ActionSourceGenerator implements SourceGenerator { private final int swfVersion; - private String charset; + private final String charset; private long uniqLast = 0; + /** + * Constructor. + * @param swfVersion SWF version + * @param constantPool Constant pool + * @param charset Charset + */ public ActionSourceGenerator(int swfVersion, List constantPool, String charset) { this.constantPool = constantPool; this.swfVersion = swfVersion; this.charset = charset; } + /** + * Generates unique ID. + * @return Unique ID + */ public String uniqId() { uniqLast++; return "" + uniqLast; } + /** + * Gets charset. + * @return Charset + */ public String getCharset() { return charset; } @@ -115,6 +129,11 @@ public class ActionSourceGenerator implements SourceGenerator { return toActionList(command.toSource(localData, this)); } + /** + * Converts list of GraphSourceItem to list of Action. + * @param items List of GraphSourceItem + * @return List of Action + */ public List toActionList(List items) { List ret = new ArrayList<>(); for (GraphSourceItem s : items) { @@ -205,38 +224,83 @@ public class ActionSourceGenerator implements SourceGenerator { } } + /** + * Gets register variables. + * @param localData Local data + * @return Register variables + */ public HashMap getRegisterVars(SourceGeneratorLocalData localData) { return localData.registerVars; } + /** + * Sets register variables. + * @param localData Local data + * @param value Register variables + */ public void setRegisterVars(SourceGeneratorLocalData localData, HashMap value) { localData.registerVars = value; } + /** + * Sets in function. + * @param localData Local data + * @param value Value + */ public void setInFunction(SourceGeneratorLocalData localData, int value) { localData.inFunction = value; } + /** + * Gets in function. + * @param localData Local data + * @return Value + */ public int isInFunction(SourceGeneratorLocalData localData) { return localData.inFunction; } + /** + * Checks if in method. + * @param localData Local data + * @return True if in method + */ public boolean isInMethod(SourceGeneratorLocalData localData) { return localData.inMethod; } + /** + * Sets in method. + * @param localData Local data + * @param value Value + */ public void setInMethod(SourceGeneratorLocalData localData, boolean value) { localData.inMethod = value; } + /** + * Gets for in level. + * @param localData Local data + * @return For in level + */ public int getForInLevel(SourceGeneratorLocalData localData) { return localData.forInLevel; } + /** + * Sets for in level. + * @param localData Local data + * @param value Value + */ public void setForInLevel(SourceGeneratorLocalData localData, int value) { localData.forInLevel = value; } + /** + * Gets temp register. + * @param localData Local data + * @return Temp register + */ public int getTempRegister(SourceGeneratorLocalData localData) { HashMap registerVars = getRegisterVars(localData); for (int tmpReg = 0; tmpReg < 256; tmpReg++) { @@ -248,6 +312,11 @@ public class ActionSourceGenerator implements SourceGenerator { return 0; //? } + /** + * Releases temp register. + * @param localData Local data + * @param tmp Temp register + */ public void releaseTempRegister(SourceGeneratorLocalData localData, int tmp) { HashMap registerVars = getRegisterVars(localData); registerVars.remove("__temp" + tmp); @@ -356,14 +425,27 @@ public class ActionSourceGenerator implements SourceGenerator { return ret; } + /** + * Gets SWF version. + * @return SWF version + */ public int getSwfVersion() { return swfVersion; } + /** + * Gets constant pool. + * @return Constant pool + */ public List getConstantPool() { return constantPool; } + /** + * Gets Push constant item. + * @param s Constant + * @return Push constant item + */ public DirectValueActionItem pushConstTargetItem(String s) { int index = constantPool.indexOf(s); if (index == -1) { @@ -373,6 +455,11 @@ public class ActionSourceGenerator implements SourceGenerator { return new DirectValueActionItem(null, null, 0, new ConstantIndex(index), constantPool); } + /** + * Gets Push constant action. + * @param s Constant + * @return Push constant action + */ public ActionPush pushConst(String s) { int index = constantPool.indexOf(s); if (index == -1) { @@ -389,6 +476,18 @@ public class ActionSourceGenerator implements SourceGenerator { return ret; } + /** + * Generates traits. + * @param localData Local data + * @param isInterface Is interface + * @param name Name + * @param extendsVal Extends value + * @param implementsStr Implements + * @param traits Traits + * @param traitsStatic Static traits + * @return List of GraphSourceItem + * @throws CompilationException On compilation error + */ public List generateTraits(SourceGeneratorLocalData localData, boolean isInterface, GraphTargetItem name, GraphTargetItem extendsVal, List implementsStr, List> traits, List traitsStatic) throws CompilationException { List extendsStr = getVarParts(extendsVal); List ret = new ArrayList<>(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscateJump.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscateJump.java index 457a9caf8..9802db0c1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscateJump.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscateJump.java @@ -28,10 +28,22 @@ import java.io.IOException; */ public class ActionDeobfuscateJump extends ActionJump { + /** + * Constructor. + * @param offset Jump offset + * @param charset Charset + */ public ActionDeobfuscateJump(int offset, String charset) { super(2, charset); } + /** + * Constructor. + * @param lexer Lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionDeobfuscateJump(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(lexer, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscatePop.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscatePop.java index dba4f03aa..c82652c72 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscatePop.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionDeobfuscatePop.java @@ -29,6 +29,9 @@ import java.util.List; */ public class ActionDeobfuscatePop extends ActionPop { + /** + * Constructor. + */ public ActionDeobfuscatePop() { } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionEnd.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionEnd.java index da99b466a..912f352b2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionEnd.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionEnd.java @@ -35,6 +35,10 @@ import java.util.Map; */ public class ActionEnd extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionEnd(String charset) { super(0, 0, charset); setIgnored(true, 0); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionNop.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionNop.java index 5338f5499..82457381c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionNop.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionNop.java @@ -34,10 +34,19 @@ import java.util.Map; */ public class ActionNop extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionNop(String charset) { super(-1, 0, charset); } + /** + * Constructor. + * @param actionCode Action code + * @param charset Charset + */ protected ActionNop(int actionCode, String charset) { super(actionCode, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionUnknown.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionUnknown.java index 41ea6ac4e..1302ebad1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionUnknown.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/special/ActionUnknown.java @@ -34,6 +34,12 @@ import java.util.Map; */ public class ActionUnknown extends ActionNop { + /** + * Constructor. + * @param actionCode Action code + * @param actionLength Action length + * @param charset Charset + */ public ActionUnknown(int actionCode, int actionLength, String charset) { super(actionCode, charset); this.actionLength = actionLength; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGetURL.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGetURL.java index a3d9b97e5..5fee92400 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGetURL.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGetURL.java @@ -50,8 +50,14 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionGetURL extends Action { + /** + * URL string + */ public String urlString; + /** + * Target string + */ public String targetString; @Override @@ -60,12 +66,25 @@ public class ActionGetURL extends Action { return true; } + /** + * Constructor + * @param urlString URL string + * @param targetString Target string + * @param charset Charset + */ public ActionGetURL(String urlString, String targetString, String charset) { super(0x83, 0, charset); this.urlString = urlString; this.targetString = targetString; } + /** + * Constructor + * @param actionLength Action length + * @param sis SWF input stream + * @param version SWF version + * @throws IOException On I/O error + */ public ActionGetURL(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x83, actionLength, sis.getCharset()); //byte[] data = sis.readBytes(actionLength); @@ -74,6 +93,13 @@ public class ActionGetURL extends Action { targetString = sis.readString("targetString"); } + /** + * Constructor + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionGetURL(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x83, 0, charset); urlString = lexString(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGoToLabel.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGoToLabel.java index 591551f0a..b707c2a1c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGoToLabel.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGoToLabel.java @@ -45,13 +45,28 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionGoToLabel extends Action { + /** + * Label + */ public String label; + /** + * Constructor + * @param label Label + * @param charset Charset + */ public ActionGoToLabel(String label, String charset) { super(0x8C, 0, charset); this.label = label; } + /** + * Constructor + * @param actionLength Length of action + * @param sis SWF input stream + * @param version SWF version + * @throws IOException On I/O error + */ public ActionGoToLabel(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x8C, actionLength, sis.getCharset()); //byte[] data = sis.readBytes(actionLength); @@ -85,6 +100,13 @@ public class ActionGoToLabel extends Action { return Utf8Helper.getBytesLength(label) + 1; } + /** + * Constructor + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionGoToLabel(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x8C, -1, charset); label = lexString(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGotoFrame.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGotoFrame.java index 9d8fabccf..a1c4b8fd8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGotoFrame.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionGotoFrame.java @@ -43,8 +43,16 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionGotoFrame extends Action { + /** + * Frame number + */ public int frame; + /** + * Constructor + * @param frame Frame number + * @param charset Charset + */ public ActionGotoFrame(int frame, String charset) { super(0x81, 2, charset); this.frame = frame; @@ -56,6 +64,13 @@ public class ActionGotoFrame extends Action { return true; } + /** + * Constructor + * + * @param actionLength Length of action + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionGotoFrame(int actionLength, SWFInputStream sis) throws IOException { super(0x81, actionLength, sis.getCharset()); frame = sis.readUI16("frame"); @@ -81,6 +96,13 @@ public class ActionGotoFrame extends Action { return 2; } + /** + * Constructor + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionGotoFrame(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x81, 0, charset); frame = (int) lexLong(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionNextFrame.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionNextFrame.java index ae6931c95..6444ca7b9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionNextFrame.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionNextFrame.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionNextFrame extends Action { + /** + * Constructor + */ public ActionNextFrame() { super(0x04, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPlay.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPlay.java index d4c448d83..a8ca596f3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPlay.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPlay.java @@ -42,6 +42,9 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionPlay extends Action { + /** + * Constructor + */ public ActionPlay() { super(0x06, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPrevFrame.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPrevFrame.java index 35a54b873..83d0cd215 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPrevFrame.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionPrevFrame.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionPrevFrame extends Action { + /** + * Constructor + */ public ActionPrevFrame() { super(0x05, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionSetTarget.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionSetTarget.java index c570f8381..3691683da 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionSetTarget.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionSetTarget.java @@ -44,8 +44,17 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionSetTarget extends Action { + /** + * Target name + */ public String targetName; + /** + * Constructor + * + * @param targetName Target name + * @param charset Charset + */ public ActionSetTarget(String targetName, String charset) { super(0x8B, 0, charset); this.targetName = targetName; @@ -62,6 +71,14 @@ public class ActionSetTarget extends Action { return true; } + /** + * Constructor + * + * @param actionLength Length of action + * @param sis SWF input stream + * @param version SWF version + * @throws IOException On I/O error + */ public ActionSetTarget(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x8B, actionLength, sis.getCharset()); //byte[] data = sis.readBytes(actionLength); @@ -89,6 +106,14 @@ public class ActionSetTarget extends Action { return Utf8Helper.getBytesLength(targetName) + 1; } + /** + * Constructor + * + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionSetTarget(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x8B, -1, charset); targetName = lexString(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStop.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStop.java index 3f2245d6c..b0087f584 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStop.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStop.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionStop extends Action { + /** + * Constructor + */ public ActionStop() { super(0x07, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStopSounds.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStopSounds.java index f6d99ff70..bc25b2fbf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStopSounds.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionStopSounds.java @@ -38,6 +38,9 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionStopSounds extends Action { + /** + * Constructor + */ public ActionStopSounds() { super(0x09, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionToggleQuality.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionToggleQuality.java index 209d3bd34..01380afdc 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionToggleQuality.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionToggleQuality.java @@ -38,6 +38,9 @@ import java.util.Map; @SWFVersion(from = 3) public class ActionToggleQuality extends Action { + /** + * Constructor + */ public ActionToggleQuality() { super(0x08, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionWaitForFrame.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionWaitForFrame.java index fe6cdb90a..d91dc6fd7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionWaitForFrame.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf3/ActionWaitForFrame.java @@ -52,10 +52,19 @@ import java.util.Set; @SWFVersion(from = 3) public class ActionWaitForFrame extends Action implements ActionStore { + /** + * Frame number + */ public int frame; + /** + * Skip count + */ public int skipCount; + /** + * Skipped actions + */ public List skipped; @Override @@ -64,6 +73,12 @@ public class ActionWaitForFrame extends Action implements ActionStore { return true; } + /** + * Constructor + * @param actionLength Length of action + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionWaitForFrame(int actionLength, SWFInputStream sis) throws IOException { super(0x8A, actionLength, sis.getCharset()); frame = sis.readUI16("frame"); @@ -98,6 +113,13 @@ public class ActionWaitForFrame extends Action implements ActionStore { return 3; } + /** + * Constructor + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionWaitForFrame(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x8A, -1, charset); frame = (int) lexLong(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAdd.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAdd.java index 5683140f3..c2f53f956 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAdd.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAdd.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionAdd extends Action { + /** + * Constructor + */ public ActionAdd() { super(0x0A, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAnd.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAnd.java index 18629c994..00fed7aa9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAnd.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAnd.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionAnd extends Action { + /** + * Constructor + */ public ActionAnd() { super(0x10, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAsciiToChar.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAsciiToChar.java index a5ae78a65..ae61f9ce7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAsciiToChar.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionAsciiToChar.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionAsciiToChar extends Action { + /** + * Constructor + */ public ActionAsciiToChar() { super(0x33, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCall.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCall.java index eb6bb1209..6155c01df 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCall.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCall.java @@ -40,10 +40,19 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionCall extends Action { + /** + * Constructor + */ public ActionCall() { super(0x9E, 0, Utf8Helper.charsetName); } + /** + * Constructor + * + * @param actionLength Action length + * @param charset Charset + */ public ActionCall(int actionLength, String charset) { super(0x9E, actionLength, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCharToAscii.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCharToAscii.java index 25dfe90b1..e8d491960 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCharToAscii.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCharToAscii.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionCharToAscii extends Action { + /** + * Constructor + */ public ActionCharToAscii() { super(0x32, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCloneSprite.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCloneSprite.java index 2558b39da..d94fcaf6e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCloneSprite.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionCloneSprite.java @@ -42,6 +42,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionCloneSprite extends Action { + /** + * Constructor + */ public ActionCloneSprite() { super(0x24, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionDivide.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionDivide.java index 9bcef8d57..9e68428a6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionDivide.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionDivide.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionDivide extends Action { + /** + * Constructor + */ public ActionDivide() { super(0x0D, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEndDrag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEndDrag.java index ae842d77a..f7bafad77 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEndDrag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEndDrag.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionEndDrag extends Action { + /** + * Constructor + */ public ActionEndDrag() { super(0x28, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEquals.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEquals.java index 2ed12cd66..a197bc1dc 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEquals.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionEquals.java @@ -38,6 +38,10 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionEquals extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionEquals(String charset) { super(0x0E, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetProperty.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetProperty.java index be59490ad..8fece8b21 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetProperty.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetProperty.java @@ -45,6 +45,9 @@ import java.util.logging.Logger; @SWFVersion(from = 4) public class ActionGetProperty extends Action { + /** + * Constructor + */ public ActionGetProperty() { super(0x22, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetTime.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetTime.java index adcb3bd7d..2f37817ed 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetTime.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetTime.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionGetTime extends Action { + /** + * Constructor + */ public ActionGetTime() { super(0x34, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetURL2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetURL2.java index 52e8fd132..3d45e2148 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetURL2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetURL2.java @@ -58,19 +58,44 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionGetURL2 extends Action { + /** + * Send variables method + */ public int sendVarsMethod; + /** + * GET method + */ public static final int GET = 1; + /** + * POST method + */ public static final int POST = 2; + /** + * Load target flag + */ public boolean loadTargetFlag; + /** + * Load variables flag + */ public boolean loadVariablesFlag; + /** + * Reserved + */ @Reserved public int reserved; + /** + * Constructor + * @param sendVarsMethod Send variables method + * @param loadVariablesFlag Load variables flag + * @param loadTargetFlag Load target flag + * @param charset Charset + */ public ActionGetURL2(int sendVarsMethod, boolean loadVariablesFlag, boolean loadTargetFlag, String charset) { super(0x9A, 1, charset); this.loadTargetFlag = loadTargetFlag; @@ -78,6 +103,13 @@ public class ActionGetURL2 extends Action { this.sendVarsMethod = sendVarsMethod; } + /** + * Constructor + * @param actionLength Action length + * @param sis SWF input stream + * @param charset Charset + * @throws IOException Error reading data + */ public ActionGetURL2(int actionLength, SWFInputStream sis, String charset) throws IOException { super(0x9A, actionLength, charset); loadVariablesFlag = sis.readUB(1, "loadVariablesFlag") == 1; @@ -109,6 +141,13 @@ public class ActionGetURL2 extends Action { return 1; } + /** + * Constructor + * @param lexer Lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On error parsing action + */ public ActionGetURL2(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x9A, -1, charset); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetVariable.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetVariable.java index 626fe1cf1..32193b5c1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetVariable.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGetVariable.java @@ -45,6 +45,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionGetVariable extends Action { + /** + * Constructor. + */ public ActionGetVariable() { super(0x1C, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGotoFrame2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGotoFrame2.java index bcdc22b65..c9079b5ee 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGotoFrame2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionGotoFrame2.java @@ -46,15 +46,31 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionGotoFrame2 extends Action { + /** + * Scene bias flag + */ boolean sceneBiasFlag; + /** + * Play flag + */ boolean playFlag; + /** + * Scene bias + */ public int sceneBias; @Reserved int reserved; + /** + * Constructor. + * @param playFlag Play flag + * @param sceneBiasFlag Scene bias flag + * @param sceneBias Scene bias + * @param charset Charset + */ public ActionGotoFrame2(boolean playFlag, boolean sceneBiasFlag, int sceneBias, String charset) { super(0x9F, 0, charset); this.sceneBiasFlag = sceneBiasFlag; @@ -62,6 +78,12 @@ public class ActionGotoFrame2 extends Action { this.sceneBias = sceneBias; } + /** + * Constructor. + * @param actionLength Action length + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionGotoFrame2(int actionLength, SWFInputStream sis) throws IOException { super(0x9F, actionLength, sis.getCharset()); reserved = (int) sis.readUB(6, "reserved"); @@ -102,6 +124,13 @@ public class ActionGotoFrame2 extends Action { return "GotoFrame2 " + sceneBiasFlag + ", " + playFlag + ", " + (sceneBiasFlag ? ", " + sceneBias : ""); } + /** + * Constructor. + * @param lexer Lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionGotoFrame2(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x9F, -1, charset); sceneBiasFlag = lexBoolean(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java index 571ce3ced..48af550c3 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionIf.java @@ -42,27 +42,60 @@ import java.util.logging.Logger; @SWFVersion(from = 4) public class ActionIf extends Action { + /** + * Offset to jump to + */ private int offset; + /** + * Identifier + */ public String identifier; + /** + * Jump used + */ public boolean jumpUsed = true; + /** + * Ignore used + */ public boolean ignoreUsed = true; + /** + * Gets the jump offset + * + * @return Offset + */ public int getJumpOffset() { return offset; } + /** + * Sets the jump offset + * + * @param offset Offset + */ public final void setJumpOffset(int offset) { this.offset = offset; } + /** + * Constructor + * @param offset Offset + * @param charset Charset + */ public ActionIf(int offset, String charset) { super(0x9D, 2, charset); setJumpOffset(offset); } + /** + * Constructor + * @param actionLength Action length + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionIf(int actionLength, SWFInputStream sis) throws IOException { super(0x9D, actionLength, sis.getCharset()); setJumpOffset(sis.readSI16("offset")); @@ -73,6 +106,10 @@ public class ActionIf extends Action { refs.add(getTargetAddress()); } + /** + * Gets the target address + * @return Address + */ public long getTargetAddress() { return getAddress() + 5 /*getTotalActionLength()*/ + offset; } @@ -99,6 +136,13 @@ public class ActionIf extends Action { return "If loc" + ofsStr + (!jumpUsed ? " ;compileTimeIgnore" : (!ignoreUsed ? " ;compileTimeJump" : "")); } + /** + * Constructor + * @param lexer Lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionIf(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x9D, 2, charset); identifier = lexIdentifier(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionJump.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionJump.java index 6fee873f3..4c3fc5343 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionJump.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionJump.java @@ -41,27 +41,58 @@ import java.util.logging.Logger; @SWFVersion(from = 4) public class ActionJump extends Action { + /** + * Offset to jump to + */ private int offset; + /** + * Identifier + */ public String identifier; + /** + * Is continue + */ public boolean isContinue = false; + /** + * Is break + */ public boolean isBreak = false; + /** + * Gets the jump offset + * @return Offset + */ public int getJumpOffset() { return offset; } + /** + * Sets the jump offset + * @param offset Offset + */ public final void setJumpOffset(int offset) { this.offset = offset; } + /** + * Constructor + * @param offset Offset + * @param charset Charset + */ public ActionJump(int offset, String charset) { super(0x99, 2, charset); setJumpOffset(offset); } + /** + * Constructor + * @param actionLength Action length + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionJump(int actionLength, SWFInputStream sis) throws IOException { super(0x99, actionLength, sis.getCharset()); setJumpOffset(sis.readSI16("offset")); @@ -72,6 +103,10 @@ public class ActionJump extends Action { refs.add(getTargetAddress()); } + /** + * Gets the target address + * @return Address + */ public long getTargetAddress() { return getAddress() + 5 /*getTotalActionLength()*/ + offset; } @@ -98,6 +133,13 @@ public class ActionJump extends Action { return "Jump loc" + ofsStr; } + /** + * Constructor + * @param lexer Lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionJump(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x99, 2, charset); identifier = lexIdentifier(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionLess.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionLess.java index 434b41da4..92375a01b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionLess.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionLess.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionLess extends Action { + /** + * Constructor. + */ public ActionLess() { super(0x0F, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBAsciiToChar.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBAsciiToChar.java index e33a793ed..50e6d0d1e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBAsciiToChar.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBAsciiToChar.java @@ -40,6 +40,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionMBAsciiToChar extends Action { + /** + * Constructor. + */ public ActionMBAsciiToChar() { super(0x37, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBCharToAscii.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBCharToAscii.java index b0ed79b24..49b7df75e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBCharToAscii.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBCharToAscii.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionMBCharToAscii extends Action { + /** + * Constructor. + */ public ActionMBCharToAscii() { super(0x36, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringExtract.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringExtract.java index 2f50a4cc4..94bba8233 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringExtract.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringExtract.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionMBStringExtract extends Action { + /** + * Constructor. + */ public ActionMBStringExtract() { super(0x35, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringLength.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringLength.java index 5a8618630..93a6ee617 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringLength.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMBStringLength.java @@ -40,6 +40,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionMBStringLength extends Action { + /** + * Constructor. + */ public ActionMBStringLength() { super(0x31, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMultiply.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMultiply.java index 512f3abf0..c182dd91c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMultiply.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionMultiply.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionMultiply extends Action { + /** + * Constructor. + */ public ActionMultiply() { super(0x0C, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionNot.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionNot.java index 6e6b09279..2147645de 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionNot.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionNot.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionNot extends Action { + /** + * Constructor. + */ public ActionNot() { super(0x12, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionOr.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionOr.java index 10b79de01..421f6e3b9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionOr.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionOr.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionOr extends Action { + /** + * Constructor. + */ public ActionOr() { super(0x11, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java index 95205f264..e7f539c31 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPop.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionPop extends Action { + /** + * Constructor. + */ public ActionPop() { super(0x17, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java index d380e8ba6..4329c72eb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java @@ -64,10 +64,19 @@ import java.util.Set; @SWFVersion(from = 4) public class ActionPush extends Action { + /** + * Values to push + */ public List values; + /** + * Replacement values, if not null, values will be replaced by this list + */ public List replacement; + /** + * Constant pool + */ public List constantPool; /** @@ -76,6 +85,14 @@ public class ActionPush extends Action { */ public static final int MAX_CONSTANT_INDEX_TYPE8 = 255; + /** + * Constructor + * + * @param actionLength Action length + * @param sis SWF input stream + * @param version SWF version + * @throws IOException On I/O error + */ public ActionPush(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x96, actionLength, sis.getCharset()); int type; @@ -231,6 +248,12 @@ public class ActionPush extends Action { return res; } + /** + * Checks if the value is valid + * + * @param value Value + * @return True if valid + */ public static boolean isValidValue(Object value) { if (value instanceof String) { for (char ch : ((String) value).toCharArray()) { @@ -248,6 +271,12 @@ public class ActionPush extends Action { return true; } + /** + * Constructor + * + * @param value Value + * @param charset Charset + */ public ActionPush(Object value, String charset) { super(0x96, 0, charset); this.values = new ArrayList<>(); @@ -255,6 +284,12 @@ public class ActionPush extends Action { updateLength(); } + /** + * Constructor + * + * @param values Values + * @param charset Charset + */ public ActionPush(Object[] values, String charset) { super(0x96, 0, charset); this.values = new ArrayList<>(); @@ -262,6 +297,15 @@ public class ActionPush extends Action { updateLength(); } + /** + * Constructor + * + * @param lexer Lexer + * @param constantPool Constant pool + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionPush(FlasmLexer lexer, List constantPool, String charset) throws IOException, ActionParseException { super(0x96, 0, charset); this.constantPool = constantPool; @@ -323,6 +367,14 @@ public class ActionPush extends Action { return writer; } + /** + * Converts the parameters to string - use replacements when available. + * @param container Container + * @param knownAddreses Known addresses + * @param exportMode Export mode + * @param writer Writer + * @return Writer + */ public GraphTextWriter paramsToStringReplaced(List container, Set knownAddreses, ScriptExportMode exportMode, GraphTextWriter writer) { if (replacement == null || replacement.size() < values.size()) { return paramsToString(writer); @@ -334,6 +386,11 @@ public class ActionPush extends Action { return writer; } + /** + * To string without quotes. + * @param i Index + * @return String + */ public String toStringNoQ(int i) { String ret; Object value = values.get(i); @@ -349,6 +406,12 @@ public class ActionPush extends Action { return ret; } + /** + * Converts the parameters to string. + * + * @param writer Writer + * @return Writer + */ public GraphTextWriter paramsToString(GraphTextWriter writer) { for (int i = 0; i < values.size(); i++) { if (i > 0) { @@ -359,6 +422,11 @@ public class ActionPush extends Action { return writer; } + /** + * Converts the parameter to string. + * @param i Index + * @return String + */ public String toString(int i) { String ret; Object value = values.get(i); @@ -384,6 +452,11 @@ public class ActionPush extends Action { return writer.toString(); } + /** + * To string. + * @param writer Writer + * @return Writer + */ public GraphTextWriter toString(GraphTextWriter writer) { writer.appendNoHilight("Push "); paramsToString(writer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRandomNumber.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRandomNumber.java index abc17758c..31b3fa44e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRandomNumber.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRandomNumber.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionRandomNumber extends Action { + /** + * Constructor. + */ public ActionRandomNumber() { super(0x30, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRemoveSprite.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRemoveSprite.java index 3bb386f4a..225ef3c39 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRemoveSprite.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionRemoveSprite.java @@ -40,6 +40,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionRemoveSprite extends Action { + /** + * Constructor. + */ public ActionRemoveSprite() { super(0x25, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetProperty.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetProperty.java index fe19873c4..bd472578b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetProperty.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetProperty.java @@ -53,6 +53,9 @@ import java.util.logging.Logger; @SWFVersion(from = 4) public class ActionSetProperty extends Action { + /** + * Constructor. + */ public ActionSetProperty() { super(0x23, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetTarget2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetTarget2.java index d4d6192e2..8f9e59016 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetTarget2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetTarget2.java @@ -38,6 +38,10 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionSetTarget2 extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionSetTarget2(String charset) { super(0x20, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetVariable.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetVariable.java index a07680dba..5cce41492 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetVariable.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSetVariable.java @@ -56,6 +56,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionSetVariable extends Action implements StoreTypeAction { + /** + * Constructor. + */ public ActionSetVariable() { super(0x1D, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStartDrag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStartDrag.java index 6fcad70c8..7362298ba 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStartDrag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStartDrag.java @@ -43,6 +43,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionStartDrag extends Action { + /** + * Constructor. + */ public ActionStartDrag() { super(0x27, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringAdd.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringAdd.java index e16ff4d5a..f5877326a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringAdd.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringAdd.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionStringAdd extends Action { + /** + * Constructor. + */ public ActionStringAdd() { super(0x21, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringEquals.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringEquals.java index 144f9ae27..a9a1ca001 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringEquals.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringEquals.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionStringEquals extends Action { + /** + * Constructor. + */ public ActionStringEquals() { super(0x13, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringExtract.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringExtract.java index 0ad73ac59..5f181b23a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringExtract.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringExtract.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionStringExtract extends Action { + /** + * Constructor. + */ public ActionStringExtract() { super(0x15, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLength.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLength.java index f6aba1462..9fcf85523 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLength.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLength.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionStringLength extends Action { + /** + * Constructor. + */ public ActionStringLength() { super(0x14, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLess.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLess.java index 37d8bb7cc..1bf201ee4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLess.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionStringLess.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionStringLess extends Action { + /** + * Constructor. + */ public ActionStringLess() { super(0x29, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSubtract.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSubtract.java index 1578797ff..493486752 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSubtract.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionSubtract.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionSubtract extends Action { + /** + * Constructor. + */ public ActionSubtract() { super(0x0B, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionToInteger.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionToInteger.java index b21622470..f147c262e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionToInteger.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionToInteger.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionToInteger extends Action { + /** + * Constructor. + */ public ActionToInteger() { super(0x18, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionTrace.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionTrace.java index 7300f8ba9..8c620f079 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionTrace.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionTrace.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 4) public class ActionTrace extends Action { + /** + * Constructor. + */ public ActionTrace() { super(0x26, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionWaitForFrame2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionWaitForFrame2.java index a15643009..4e8fa7f47 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionWaitForFrame2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf4/ActionWaitForFrame2.java @@ -52,10 +52,21 @@ import java.util.Set; @SWFVersion(from = 4) public class ActionWaitForFrame2 extends Action implements ActionStore { + /** + * Number of actions to skip + */ public int skipCount; - List skipped; + /** + * Skipped actions + */ + public List skipped; + /** + * Constructor. + * @param skipCount Number of actions to skip + * @param charset Charset + */ public ActionWaitForFrame2(int skipCount, String charset) { super(0x8D, 1, charset); this.skipCount = skipCount; @@ -73,6 +84,12 @@ public class ActionWaitForFrame2 extends Action implements ActionStore { skipCount = store.size(); } + /** + * Constructor. + * @param actionLength Action length + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionWaitForFrame2(int actionLength, SWFInputStream sis) throws IOException { super(0x8D, actionLength, sis.getCharset()); skipCount = sis.readUI8("skipCount"); @@ -107,6 +124,13 @@ public class ActionWaitForFrame2 extends Action implements ActionStore { }*/ } + /** + * Constructor. + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionWaitForFrame2(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x8D, -1, charset); skipCount = (int) lexLong(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionAdd2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionAdd2.java index 57da93eb7..7704ee315 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionAdd2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionAdd2.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionAdd2 extends Action { + /** + * Constructor. + */ public ActionAdd2() { super(0x47, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitAnd.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitAnd.java index 5c384d6a6..1f487bcb7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitAnd.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitAnd.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionBitAnd extends Action { + /** + * Constructor. + */ public ActionBitAnd() { super(0x60, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitLShift.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitLShift.java index 637b055a6..c6fa9f6ad 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitLShift.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitLShift.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionBitLShift extends Action { + /** + * Constructor. + */ public ActionBitLShift() { super(0x63, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitOr.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitOr.java index 7fac98d9b..8b4e34ccb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitOr.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitOr.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionBitOr extends Action { + /** + * Constructor. + */ public ActionBitOr() { super(0x61, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitRShift.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitRShift.java index b7bc1434d..cb585e66a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitRShift.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitRShift.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionBitRShift extends Action { + /** + * Constructor. + */ public ActionBitRShift() { super(0x64, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitURShift.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitURShift.java index 372149083..19de61a7c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitURShift.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitURShift.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionBitURShift extends Action { + /** + * Constructor. + */ public ActionBitURShift() { super(0x65, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitXor.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitXor.java index 1b3ea9233..9268b72bb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitXor.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionBitXor.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionBitXor extends Action { + /** + * Constructor. + */ public ActionBitXor() { super(0x62, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallFunction.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallFunction.java index afd2b07e9..dd2a33b45 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallFunction.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallFunction.java @@ -43,6 +43,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionCallFunction extends Action { + /** + * Constructor. + */ public ActionCallFunction() { super(0x3D, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallMethod.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallMethod.java index 9a49a459f..d4fd8aba4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallMethod.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionCallMethod.java @@ -42,6 +42,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionCallMethod extends Action { + /** + * Constructor. + */ public ActionCallMethod() { super(0x52, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionConstantPool.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionConstantPool.java index 3eca84817..31cff02af 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionConstantPool.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionConstantPool.java @@ -45,13 +45,29 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionConstantPool extends Action { + /** + * Constant pool + */ public List constantPool = new ArrayList<>(); + + /** + * Constructor. + * @param constantPool Constant pool + * @param charset Charset + */ public ActionConstantPool(List constantPool, String charset) { super(0x88, 0, charset); this.constantPool = constantPool; } + /** + * Constructor. + * @param actionLength Action length + * @param sis SWF input stream + * @param version SWF version + * @throws IOException On I/O error + */ public ActionConstantPool(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x88, actionLength, sis.getCharset()); //sis = new SWFInputStream(new ByteArrayInputStream(sis.readBytes(actionLength)), version); @@ -61,6 +77,13 @@ public class ActionConstantPool extends Action { } } + /** + * Constructor. + * @param lexer Lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionConstantPool(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x88, 0, charset); boolean first = true; @@ -102,10 +125,20 @@ public class ActionConstantPool extends Action { return calculateSize(constantPool); } + /** + * Calculates size of string converted to bytes + * @param str String + * @return Size + */ public static int calculateSize(String str) { return Utf8Helper.getBytesLength(str) + 1; } + /** + * Calculates the size of the action converted to bytes + * @param strings Strings + * @return Size + */ public static int calculateSize(List strings) { int res = 2; for (String s : strings) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDecrement.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDecrement.java index 788fdbb3f..b1252d3bf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDecrement.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDecrement.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionDecrement extends Action { + /** + * Constructor. + */ public ActionDecrement() { super(0x51, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineFunction.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineFunction.java index 86d0cf579..34191f04f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineFunction.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineFunction.java @@ -52,19 +52,39 @@ import java.util.Set; @SWFVersion(from = 5) public class ActionDefineFunction extends Action implements GraphSourceItemContainer { + /** + * Function name + */ public String functionName; + /** + * Replaced function name + */ public String replacedFunctionName; + /** + * Parameter names + */ public List paramNames = new ArrayList<>(); + /** + * Replaced parameter names + */ public List replacedParamNames; - //public List code; + /** + * Code size + */ public int codeSize; + /** + * Version + */ private int version; + /** + * Constant pool + */ public List constantPool; @Override @@ -76,6 +96,14 @@ public class ActionDefineFunction extends Action implements GraphSourceItemConta return true; } + /** + * Constructor. + * @param functionName Function name + * @param paramNames Parameter names + * @param codeSize Code size + * @param version Version + * @param charset Charset + */ public ActionDefineFunction(String functionName, List paramNames, int codeSize, int version, String charset) { super(0x9B, 0, charset); this.functionName = functionName; @@ -84,6 +112,13 @@ public class ActionDefineFunction extends Action implements GraphSourceItemConta this.paramNames = paramNames; } + /** + * Constructor. + * @param actionLength Action length + * @param sis SWF input stream + * @param version Version + * @throws IOException On I/O error + */ public ActionDefineFunction(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x9B, actionLength, sis.getCharset()); this.version = version; @@ -95,6 +130,13 @@ public class ActionDefineFunction extends Action implements GraphSourceItemConta codeSize = sis.readUI16("codeSize"); } + /** + * Constructor. + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionDefineFunction(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x9B, -1, charset); functionName = lexString(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal.java index b7199ad8c..d89c4251a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal.java @@ -42,6 +42,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionDefineLocal extends Action { + /** + * Constructor. + */ public ActionDefineLocal() { super(0x3C, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal2.java index 385b1e306..ce692b6b1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDefineLocal2.java @@ -41,6 +41,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionDefineLocal2 extends Action { + /** + * Constructor. + */ public ActionDefineLocal2() { super(0x41, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java index 44160482a..f17451872 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionDelete extends Action { + /** + * Constructor. + */ public ActionDelete() { super(0x3A, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java index ee35897f3..8149b3e40 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionDelete2.java @@ -41,6 +41,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionDelete2 extends Action { + /** + * Constructor. + */ public ActionDelete2() { super(0x3B, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEnumerate.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEnumerate.java index c5b54e918..ee36ccf0a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEnumerate.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEnumerate.java @@ -42,6 +42,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionEnumerate extends Action { + /** + * Constructor. + */ public ActionEnumerate() { super(0x46, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEquals2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEquals2.java index 49d9afd64..32ab8933f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEquals2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionEquals2.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionEquals2 extends Action { + /** + * Constructor. + */ public ActionEquals2() { super(0x49, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionGetMember.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionGetMember.java index 626fed778..918f21990 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionGetMember.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionGetMember.java @@ -41,6 +41,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionGetMember extends Action { + /** + * Constructor. + */ public ActionGetMember() { super(0x4E, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionIncrement.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionIncrement.java index de67f3313..7dab93425 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionIncrement.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionIncrement.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionIncrement extends Action { + /** + * Constructor. + */ public ActionIncrement() { super(0x50, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitArray.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitArray.java index ce42e5ced..6698d9cd5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitArray.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitArray.java @@ -41,6 +41,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionInitArray extends Action { + /** + * Constructor. + */ public ActionInitArray() { super(0x42, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitObject.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitObject.java index ddc560ae1..2a6b885b1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitObject.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionInitObject.java @@ -41,6 +41,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionInitObject extends Action { + /** + * Constructor. + */ public ActionInitObject() { super(0x43, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionLess2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionLess2.java index 85a9995a1..daa16a526 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionLess2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionLess2.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionLess2 extends Action { + /** + * Constructor. + */ public ActionLess2() { super(0x48, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionModulo.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionModulo.java index 4cf949a9c..b041c96e6 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionModulo.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionModulo.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionModulo extends Action { + /** + * Constructor. + */ public ActionModulo() { super(0x3F, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewMethod.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewMethod.java index bec83cda7..023f8d190 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewMethod.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewMethod.java @@ -42,6 +42,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionNewMethod extends Action { + /** + * Constructor. + */ public ActionNewMethod() { super(0x53, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewObject.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewObject.java index e7ca0038d..d477c4704 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewObject.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionNewObject.java @@ -41,6 +41,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionNewObject extends Action { + /** + * Constructor. + */ public ActionNewObject() { super(0x40, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionPushDuplicate.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionPushDuplicate.java index 834910416..6e26c6473 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionPushDuplicate.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionPushDuplicate.java @@ -39,6 +39,10 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionPushDuplicate extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionPushDuplicate(String charset) { super(0x4C, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionReturn.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionReturn.java index 25187a7c2..2aa8b28b8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionReturn.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionReturn.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionReturn extends Action { + /** + * Constructor. + */ public ActionReturn() { super(0x3E, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionSetMember.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionSetMember.java index 2e07f36d3..2ce87a876 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionSetMember.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionSetMember.java @@ -52,6 +52,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionSetMember extends Action { + /** + * Constructor. + */ public ActionSetMember() { super(0x4F, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStackSwap.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStackSwap.java index 170e9f81f..55c909902 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStackSwap.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStackSwap.java @@ -38,6 +38,10 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionStackSwap extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionStackSwap(String charset) { super(0x4D, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java index d170430f3..eef738911 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionStoreRegister.java @@ -57,6 +57,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionStoreRegister extends Action implements StoreTypeAction { + /** + * Register number + */ public int registerNumber; @Override @@ -70,16 +73,34 @@ public class ActionStoreRegister extends Action implements StoreTypeAction { return true; } + /** + * Constructor. + * @param registerNumber Register number + * @param charset Charset + */ public ActionStoreRegister(int registerNumber, String charset) { super(0x87, 1, charset); this.registerNumber = registerNumber; } + /** + * Constructor. + * @param actionLength Action length + * @param sis SWF input stream + * @throws IOException On I/O error + */ public ActionStoreRegister(int actionLength, SWFInputStream sis) throws IOException { super(0x87, actionLength, sis.getCharset()); registerNumber = sis.readUI8("registerNumber"); } + /** + * Constructor. + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionStoreRegister(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x87, 0, charset); registerNumber = (int) lexLong(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTargetPath.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTargetPath.java index 719417477..a735b0e38 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTargetPath.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTargetPath.java @@ -40,6 +40,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionTargetPath extends Action { + /** + * Constructor. + */ public ActionTargetPath() { super(0x45, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToNumber.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToNumber.java index b02ba1a27..cff2cb1a8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToNumber.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToNumber.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionToNumber extends Action { + /** + * Constructor. + */ public ActionToNumber() { super(0x4A, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToString.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToString.java index 75d057158..ac860018f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToString.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionToString.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionToString extends Action { + /** + * Constructor. + */ public ActionToString() { super(0x4B, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTypeOf.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTypeOf.java index c8ce8cde9..39bf7213c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTypeOf.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionTypeOf.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 5) public class ActionTypeOf extends Action { + /** + * Constructor. + */ public ActionTypeOf() { super(0x44, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionWith.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionWith.java index d0788158d..b76a25a2b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionWith.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf5/ActionWith.java @@ -46,10 +46,21 @@ import java.util.Set; @SWFVersion(from = 5) public class ActionWith extends Action implements GraphSourceItemContainer { + /** + * Code size. + */ public int codeSize; + /** + * Version. + */ public int version; + /** + * Constructor. + * @param codeSize Code size + * @param charset Charset + */ public ActionWith(int codeSize, String charset) { super(0x94, 2, charset); this.codeSize = codeSize; @@ -73,12 +84,26 @@ public class ActionWith extends Action implements GraphSourceItemContainer { return false; } + /** + * Constructor. + * @param actionLength Action length + * @param sis SWF input stream + * @param version Version + * @throws IOException Error + */ public ActionWith(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x94, actionLength, sis.getCharset()); codeSize = sis.readUI16("codeSize"); this.version = version; } + /** + * Constructor. + * @param lexer Lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionWith(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x94, 2, charset); lexBlockOpen(lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionEnumerate2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionEnumerate2.java index 37c446707..28dd12503 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionEnumerate2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionEnumerate2.java @@ -43,6 +43,9 @@ import java.util.Map; @SWFVersion(from = 6) public class ActionEnumerate2 extends Action { + /** + * Constructor. + */ public ActionEnumerate2() { super(0x55, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionGreater.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionGreater.java index 867818cd4..3e830098f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionGreater.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionGreater.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 6) public class ActionGreater extends Action { + /** + * Constructor. + */ public ActionGreater() { super(0x67, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionInstanceOf.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionInstanceOf.java index f29bc6d44..c38595152 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionInstanceOf.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionInstanceOf.java @@ -40,6 +40,9 @@ import java.util.Map; @SWFVersion(from = 6) public class ActionInstanceOf extends Action { + /** + * Constructor. + */ public ActionInstanceOf() { super(0x54, 0, Utf8Helper.charsetName); } @@ -49,6 +52,13 @@ public class ActionInstanceOf extends Action { return "InstanceOf"; } + /** + * Checks if an object is an instance of a class. + * + * @param a Object + * @param b Class + * @return True if object is an instance of class + */ public static boolean getInstanceOfResult(Object a, Object b) { ActionScriptObject type = (ActionScriptObject) b; ActionScriptObject obj = (ActionScriptObject) a; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStrictEquals.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStrictEquals.java index 4f484be3d..5c696d914 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStrictEquals.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStrictEquals.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 6) public class ActionStrictEquals extends Action { + /** + * Constructor. + */ public ActionStrictEquals() { super(0x66, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStringGreater.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStringGreater.java index e23690a59..6f0e295c0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStringGreater.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf6/ActionStringGreater.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 6) public class ActionStringGreater extends Action { + /** + * Constructor. + */ public ActionStringGreater() { super(0x68, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionCastOp.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionCastOp.java index b736f9df7..98cc2460b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionCastOp.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionCastOp.java @@ -42,6 +42,9 @@ import java.util.Map; @SWFVersion(from = 7) public class ActionCastOp extends Action { + /** + * Constructor. + */ public ActionCastOp() { super(0x2B, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionDefineFunction2.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionDefineFunction2.java index 0a6aa2efe..b786b91e0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionDefineFunction2.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionDefineFunction2.java @@ -53,43 +53,100 @@ import java.util.Set; @SWFVersion(from = 7) public class ActionDefineFunction2 extends Action implements GraphSourceItemContainer { + /** + * Function name + */ public String functionName; + /** + * Replaced function name + */ public String replacedFunctionName; + /** + * Parameter names + */ public List paramNames = new ArrayList<>(); + /** + * Replaced parameter names + */ public List replacedParamNames; + /** + * Parameter registers + */ public List paramRegisters = new ArrayList<>(); + /** + * Preload parent flag + */ public boolean preloadParentFlag; + /** + * Preload root flag + */ public boolean preloadRootFlag; + /** + * Suppress super flag + */ public boolean suppressSuperFlag; + /** + * Preload super flag + */ public boolean preloadSuperFlag; + /** + * Suppress arguments flag + */ public boolean suppressArgumentsFlag; + /** + * Preload arguments flag + */ public boolean preloadArgumentsFlag; + /** + * Suppress this flag + */ public boolean suppressThisFlag; + /** + * Preload this flag + */ public boolean preloadThisFlag; + /** + * Reserved + */ @Reserved public int reserved; + /** + * Preload global flag + */ public boolean preloadGlobalFlag; + /** + * Register count + */ public int registerCount; + /** + * Code size + */ public int codeSize; + /** + * Version + */ private int version; + /** + * Constant pool + */ public List constantPool; @Override @@ -101,6 +158,25 @@ public class ActionDefineFunction2 extends Action implements GraphSourceItemCont return true; } + /** + * Constructor. + * @param functionName Function name + * @param preloadParentFlag Preload parent flag + * @param preloadRootFlag Preload root flag + * @param suppressSuperFlag Suppress super flag + * @param preloadSuperFlag Preload super flag + * @param suppressArgumentsFlag Suppress arguments flag + * @param preloadArgumentsFlag Preload arguments flag + * @param suppressThisFlag Suppress this flag + * @param preloadThisFlag Preload this flag + * @param preloadGlobalFlag Preload global flag + * @param registerCount Register count + * @param codeSize Code size + * @param version Version + * @param paramNames Parameter names + * @param paramRegisters Parameter registers + * @param charset Charset + */ public ActionDefineFunction2(String functionName, boolean preloadParentFlag, boolean preloadRootFlag, boolean suppressSuperFlag, boolean preloadSuperFlag, boolean suppressArgumentsFlag, boolean preloadArgumentsFlag, boolean suppressThisFlag, boolean preloadThisFlag, boolean preloadGlobalFlag, int registerCount, int codeSize, int version, List paramNames, List paramRegisters, String charset) { super(0x8E, 0, charset); this.functionName = functionName; @@ -120,6 +196,13 @@ public class ActionDefineFunction2 extends Action implements GraphSourceItemCont this.paramRegisters = paramRegisters; } + /** + * Constructor. + * @param actionLength Action length + * @param sis SWF input stream + * @param version Version + * @throws IOException On I/O error + */ public ActionDefineFunction2(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x8E, actionLength, sis.getCharset()); this.version = version; @@ -143,6 +226,13 @@ public class ActionDefineFunction2 extends Action implements GraphSourceItemCont codeSize = sis.readUI16("codeSize"); } + /** + * Constructor. + * @param lexer Flasm lexer + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionDefineFunction2(FlasmLexer lexer, String charset) throws IOException, ActionParseException { super(0x8E, -1, charset); functionName = lexString(lexer); @@ -262,6 +352,10 @@ public class ActionDefineFunction2 extends Action implements GraphSourceItemCont return "DefineFunction2"; } + /** + * Gets the first register + * @return First register + */ public int getFirstRegister() { int pos = 1; if (preloadThisFlag) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionExtends.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionExtends.java index 24774c9ef..1241c0b08 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionExtends.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionExtends.java @@ -39,6 +39,10 @@ import java.util.Map; @SWFVersion(from = 7) public class ActionExtends extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionExtends(String charset) { super(0x69, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionImplementsOp.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionImplementsOp.java index b5ce21c6e..915700d5f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionImplementsOp.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionImplementsOp.java @@ -40,6 +40,10 @@ import java.util.Map; @SWFVersion(from = 7) public class ActionImplementsOp extends Action { + /** + * Constructor. + * @param charset Charset + */ public ActionImplementsOp(String charset) { super(0x2C, 0, charset); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionThrow.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionThrow.java index 2d1d3f338..35efe2d0e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionThrow.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionThrow.java @@ -39,6 +39,9 @@ import java.util.Map; @SWFVersion(from = 7) public class ActionThrow extends Action { + /** + * Constructor. + */ public ActionThrow() { super(0x2A, 0, Utf8Helper.charsetName); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionTry.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionTry.java index 8394b5dd5..6db0dbc79 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionTry.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/swf7/ActionTry.java @@ -59,25 +59,55 @@ import java.util.Set; @SWFVersion(from = 7) public class ActionTry extends Action implements GraphSourceItemContainer { + /** + * Reserved + */ @Reserved public int reserved; + /** + * Catch in register flag + */ public boolean catchInRegisterFlag; + /** + * Finally block flag + */ public boolean finallyBlockFlag; + /** + * Catch block flag + */ public boolean catchBlockFlag; + /** + * Catch name + */ public String catchName; + /** + * Catch register + */ public int catchRegister; + /** + * Try size + */ long trySize; + /** + * Catch size + */ long catchSize; + /** + * Finally size + */ long finallySize; + /** + * Version + */ private final int version; @Override @@ -86,6 +116,20 @@ public class ActionTry extends Action implements GraphSourceItemContainer { return false; } + /** + * Constructor. + * + * @param catchInRegisterFlag Catch in register flag + * @param finallyBlockFlag Finally block flag + * @param catchBlockFlag Catch block flag + * @param catchName Catch name + * @param catchRegister Catch register + * @param trySize Try size + * @param catchSize Catch size + * @param finallySize Finally size + * @param version Version + * @param charset Charset + */ public ActionTry(boolean catchInRegisterFlag, boolean finallyBlockFlag, boolean catchBlockFlag, String catchName, int catchRegister, long trySize, long catchSize, long finallySize, int version, String charset) { super(0x8F, 0, charset); this.catchInRegisterFlag = catchInRegisterFlag; @@ -99,6 +143,14 @@ public class ActionTry extends Action implements GraphSourceItemContainer { this.version = version; } + /** + * Constructor. + * + * @param actionLength Action length + * @param sis SWF input stream + * @param version Version + * @throws IOException On I/O error + */ public ActionTry(int actionLength, SWFInputStream sis, int version) throws IOException { super(0x8F, actionLength, sis.getCharset()); long startPos = sis.getPos(); @@ -148,6 +200,15 @@ public class ActionTry extends Action implements GraphSourceItemContainer { return res; } + /** + * Constructor. + * + * @param lexer Lexer + * @param version Version + * @param charset Charset + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ public ActionTry(FlasmLexer lexer, int version, String charset) throws IOException, ActionParseException { super(0x8F, 0, charset); this.version = version; @@ -206,6 +267,10 @@ public class ActionTry extends Action implements GraphSourceItemContainer { return getBytesLength(); } + /** + * Gets the try size + * @return Try size + */ public long getTrySize() { return trySize; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/ListSet.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/ListSet.java index 24e8cdd1c..d5c619bb0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/ListSet.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/ListSet.java @@ -25,7 +25,7 @@ import java.util.Set; /** * Set which maintains orders elements by time they were added. * - * @param + * @param Type of element */ public class ListSet implements Set { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/AbstractVectorType.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/AbstractVectorType.java index 994878302..22d4a3da8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/AbstractVectorType.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/AbstractVectorType.java @@ -28,18 +28,40 @@ import java.util.List; */ public abstract class AbstractVectorType implements WithSubValues, Amf3ValueType { + /** + * Fixed flag + */ private boolean fixed; + /** + * Values + */ private List values; + /** + * Checks if the vector is fixed + * + * @return True if the vector is fixed + */ public boolean isFixed() { return fixed; } + /** + * Constructs new AbstractVectorType. + * + * @param fixed Fixed flag + * @param values Values + */ public AbstractVectorType(boolean fixed, List values) { this.values = values; this.fixed = fixed; } + /** + * Gets values. + * + * @return Values + */ public List getValues() { return values; } @@ -51,6 +73,11 @@ public abstract class AbstractVectorType implements WithSubValues, Amf3ValueT return ret; } + /** + * Gets type name. + * + * @return Type name + */ public abstract String getTypeName(); @Override diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/BasicType.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/BasicType.java index 1f6d1f2a2..2b06ed62b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/BasicType.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/amf/amf3/types/BasicType.java @@ -17,7 +17,7 @@ package com.jpexs.decompiler.flash.amf.amf3.types; /** - * + * Basic AMF3 types. */ public enum BasicType implements Amf3ValueType { NULL { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/cache/ScriptDecompiledListener.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/cache/ScriptDecompiledListener.java index b316438c1..c5d628078 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/cache/ScriptDecompiledListener.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/cache/ScriptDecompiledListener.java @@ -20,6 +20,7 @@ package com.jpexs.decompiler.flash.cache; * Listener for decompiled scripts. * * @author JPEXS + * @param Result type */ public interface ScriptDecompiledListener { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItem.java index 3860cf5ca..2e7fe41bd 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItem.java @@ -27,7 +27,7 @@ import java.util.logging.Logger; /** * Configuration item. * - * @param + * @param Type of value * @author JPEXS */ public class ConfigurationItem { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItemChangeListener.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItemChangeListener.java index 09bd82afd..be0f4d6a0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItemChangeListener.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/configuration/ConfigurationItemChangeListener.java @@ -19,7 +19,7 @@ package com.jpexs.decompiler.flash.configuration; /** * Listener for configuration item changes. Used in ConfigurationItem. * - * @param + * @param Value type. * @author JPEXS */ @FunctionalInterface diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/AbstractDocs.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/AbstractDocs.java index 1de412615..b74f150b7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/AbstractDocs.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/docs/AbstractDocs.java @@ -35,8 +35,21 @@ import java.util.logging.Logger; */ public class AbstractDocs { + /** + * Constructs new AbstractDocs + */ + public AbstractDocs() { + } + + /** + * Cache for documentation. + */ protected static Cache docsCache = Cache.getInstance(false, true, "abstractDocsCache", false); + /** + * Gets HTML header. + * @return HTML header + */ protected static String htmlFooter() { StringBuilder sb = new StringBuilder(); @@ -44,6 +57,10 @@ public class AbstractDocs { return sb.toString(); } + /** + * Gets style. + * @return Style + */ public static String getStyle() { String cached = docsCache.get("__style"); if (cached != null) { @@ -61,24 +78,53 @@ public class AbstractDocs { return style; } + /** + * Gets meta property. + * @param name Name + * @param content Content + * @return Meta property + */ protected static String metaProp(String name, String content) { return "\t\t" + As3PCodeOtherDocs.NEWLINE; } + /** + * Gets meta property. + * @param name Name + * @param content Content + * @return Meta property + */ protected static String meta(String name, String content) { return "\t\t" + As3PCodeOtherDocs.NEWLINE; } + /** + * Gets meta property. + * @param name Name + * @param content Content + * @return Meta property + */ protected static String meta(String name, Date content) { return "\t\t" + As3PCodeOtherDocs.NEWLINE; } + /** + * Gets ISO8601 string for date. + * @param date Date + * @return ISO8601 string for date + */ protected static String getISO8601StringForDate(Date date) { DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); return dateFormat.format(date); } + /** + * Hilights argument. + * @param docs Docs + * @param argumentIndex Argument index + * @return Hilighted argument + */ protected static String hilightArgument(String docs, int argumentIndex) { if (argumentIndex < 0) { return docs; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/graphviz/AbstractLexer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/graphviz/AbstractLexer.java index 9297c9ea5..d78f08d2b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/graphviz/AbstractLexer.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/script/graphviz/AbstractLexer.java @@ -19,16 +19,40 @@ package com.jpexs.decompiler.flash.exporters.script.graphviz; import java.io.Reader; /** - * Abstract lexer class + * Abstract lexer class. * * @author JPEXS */ public abstract class AbstractLexer { + /** + * Token start position + */ protected int tokenStart; + /** + * Token length + */ protected int tokenLength; + /** + * Offset + */ protected int offset; + /** + * Constructor. + */ + public AbstractLexer() { + } + + /** + * Token. + * @param type Token type + * @param tStart Token start + * @param tLength Token length + * @param newStart New start + * @param newLength New length + * @return Token + */ protected Token token(TokenType type, int tStart, int tLength, int newStart, int newLength) { tokenStart = newStart; @@ -36,27 +60,71 @@ public abstract class AbstractLexer { return new Token(type, tStart + offset, tLength); } + /** + * Token. + * @param type Token type + * @param start Start + * @param length Length + * @return Token + */ protected Token token(TokenType type, int start, int length) { return new Token(type, start + offset, length); } + /** + * Token. + * @param type Token type + * @return Token + */ protected Token token(TokenType type) { return new Token(type, yychar() + offset, yylength()); } + /** + * Token. + * @param type Token type + * @param pairValue Pair value + * @return Token + */ protected Token token(TokenType type, int pairValue) { return new Token(type, yychar() + offset, yylength(), (byte) pairValue); } + /** + * Reset. + * @param reader Reader + */ public abstract void yyreset(Reader reader); + /** + * Lex. + * @return Token + * @throws java.io.IOException On I/O error + */ public abstract Token yylex() throws java.io.IOException; + /** + * Char at. + * @param pos Position + * @return Char + */ public abstract char yycharat(int pos); + /** + * Length. + * @return Length + */ public abstract int yylength(); + /** + * Text. + * @return Text + */ public abstract String yytext(); + /** + * Char. + * @return Char + */ public abstract int yychar(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerAdapter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerAdapter.java index be6356b7e..90e2d4c73 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerAdapter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerAdapter.java @@ -56,7 +56,7 @@ public class SWFDecompilerAdapter implements SWFDecompilerListener { * * @param actions Action list * @param swf SWF object - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override public void actionListParsed(ActionList actions, SWF swf) throws InterruptedException { @@ -67,7 +67,7 @@ public class SWFDecompilerAdapter implements SWFDecompilerListener { * * @param tree Action tree * @param swf SWF object - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override public void actionTreeCreated(List tree, SWF swf) throws InterruptedException { @@ -106,7 +106,7 @@ public class SWFDecompilerAdapter implements SWFDecompilerListener { * @param trait Trait object * @param methodInfo Method info * @param body Method body - * @throws InterruptedException + * @throws InterruptedException On interrupt */ @Override public void avm2CodeRemoveTraps(String path, int classIndex, boolean isStatic, int scriptIndex, ABC abc, Trait trait, int methodInfo, MethodBody body) throws InterruptedException { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerListener.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerListener.java index 433c3c84e..d3fc82368 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerListener.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/SWFDecompilerListener.java @@ -51,7 +51,7 @@ public interface SWFDecompilerListener { * * @param actions Action list * @param swf SWF object - * @throws InterruptedException + * @throws InterruptedException On interrupt */ void actionListParsed(ActionList actions, SWF swf) throws InterruptedException; @@ -60,7 +60,7 @@ public interface SWFDecompilerListener { * * @param tree Action tree * @param swf SWF object - * @throws InterruptedException + * @throws InterruptedException On interrupt */ void actionTreeCreated(List tree, SWF swf) throws InterruptedException; @@ -93,7 +93,7 @@ public interface SWFDecompilerListener { * @param trait Trait object * @param methodInfo Method info * @param body Method body - * @throws InterruptedException + * @throws InterruptedException On interrupt */ void avm2CodeRemoveTraps(String path, int classIndex, boolean isStatic, int scriptIndex, ABC abc, Trait trait, int methodInfo, MethodBody body) throws InterruptedException; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MyMap.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MyMap.java index 755148e0c..39a1a9ff2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MyMap.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MyMap.java @@ -25,8 +25,8 @@ import java.util.Set; /** * Map implementation. * - * @param - * @param + * @param Type of keys + * @param Type of values * @author JPEXS */ public class MyMap implements Map { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MySet.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MySet.java index 0e757660b..2317b5b5e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MySet.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/helpers/collections/MySet.java @@ -25,7 +25,7 @@ import java.util.Set; /** * Set implementation. * - * @param + * @param Type of elements * @author JPEXS */ public class MySet implements Set { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/AbstractDataStream.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/AbstractDataStream.java index a89ae7897..a1543d3e5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/AbstractDataStream.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/AbstractDataStream.java @@ -37,6 +37,12 @@ public abstract class AbstractDataStream implements DataStreamInterface { @Override public abstract long position(); + /** + * Constructs new AbstractDataStream + */ + public AbstractDataStream() { + } + @Override public long readUI64() throws IOException { long lsb = readUI32(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/ReadDataStreamInterface.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/ReadDataStreamInterface.java index bf6f3b86b..43ca5c83c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/ReadDataStreamInterface.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/ReadDataStreamInterface.java @@ -26,42 +26,124 @@ import java.io.IOException; public interface ReadDataStreamInterface extends AutoCloseable { /** - * Available bytes + * Gets available bytes. * * @return null if unknown, long value otherwise */ public Long available(); + /** + * Gets total size of the stream. + * + * @return Size + */ public Long totalSize(); + /** + * Gets current position in the stream. + * @return Position + */ public long position(); + /** + * Reads unsigned 64-bit integer. + * + * @return Unsigned 64-bit integer + * @throws IOException On I/O error + */ public long readUI64() throws IOException; + /** + * Reads signed 64-bit integer. + * + * @return Signed 64-bit integer + * @throws IOException On I/O error + */ public long readSI64() throws IOException; + /** + * Reads unsigned 32-bit integer. + * + * @return Unsigned 32-bit integer + * @throws IOException On I/O error + */ public long readUI32() throws IOException; + /** + * Reads unsigned 16-bit integer. + * @return Unsigned 16-bit integer + * @throws IOException On I/O error + */ public int readUI16() throws IOException; + /** + * Reads unsigned 8-bit integer. + * @return Unsigned 8-bit integer + * @throws IOException On I/O error + */ public int readUI8() throws IOException; + /** + * Reads unsigned 8-bit integer from specified address. + * @param addr Address + * @return Unsigned 8-bit integer + * @throws IOException On I/O error + */ public int readUI8(long addr) throws IOException; + /** + * Reads byte. + * @return Byte + * @throws IOException On I/O error + */ public int read() throws IOException; + /** + * Reads byte array. + * @param numBytes Number of bytes to read + * @return Byte array + * @throws IOException On I/O error + */ public byte[] readBytes(int numBytes) throws IOException; + /** + * Reads float. + * @return Float + * @throws IOException On I/O error + */ public float readFloat() throws IOException; + /** + * Seeks to specified position. + * @param pos Position + * @param mode Seek mode + * @throws IOException On I/O error + */ public void seek(long pos, SeekMode mode) throws IOException; + /** + * Gets all bytes. + * @return All bytes + * @throws IOException On I/O error + */ public byte[] getAllBytes() throws IOException; + /** + * Reads UTF-8 string. + * @return UTF-8 string + * @throws IOException On I/O error + */ public String readWChar() throws IOException; + /** + * Pads 8 bytes. + * @throws IOException On I/O error + */ public void pad8bytes() throws IOException; + /** + * Closes the stream. + */ @Override public void close(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/WriteDataStreamInterface.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/WriteDataStreamInterface.java index e41498a73..50b04dd61 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/WriteDataStreamInterface.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/iggy/streams/WriteDataStreamInterface.java @@ -26,48 +26,150 @@ import java.io.IOException; public interface WriteDataStreamInterface extends AutoCloseable { /** - * Available bytes + * Gets available bytes. * * @return null if unknown, long value otherwise */ public Long available(); + /** + * Gets total size of the stream. + * + * @return Size + */ public Long totalSize(); + /** + * Gets current position in the stream. + * + * @return Position + */ public long position(); + /** + * Sets older offset to this position. + * @param savedPos Saved position + * @throws IOException On I/O error + */ public void setOlderOffsetToThisPos(long savedPos) throws IOException; + /** + * Sets older offset to this position check. + * @param savedPos Saved position + * @param expected Expected value + * @throws IOException On I/O error + */ public void setOlderOffsetToThisPosCheck(long savedPos, long expected) throws IOException; + /** + * Writes unsigned 64-bit integer. + * + * @param val Unsigned 64-bit integer + * @return True if successful, false if not enough space + * @throws IOException On I/O error + */ public boolean writeUI64(long val) throws IOException; + /** + * Writes signed 64-bit integer. + * + * @param val Signed 64-bit integer + * @return True if successful, false if not enough space + * @throws IOException On I/O error + */ public boolean writeSI64(long val) throws IOException; + /** + * Writes unsigned 32-bit integer. + * + * @param val Unsigned 32-bit integer + * @return True if successful, false if not enough space + * @throws IOException On I/O error + */ public boolean writeUI32(long val) throws IOException; + /** + * Writes unsigned 16-bit integer. + * @param val Unsigned 16-bit integer + * @return True if successful, false if not enough space + * @throws IOException On I/O error + */ public boolean writeUI16(int val) throws IOException; + /** + * Writes UTF-8 string. + * @param val UTF-8 string + * @return True if successful, false if not enough space + * @throws IOException On I/O error + */ public boolean writeWChar(String val) throws IOException; + /** + * Pads 8 bytes. + * @throws IOException On I/O error + */ public void pad8bytes() throws IOException; + /** + * Writes unsigned 8-bit integer. + * @param val Unsigned 8-bit integer + * @return True if successful, false if not enough space + * @throws IOException On I/O error + */ public boolean writeUI8(int val) throws IOException; + /** + * Write byte. + * @param val Byte + * @throws IOException On I/O error + */ public void write(int val) throws IOException; + /** + * Writes byte array. + * @param data Byte array + * @throws IOException On I/O error + */ public void writeBytes(byte[] data) throws IOException; + /** + * Writes float. + * @param val Float + * @return True if successful, false if not enough space + * @throws IOException On I/O error + */ public boolean writeFloat(float val) throws IOException; + /** + * Seeks to specified position. + * @param pos Position + * @param mode Seek mode + * @throws IOException On I/O error + */ public void seek(long pos, SeekMode mode) throws IOException; + /** + * Gets all bytes. + * @return All bytes + * @throws IOException On I/O error + */ public byte[] getAllBytes() throws IOException; + /** + * Closes the stream. + */ @Override public void close(); + /** + * Sets indexing. + * @param indexing Indexing + */ public void setIndexing(IggyIndexBuilder indexing); + /** + * Gets indexing. + * @return Indexing + */ public IggyIndexBuilder getIndexing(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ABCSearchResult.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ABCSearchResult.java index 077650608..e2dcadcde 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ABCSearchResult.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ABCSearchResult.java @@ -41,23 +41,57 @@ import java.util.logging.Logger; */ public class ABCSearchResult implements Serializable, ScriptSearchResult { + /** + * Instance initializer string + */ public static String STR_INSTANCE_INITIALIZER = AppResources.translate("trait.instanceinitializer"); + /** + * Class initializer string + */ public static String STR_CLASS_INITIALIZER = AppResources.translate("trait.classinitializer"); + /** + * Script initializer string + */ public static String STR_SCRIPT_INITIALIZER = AppResources.translate("trait.scriptinitializer"); + /** + * Script pack + */ private ScriptPack scriptPack; + /** + * Is pcode + */ private final boolean pcode; + /** + * Class index + */ private final int classIndex; + /** + * Trait id + */ private final int traitId; + /** + * Serial version major + */ private static final int SERIAL_VERSION_MAJOR = 1; + /** + * Serial version minor + */ private static final int SERIAL_VERSION_MINOR = 0; + /** + * Constructs ABC search result. + * @param openable Openable + * @param is Input stream + * @throws IOException On I/O error + * @throws ScriptNotFoundException On script not found + */ @SuppressWarnings("unchecked") public ABCSearchResult(Openable openable, InputStream is) throws IOException, ScriptNotFoundException { ObjectInputStream ois = new ObjectInputStream(is); @@ -105,6 +139,11 @@ public class ABCSearchResult implements Serializable, ScriptSearchResult { } } + /** + * Save to output stream. + * @param os Output stream + * @throws IOException On I/O error + */ public void save(OutputStream os) throws IOException { ObjectOutputStream oos = new ObjectOutputStream(os); oos.write(SERIAL_VERSION_MAJOR); @@ -118,6 +157,10 @@ public class ABCSearchResult implements Serializable, ScriptSearchResult { oos.close(); } + /** + * Constructs ABC search result. + * @param scriptPack Script pack + */ public ABCSearchResult(ScriptPack scriptPack) { this.scriptPack = scriptPack; pcode = false; @@ -125,6 +168,12 @@ public class ABCSearchResult implements Serializable, ScriptSearchResult { traitId = GraphTextWriter.TRAIT_UNKNOWN; } + /** + * Constructs ABC search result. + * @param scriptPack Script pack + * @param classIndex Class index + * @param traitId Trait id + */ public ABCSearchResult(ScriptPack scriptPack, int classIndex, int traitId) { this.scriptPack = scriptPack; pcode = true; @@ -132,22 +181,42 @@ public class ABCSearchResult implements Serializable, ScriptSearchResult { this.traitId = traitId; } + /** + * Gets script pack. + * @return Script pack + */ public ScriptPack getScriptPack() { return scriptPack; } + /** + * Is P-code + * @return True if P-code + */ public boolean isPcode() { return pcode; } + /** + * Gets class index. + * @return Class index + */ public int getClassIndex() { return classIndex; } + /** + * Gets trait id. + * @return Trait id + */ public int getTraitId() { return traitId; } + /** + * Gets trait name. + * @return Trait name + */ private String getTraitName() { if (traitId == GraphTextWriter.TRAIT_SCRIPT_INITIALIZER) { return STR_SCRIPT_INITIALIZER; @@ -178,6 +247,10 @@ public class ABCSearchResult implements Serializable, ScriptSearchResult { } } + /** + * To string. + * @return String + */ @Override public String toString() { String result = scriptPack.getClassPath().toString(); @@ -190,6 +263,10 @@ public class ABCSearchResult implements Serializable, ScriptSearchResult { return result; } + /** + * Gets openable. + * @return Openable + */ @Override public Openable getOpenable() { return scriptPack.getOpenable(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionScriptSearch.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionScriptSearch.java index bf09b441e..58a7bd559 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionScriptSearch.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionScriptSearch.java @@ -45,6 +45,24 @@ import java.util.regex.Pattern; */ public class ActionScriptSearch { + /** + * Constructor. + */ + public ActionScriptSearch() { + + } + + /** + * Search AS2 code. + * @param swf SWF + * @param txt Text to search + * @param ignoreCase Ignore case + * @param regexp Regular expression + * @param pcode P-code + * @param listener Listener + * @param scope Scope + * @return List of search results + */ public List searchAs2(SWF swf, final String txt, boolean ignoreCase, boolean regexp, boolean pcode, ScriptSearchListener listener, Map scope) { if (txt != null && !txt.isEmpty()) { Map asms; @@ -124,6 +142,17 @@ public class ActionScriptSearch { return null; } + /** + * Search AS3 code. + * @param openable Openable + * @param txt Text to search + * @param ignoreCase Ignore case + * @param regexp Regular expression + * @param pcode P-code + * @param listener Listener + * @param scope Scope + * @return List of search results + */ public List searchAs3(final Openable openable, final String txt, boolean ignoreCase, boolean regexp, boolean pcode, ScriptSearchListener listener, List scope) { // todo: pcode seach if (txt != null && !txt.isEmpty()) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionSearchResult.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionSearchResult.java index b14d61dcc..433422f1e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionSearchResult.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/search/ActionSearchResult.java @@ -42,6 +42,14 @@ public class ActionSearchResult implements ScriptSearchResult { private static final int SERIAL_VERSION_MAJOR = 1; private static final int SERIAL_VERSION_MINOR = 0; + /** + * Constructor. + * + * @param swf SWF + * @param is Input stream + * @throws IOException On I/O error + * @throws ScriptNotFoundException If script not found + */ public ActionSearchResult(SWF swf, InputStream is) throws IOException, ScriptNotFoundException { Map asms = swf.getASMs(false); ObjectInputStream ois = new ObjectInputStream(is); @@ -59,6 +67,12 @@ public class ActionSearchResult implements ScriptSearchResult { pcode = ois.readBoolean(); } + /** + * Save to output stream. + * + * @param os Output stream + * @throws IOException On I/O error + */ public void save(OutputStream os) throws IOException { ObjectOutputStream oos = new ObjectOutputStream(os); oos.write(SERIAL_VERSION_MAJOR); @@ -69,16 +83,31 @@ public class ActionSearchResult implements ScriptSearchResult { oos.close(); } + /** + * Constructor. + * + * @param src ASM source + * @param pcode Whether pcode + * @param path Path + */ public ActionSearchResult(ASMSource src, boolean pcode, String path) { this.src = src; this.pcode = pcode; this.path = path; } + /** + * Get source. + * @return Source + */ public ASMSource getSrc() { return src; } + /** + * Is pcode. + * @return True if pcode + */ public boolean isPcode() { return pcode; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/Tag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/Tag.java index 3737eacee..1d771a2c7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/Tag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/Tag.java @@ -445,7 +445,7 @@ public abstract class Tag implements NeedsCharacters, Exportable, Serializable { * Writes Tag value to the stream * * @param sos SWF output stream - * @throws IOException + * @throws IOException On I/O error */ public void writeTag(SWFOutputStream sos) throws IOException { if (Configuration._debugCopy.get() || isModified() || isImported()) { @@ -502,7 +502,7 @@ public abstract class Tag implements NeedsCharacters, Exportable, Serializable { * Gets data bytes * * @param sos SWF output stream - * @throws java.io.IOException + * @throws IOException On I/O error */ public abstract void getData(SWFOutputStream sos) throws IOException; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/BoundedTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/BoundedTag.java index a7d681234..43c23fa79 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/BoundedTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/BoundedTag.java @@ -29,22 +29,22 @@ public interface BoundedTag { /** * Gets rectangle bounds. * - * @return + * @return Rectangle bounds */ public RECT getRect(); /** * Gets rectangle bounds with added boundedTags * - * @param added - * @return + * @param added Bounded tags to add + * @return Rectangle bounds */ public RECT getRect(Set added); /** * Gets rectangle including strokes. * - * @return + * @return Rectangle including strokes */ public RECT getRectWithStrokes(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/DrawableTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/DrawableTag.java index 7f2278186..ad00d85cf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/DrawableTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/DrawableTag.java @@ -33,16 +33,36 @@ import java.io.IOException; */ public abstract class DrawableTag extends CharacterTag implements BoundedTag { + /** + * Parameter frame + */ public static final int PARAMETER_FRAME = 1; + /** + * Parameter time + */ public static final int PARAMETER_TIME = 2; + /** + * Parameter ratio + */ public static final int PARAMETER_RATIO = 4; + /** + * Constructs new DrawableTag + * @param swf SWF + * @param id ID + * @param name Name + * @param data Data + */ public DrawableTag(SWF swf, int id, String name, ByteArrayRange data) { super(swf, id, name, data); } + /** + * Gets used parameters. + * @return Used parameters - See PARAMETER_* constants + */ public abstract int getUsedParameters(); /** @@ -50,25 +70,68 @@ public abstract class DrawableTag extends CharacterTag implements BoundedTag { * * @param fast When the structure is large, can approximate to rectangles * instead of being slow. - * @param frame - * @param time - * @param ratio - * @param renderContext - * @param transformation - * @param stroked - * @param viewRect - * @param unzoom - * @return + * @param frame Frame + * @param time Time + * @param ratio Ratio + * @param renderContext Render context + * @param transformation Transformation + * @param stroked Stroked + * @param viewRect View rectangle + * @param unzoom Unzoom + * @return Outline */ public abstract Shape getOutline(boolean fast, int frame, int time, int ratio, RenderContext renderContext, Matrix transformation, boolean stroked, ExportRectangle viewRect, double unzoom); + /** + * Converts the drawable to image. + * @param frame Frame + * @param time Time + * @param ratio Ratio + * @param renderContext Render context + * @param image Image + * @param fullImage Full image + * @param isClip Is clip + * @param transformation Transformation + * @param prevTransformation Previous transformation + * @param absoluteTransformation Absolute transformation + * @param fullTransformation Full transformation + * @param colorTransform Color transform + * @param unzoom Unzoom + * @param sameImage Same image + * @param viewRect View rectangle + * @param scaleStrokes Scale strokes + * @param drawMode Draw mode + * @param blendMode Blend mode + * @param canUseSmoothing Can use smoothing + */ public abstract void toImage(int frame, int time, int ratio, RenderContext renderContext, SerializableImage image, SerializableImage fullImage, boolean isClip, Matrix transformation, Matrix prevTransformation, Matrix absoluteTransformation, Matrix fullTransformation, ColorTransform colorTransform, double unzoom, boolean sameImage, ExportRectangle viewRect, boolean scaleStrokes, int drawMode, int blendMode, boolean canUseSmoothing); + /** + * Converts the drawable to SVG. + * @param exporter SVG exporter + * @param ratio Ratio + * @param colorTransform Color transform + * @param level Level + * @throws IOException On I/O error + */ public abstract void toSVG(SVGExporter exporter, int ratio, ColorTransform colorTransform, int level) throws IOException; + /** + * Converts the drawable to HTML canvas. + * @param result Result + * @param unitDivisor Unit divisor + */ public abstract void toHtmlCanvas(StringBuilder result, double unitDivisor); + /** + * Gets number of frames. + * @return Number of frames + */ public abstract int getNumFrames(); + /** + * Checks if the drawable is single frame. + * @return True if single frame, false if not + */ public abstract boolean isSingleFrame(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/HasSeparateAlphaChannel.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/HasSeparateAlphaChannel.java index d446e9f82..31b379122 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/HasSeparateAlphaChannel.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/HasSeparateAlphaChannel.java @@ -19,6 +19,7 @@ package com.jpexs.decompiler.flash.tags.base; import java.io.IOException; /** + * Has separate alpha channel interface. * @author JPEXS */ public interface HasSeparateAlphaChannel { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/ImageTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/ImageTag.java index 440107939..6790fa0e0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/ImageTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/base/ImageTag.java @@ -59,35 +59,87 @@ import java.util.Set; */ public abstract class ImageTag extends DrawableTag { + /** + * Character ID + */ @SWFType(BasicType.UI16) public int characterID; + /** + * Cached image + */ protected SerializableImage cachedImage; + /** + * Constructs new ImageTag + * @param swf SWF + * @param id ID + * @param name Name + * @param data Data + */ public ImageTag(SWF swf, int id, String name, ByteArrayRange data) { super(swf, id, name, data); } + /** + * Gets original image data. + * @return Original image data + */ public abstract InputStream getOriginalImageData(); + /** + * Gets image. + * @return Image + */ protected abstract SerializableImage getImage(); + /** + * Gets image dimension. + * @return Image dimension + */ public abstract Dimension getImageDimension(); + /** + * Sets image. + * @param data Image data + * @throws IOException On I/O error + */ public abstract void setImage(byte[] data) throws IOException; + /** + * Gets original image format. + * @return Original image format + */ public abstract ImageFormat getOriginalImageFormat(); + /** + * Checks if import is supported. + * @return True if supported, false otherwise + */ public boolean importSupported() { return true; } + /** + * Gets image format. + * @return Image format + */ public abstract ImageFormat getImageFormat(); + /** + * Gets image format. + * @param data Data + * @return Image format + */ public static ImageFormat getImageFormat(byte[] data) { return getImageFormat(new ByteArrayRange(data)); } + /** + * Gets image format. + * @param data Data + * @return Image format + */ public static ImageFormat getImageFormat(ByteArrayRange data) { if (hasErrorHeader(data)) { return ImageFormat.JPEG; @@ -108,6 +160,10 @@ public abstract class ImageTag extends DrawableTag { return ImageFormat.UNKNOWN; } + /** + * Gets image. Gets it from cache when available. + * @return Image + */ public SerializableImage getImageCached() { if (cachedImage != null) { return cachedImage; @@ -123,9 +179,9 @@ public abstract class ImageTag extends DrawableTag { /** * Gets converted image data. Converted means for example DefineBitsJPEG3 - * including alpha channel - PNG images + * including alpha channel - PNG images. * - * @return + * @return Converted image data */ public InputStream getConvertedImageData() { if (getImageFormat() == getOriginalImageFormat()) { //no need to convert @@ -143,7 +199,7 @@ public abstract class ImageTag extends DrawableTag { * Gets original image data if available, if not, then converted. Original * image data can be for example DefineBitsJPEG3 without transparency. * - * @return + * @return Image data */ public InputStream getImageData() { InputStream is = getOriginalImageData(); @@ -156,10 +212,20 @@ public abstract class ImageTag extends DrawableTag { return new ByteArrayInputStream(baos.toByteArray()); } + /** + * Checks if data has error header. + * @param data Data + * @return True if has error header, false otherwise + */ public static boolean hasErrorHeader(byte[] data) { return hasErrorHeader(new ByteArrayRange(data)); } + /** + * Checks if data has error header. + * @param data Data + * @return True if has error header, false otherwise + */ public static boolean hasErrorHeader(ByteArrayRange data) { if (data.getLength() > 4) { if ((data.get(0) & 0xff) == 0xff && (data.get(1) & 0xff) == 0xd9 @@ -170,11 +236,23 @@ public abstract class ImageTag extends DrawableTag { return false; } + /** + * Gets shape. + * @param shapeNum Shape number (DefineShape1, DefineShape2, ...) + * @return Shape + */ private SHAPEWITHSTYLE getShape(int shapeNum) { RECT rect = getRect(); return getShape(rect, false, shapeNum); } + /** + * Gets shape. + * @param rect Rectangle + * @param fill Fill + * @param shapeNum Shape number (DefineShape1, DefineShape2, ...) + * @return Shape + */ public SHAPEWITHSTYLE getShape(RECT rect, boolean fill, int shapeNum) { boolean translated = rect.Xmin != 0 || rect.Ymin != 0; SHAPEWITHSTYLE shape = new SHAPEWITHSTYLE(); @@ -317,6 +395,11 @@ public abstract class ImageTag extends DrawableTag { return getRect(); } + /** + * Checks if image is same as other image. + * @param otherImage Other image + * @return True if same, false otherwise + */ public boolean isSameImage(ImageTag otherImage) { SerializableImage imgA = getImageCached(); SerializableImage imgB = otherImage.getImageCached(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/gfx/AbstractGfxImageTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/gfx/AbstractGfxImageTag.java index 0e62f1b5f..37e38f44e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/gfx/AbstractGfxImageTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/gfx/AbstractGfxImageTag.java @@ -40,10 +40,22 @@ import net.npe.dds.DDSReader; */ public abstract class AbstractGfxImageTag extends ImageTag { + /** + * Constructs new AbstractGfxImageTag. + * @param swf SWF + * @param id ID + * @param name Name + * @param data Data + */ public AbstractGfxImageTag(SWF swf, int id, String name, ByteArrayRange data) { super(swf, id, name, data); } + /** + * Loads DDS image. + * @param imageData Image data + * @return BufferedImage + */ private BufferedImage loadDds(byte[] imageData) { int[] pixels = DDSReader.read(imageData, DDSReader.ARGB, 0); BufferedImage bufImage = new BufferedImage(DDSReader.getWidth(imageData), DDSReader.getHeight(imageData), BufferedImage.TYPE_INT_ARGB); @@ -51,6 +63,12 @@ public abstract class AbstractGfxImageTag extends ImageTag { return bufImage; } + /** + * Gets external buffered image. + * @param fileName File name + * @param bitmapFormat Bitmap format + * @return BufferedImage + */ protected BufferedImage getExternalBufferedImage(String fileName, int bitmapFormat) { Path imagePath = null; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/Openable.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/Openable.java index aa70654cb..c1ecc88b9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/Openable.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/Openable.java @@ -29,21 +29,21 @@ public interface Openable extends TreeItem { /** * Gets file title. * - * @return + * @return File title */ public String getFileTitle(); /** * Gets title with path from root (like in nested SWFs) * - * @return + * @return Short path title */ public String getShortPathTitle(); /** * Gets short file name based on file title and file. * - * @return + * @return Short filename */ public String getShortFileName(); @@ -55,7 +55,8 @@ public interface Openable extends TreeItem { public String getFile(); /** - * @return + * Gets title or short filename. + * @return File title or short filename */ public String getTitleOrShortFileName(); @@ -70,29 +71,29 @@ public interface Openable extends TreeItem { /** * Sets OpenableList which this Openable resides. * - * @param openableList + * @param openableList OpenableList */ public void setOpenableList(OpenableList openableList); /** * Gets OpenableList which this Openable resides. * - * @return + * @return OpenableList */ public OpenableList getOpenableList(); /** * Saves Openable to stream. * - * @param os - * @throws IOException + * @param os Output stream + * @throws IOException On I/O error */ public void saveTo(OutputStream os) throws IOException; /** * Sets file. * - * @param file + * @param file File */ public void setFile(String file); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/TreeItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/TreeItem.java index 4a600f4b5..913218f64 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/TreeItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/treeitems/TreeItem.java @@ -26,14 +26,14 @@ public interface TreeItem { /** * Gets openable which this item resides. * - * @return + * @return Openable */ public Openable getOpenable(); /** * Gets modified flag. * - * @return + * @return True if modified */ public boolean isModified(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/HasCharacterId.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/HasCharacterId.java index 4ad73a863..7448bef00 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/HasCharacterId.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/HasCharacterId.java @@ -26,14 +26,14 @@ public interface HasCharacterId { /** * Gets characterId. Can be -1 in some special cases. * - * @return + * @return Character id */ public int getCharacterId(); /** * Sets characterId. * - * @param characterId + * @param characterId Character id */ public void setCharacterId(int characterId); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLXmlWriter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLXmlWriter.java index ce2c03567..786c0b9c2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLXmlWriter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLXmlWriter.java @@ -27,6 +27,7 @@ import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter; /** + * XFL XML writer. * @author JPEXS */ public class XFLXmlWriter implements XMLStreamWriter { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/AbstractGraphTargetVisitor.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/AbstractGraphTargetVisitor.java index 52e313758..96f0cdfad 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/AbstractGraphTargetVisitor.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/AbstractGraphTargetVisitor.java @@ -25,6 +25,12 @@ import java.util.Collection; */ public abstract class AbstractGraphTargetVisitor implements GraphTargetVisitorInterface { + /** + * Constructs new AbstractGraphTargetVisitor + */ + public AbstractGraphTargetVisitor() { + } + /** * Visits a graph target item. * diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java index 40486fba5..099fd72ce 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/Graph.java @@ -134,7 +134,7 @@ public class Graph { /** * Gets sub-graphs * - * @return + * @return Sub-graphs */ public LinkedHashMap getSubGraphs() { return new LinkedHashMap<>(); @@ -155,7 +155,7 @@ public class Graph { * Initializes the graph. * * @param localData Local data - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public void init(BaseLocalData localData) throws InterruptedException { if (heads != null) { @@ -508,7 +508,7 @@ public class Graph { * @param loops Loops * @param throwStates Throw states * @return Common successor - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphPart getNextCommonPart(BaseLocalData localData, GraphPart part, List loops, List throwStates) throws InterruptedException { return getCommonPart(localData, part, getNextParts(localData, part), loops, throwStates); @@ -525,7 +525,7 @@ public class Graph { * @param loops Loops * @param throwStates Throw states * @return Common successor - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphPart getCommonPart(BaseLocalData localData, GraphPart prev, List parts, List loops, List throwStates) throws InterruptedException { if (parts.isEmpty()) { @@ -597,7 +597,7 @@ public class Graph { * @param throwStates Throw states * @param stopPart Stop part * @return Most common successor - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphPart getMostCommonPart(BaseLocalData localData, List parts, List loops, List throwStates, List stopPart) throws InterruptedException { if (parts.isEmpty()) { @@ -903,7 +903,7 @@ public class Graph { * @param staticOperation Unused * @param path Path * @return List of GraphTargetItems - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public List translate(BaseLocalData localData, int staticOperation, String path) throws InterruptedException { @@ -1029,7 +1029,7 @@ public class Graph { /** * Process switches. * - * @param list + * @param list List of GraphTargetItems */ protected final void processSwitches(List list) { processSwitches(list, -1); @@ -1200,10 +1200,10 @@ public class Graph { * Gets data for final process. Override this method to provide data for * final process. * - * @param localData - * @param loops - * @param throwStates - * @return + * @param localData Local data + * @param loops Loops + * @param throwStates Throw states + * @return Final process local data */ protected FinalProcessLocalData getFinalData(BaseLocalData localData, List loops, List throwStates) { return new FinalProcessLocalData(loops); @@ -1217,7 +1217,7 @@ public class Graph { * @param path Path * @param allParts All parts * @param throwStates Throw states - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected void beforeGetLoops(BaseLocalData localData, String path, Set allParts, List throwStates) throws InterruptedException { @@ -1230,7 +1230,7 @@ public class Graph { * @param localData Local data * @param path Path * @param allParts All parts - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected void afterGetLoops(BaseLocalData localData, String path, Set allParts) throws InterruptedException { @@ -1302,7 +1302,7 @@ public class Graph { * @param localData Local data * @param loops Loops * @param throwStates Throw states - * @throws InterruptedException + * @throws InterruptedException On interrupt */ private void getBackEdges(BaseLocalData localData, List loops, List throwStates) throws InterruptedException { clearLoops(loops); @@ -1336,7 +1336,7 @@ public class Graph { * @param level Level * @param localData Local data * @param path Path - * @throws InterruptedException + * @throws InterruptedException On interrupt */ private void finalProcessAll(List list, int level, FinalProcessLocalData localData, String path) throws InterruptedException { if (debugDoNotProcess) { @@ -1432,7 +1432,7 @@ public class Graph { * @param level Level * @param localData Local data * @param path Path - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected void finalProcess(List list, int level, FinalProcessLocalData localData, String path) throws InterruptedException { @@ -1925,7 +1925,7 @@ public class Graph { * @param path Path * @return List of GraphTargetItems to replace current output and stop * further processing. Null to continue. - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected List check(List currentRet, List foundGotos, Map> partCodes, Map partCodePos, Set visited, GraphSource code, BaseLocalData localData, Set allParts, TranslateStack stack, GraphPart parent, GraphPart part, List stopPart, List stopPartKind, List loops, List throwStates, List output, Loop currentLoop, int staticOperation, String path) throws InterruptedException { return null; @@ -1971,8 +1971,8 @@ public class Graph { * @param stack Translate stack * @param staticOperation Unused * @return Top of the stack - * @throws InterruptedException - * @throws GraphPartChangeException + * @throws InterruptedException On interrupt + * @throws GraphPartChangeException On graph part change */ //@SuppressWarnings("unchecked") protected final GraphTargetItem translatePartGetStack(BaseLocalData localData, GraphPart part, TranslateStack stack, int staticOperation) throws InterruptedException, GraphPartChangeException { @@ -1990,8 +1990,8 @@ public class Graph { * @param staticOperation Unused * @param path Path * @return List of GraphTargetItems - * @throws InterruptedException - * @throws GraphPartChangeException + * @throws InterruptedException On interrupt + * @throws GraphPartChangeException On graph part change */ protected final List translatePart(BaseLocalData localData, GraphPart part, TranslateStack stack, int staticOperation, String path) throws InterruptedException, GraphPartChangeException { List sub = part.getSubParts(); @@ -2094,7 +2094,7 @@ public class Graph { * @param loops List of loops * @param throwStates List of throw states * @param stopPart Stop part - * @throws InterruptedException + * @throws InterruptedException On interrupt */ private void getLoops(BaseLocalData localData, GraphPart part, List loops, List throwStates, List stopPart) throws InterruptedException { clearLoops(loops); @@ -2160,7 +2160,7 @@ public class Graph { * @param first First * @param visited Set of Graph parts * @param level Level - * @throws InterruptedException + * @throws InterruptedException On interrupt */ private void getLoopsWalk(BaseLocalData localData, GraphPart part, List loops, List throwStates, List stopPart, boolean first, List visited, int level) throws InterruptedException { @@ -2616,7 +2616,7 @@ public class Graph { * @param path Path * @param recursionLevel Recursion level * @return True to stop processing. False to continue. - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected boolean checkPartOutput(List currentRet, List foundGotos, Map> partCodes, Map partCodePos, Set visited, GraphSource code, BaseLocalData localData, Set allParts, TranslateStack stack, GraphPart parent, GraphPart part, List stopPart, List stopPartKind, List loops, List throwStates, Loop currentLoop, int staticOperation, String path, int recursionLevel) throws InterruptedException { return false; @@ -2709,7 +2709,7 @@ public class Graph { * @param staticOperation Unused * @param path Path * @return List of GraphTargetItems - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected final List printGraph(List foundGotos, Map> partCodes, Map partCodePos, Set visited, BaseLocalData localData, TranslateStack stack, Set allParts, GraphPart parent, GraphPart part, List stopPart, List stopPartKind, List loops, List throwStates, int staticOperation, String path) throws InterruptedException { return printGraph(foundGotos, partCodes, partCodePos, visited, localData, stack, allParts, parent, part, stopPart, stopPartKind, loops, throwStates, null, staticOperation, path, 0); @@ -2736,7 +2736,7 @@ public class Graph { * @param path Path * @param recursionLevel Recursion level * @return List of GraphTargetItems - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected final List printGraph(List foundGotos, Map> partCodes, Map partCodePos, Set visited, BaseLocalData localData, TranslateStack stack, Set allParts, GraphPart parent, GraphPart part, List stopPart, List stopPartKind, List loops, List throwStates, List ret, int staticOperation, String path, int recursionLevel) throws InterruptedException { loopPrintGraph: @@ -3660,7 +3660,7 @@ public class Graph { * * @param ip IP * @param allParts All parts - * @return + * @return Part */ public GraphPart searchPart(int ip, Collection allParts) { if (ip < 0) { @@ -3681,7 +3681,7 @@ public class Graph { * @param allBlocks All blocks to populate parts into. * @param exceptions Exceptions * @return List of entry points - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public List makeGraph(GraphSource code, List allBlocks, List exceptions) throws InterruptedException { List alternateEntries = new ArrayList<>(); @@ -3709,20 +3709,20 @@ public class Graph { * @param parent Parent part * @param path Path * @param code Graph source - * @param startip Start IP + * @param startIp Start IP * @param lastIp Last IP * @param allBlocks All blocks * @param refs References * @param visited Visited * @return Entry point - * @throws InterruptedException + * @throws InterruptedException On interrupt */ - private GraphPart makeGraph(GraphPart parent, GraphPath path, GraphSource code, int startip, int lastIp, List allBlocks, HashMap> refs, boolean[] visited) throws InterruptedException { + private GraphPart makeGraph(GraphPart parent, GraphPath path, GraphSource code, int startIp, int lastIp, List allBlocks, HashMap> refs, boolean[] visited) throws InterruptedException { if (Thread.currentThread().isInterrupted()) { throw new InterruptedException(); } - int ip = startip; + int ip = startIp; GraphPart existingPart = searchPart(ip, allBlocks); if (existingPart != null) { if (parent != null) { @@ -3743,7 +3743,7 @@ public class Graph { if (ip >= code.size()) { break; } - if (visited[ip] || ((ip != startip) && (refs.get(ip).size() > 1))) { + if (visited[ip] || ((ip != startIp) && (refs.get(ip).size() > 1))) { part.end = lastIp; GraphPart found = searchPart(ip, allBlocks); @@ -3842,7 +3842,7 @@ public class Graph { * @param writer Writer * @param localData Local data * @return Writer - * @throws java.lang.InterruptedException + * @throws InterruptedException On interrupt */ public static GraphTextWriter graphToString(List tree, GraphTextWriter writer, LocalData localData) throws InterruptedException { for (GraphTargetItem ti : tree) { @@ -3990,7 +3990,7 @@ public class Graph { * @param nextRef Next reference * @param tiRef Target item reference * @return Switch item - * @throws InterruptedException + * @throws InterruptedException On interrupt */ protected SwitchItem handleSwitch(GraphTargetItem switchedObject, GraphSourceItem switchStartItem, List foundGotos, Map> partCodes, Map partCodePos, Set visited, Set allParts, TranslateStack stack, List stopPart, List stopPartKind, List loops, List throwStates, BaseLocalData localData, int staticOperation, String path, diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPartMarkedArrayList.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPartMarkedArrayList.java index eff72c04a..af5d26ae1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPartMarkedArrayList.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphPartMarkedArrayList.java @@ -24,6 +24,7 @@ import java.util.List; * List which can store parts of the graph for each element. * * @author JPEXS + * @param Element type */ public class GraphPartMarkedArrayList extends ArrayList { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSource.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSource.java index 2638280fd..46f7dbd27 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSource.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSource.java @@ -65,8 +65,8 @@ public abstract class GraphSource implements Serializable { * @param staticOperation Unused * @param path Path * @return List of graph target items - * @throws InterruptedException - * @throws GraphPartChangeException + * @throws InterruptedException On interrupt + * @throws GraphPartChangeException On graph part change */ public abstract List translatePart(Graph graph, GraphPart part, BaseLocalData localData, TranslateStack stack, int start, int end, int staticOperation, String path) throws InterruptedException, GraphPartChangeException; @@ -92,7 +92,7 @@ public abstract class GraphSource implements Serializable { * @param lastIp Last position * @param refs References * @param endIp End position - * @throws InterruptedException + * @throws InterruptedException On interrupt */ private void visitCode(int ip, int lastIp, HashMap> refs, int endIp) throws InterruptedException { if (Thread.currentThread().isInterrupted()) { @@ -153,7 +153,7 @@ public abstract class GraphSource implements Serializable { * * @param alternateEntries Alternate entries * @return References - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public HashMap> visitCode(List alternateEntries) throws InterruptedException { HashMap> refs = new HashMap<>(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java index 814b4a61c..bc9769b4e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItem.java @@ -35,7 +35,7 @@ public interface GraphSourceItem extends Serializable, Cloneable { * @param output Output list * @param staticOperation Unused * @param path Path - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public void translate(BaseLocalData localData, TranslateStack stack, List output, int staticOperation, String path) throws InterruptedException; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItemContainer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItemContainer.java index a0cf7719c..4b70cf94f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItemContainer.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphSourceItemContainer.java @@ -62,7 +62,7 @@ public interface GraphSourceItemContainer { * * @param size Size up to this point * @param lexer Lexer - * @return + * @return True if the division was parsed successfully */ public boolean parseDivision(long size, FlasmLexer lexer); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphTargetItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphTargetItem.java index 40308d498..1a682de7a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphTargetItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/GraphTargetItem.java @@ -339,7 +339,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { /** * Gets highlight src data * - * @return + * @return Highlight src data */ protected HighlightData getSrcData() { if (srcData == null) { @@ -383,7 +383,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toStringSemicoloned(GraphTextWriter writer, LocalData localData) throws InterruptedException { if (Thread.currentThread().isInterrupted()) { @@ -414,7 +414,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toStringBoolean(GraphTextWriter writer, LocalData localData) throws InterruptedException { return toString(writer, localData, "Boolean"); @@ -426,7 +426,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toStringString(GraphTextWriter writer, LocalData localData) throws InterruptedException { return toString(writer, localData, "String"); @@ -438,7 +438,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toStringInt(GraphTextWriter writer, LocalData localData) throws InterruptedException { return toString(writer, localData, "int"); @@ -450,7 +450,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toStringNumber(GraphTextWriter writer, LocalData localData) throws InterruptedException { return toString(writer, localData, "Number"); @@ -471,8 +471,9 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * * @param writer Writer * @param localData Local data + * @param implicitCoerce Implicit coerce * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toString(GraphTextWriter writer, LocalData localData, String implicitCoerce) throws InterruptedException { if (Thread.currentThread().isInterrupted()) { @@ -488,9 +489,10 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { /** * Converts this to string. * + * @param writer Writer * @param localData Local data * @return String - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toString(GraphTextWriter writer, LocalData localData) throws InterruptedException { return toString(writer, localData, ""); @@ -501,7 +503,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * * @param localData Local data * @return String - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public String toString(LocalData localData) throws InterruptedException { HighlightedTextWriter writer = new HighlightedTextWriter(Configuration.getCodeFormatting(), false); @@ -516,7 +518,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public abstract GraphTextWriter appendTo(GraphTextWriter writer, LocalData localData) throws InterruptedException; @@ -526,7 +528,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter appendTry(GraphTextWriter writer, LocalData localData) throws InterruptedException { return appendTry(writer, localData, ""); @@ -539,7 +541,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param localData Local data * @param implicitCoerce Implicit coerce * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter appendTry(GraphTextWriter writer, LocalData localData, String implicitCoerce) throws InterruptedException { GraphTargetItem t = this; @@ -699,7 +701,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toStringNoQuotes(GraphTextWriter writer, LocalData localData) throws InterruptedException { writer.startOffset(src, getLineStartItem(), getPos(), srcData); @@ -714,7 +716,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter appendToNoQuotes(GraphTextWriter writer, LocalData localData) throws InterruptedException { return toString(writer, localData); @@ -771,7 +773,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param writer Writer * @param localData Local data * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter toStringNL(GraphTextWriter writer, LocalData localData) throws InterruptedException { writer.startOffset(src, getLineStartItem(), getPos(), srcData); @@ -826,7 +828,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param localData Local data * @param generator Source generator * @return Source - * @throws CompilationException + * @throws CompilationException On compilation error */ public List toSource(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException { return new ArrayList<>(); @@ -838,7 +840,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param localData Local data * @param generator Source generator * @return Source - * @throws CompilationException + * @throws CompilationException On compilation error */ public List toSourceIgnoreReturnValue(SourceGeneratorLocalData localData, SourceGenerator generator) throws CompilationException { if (!hasReturnValue()) { @@ -867,7 +869,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param gen Source generator * @param tar Objects * @return List of GraphTargetItems - * @throws CompilationException + * @throws CompilationException On compilation error */ public static List toSourceMerge(SourceGeneratorLocalData localData, SourceGenerator gen, Object... tar) throws CompilationException { List ret = new ArrayList<>(); @@ -989,7 +991,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { /** * Visits this without using Blocks. * - * @param visitor + * @param visitor Visitor */ public void visitNoBlock(GraphTargetVisitorInterface visitor) { visit(visitor); @@ -998,7 +1000,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { /** * Gets return type. * - * @return + * @return Return type */ public abstract GraphTargetItem returnType(); @@ -1035,7 +1037,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { * @param commands Commands * @param asBlock As block * @return Writer - * @throws InterruptedException + * @throws InterruptedException On interrupt */ public GraphTextWriter appendCommands(GraphTargetItem prevLineItem, GraphTextWriter writer, LocalData localData, List commands, boolean asBlock) throws InterruptedException { @@ -1071,12 +1073,12 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { /** * Append this to a writer as a Block. * - * @param prevLineItem - * @param writer - * @param localData - * @param commands - * @return - * @throws InterruptedException + * @param prevLineItem Previous line item + * @param writer Writer + * @param localData Local data + * @param commands Commands + * @return Writer + * @throws InterruptedException On interrupt */ public GraphTextWriter appendBlock(GraphTargetItem prevLineItem, GraphTextWriter writer, LocalData localData, List commands) throws InterruptedException { appendCommands(prevLineItem, writer, localData, commands, true); @@ -1086,7 +1088,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable { /** * Gets this as long. * - * @return + * @return This as long */ public long getAsLong() { if (this instanceof DirectValueActionItem) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/SourceGenerator.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/SourceGenerator.java index d79dfa6f3..da8f40c1b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/SourceGenerator.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/SourceGenerator.java @@ -49,7 +49,7 @@ public interface SourceGenerator { * @param localData Local data * @param item PushItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, PushItem item) throws CompilationException; @@ -59,7 +59,7 @@ public interface SourceGenerator { * @param localData Local data * @param item PopItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, PopItem item) throws CompilationException; @@ -69,7 +69,7 @@ public interface SourceGenerator { * @param localData Local data * @param item TrueItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, TrueItem item) throws CompilationException; @@ -79,7 +79,7 @@ public interface SourceGenerator { * @param localData Local data * @param item FalseItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, FalseItem item) throws CompilationException; @@ -89,7 +89,7 @@ public interface SourceGenerator { * @param localData Local data * @param item AndItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, AndItem item) throws CompilationException; @@ -99,7 +99,7 @@ public interface SourceGenerator { * @param localData Local data * @param item OrItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, OrItem item) throws CompilationException; @@ -109,7 +109,7 @@ public interface SourceGenerator { * @param localData Local data * @param item IfItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, IfItem item) throws CompilationException; @@ -119,7 +119,7 @@ public interface SourceGenerator { * @param localData Local data * @param item TernarOpItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, TernarOpItem item) throws CompilationException; @@ -129,7 +129,7 @@ public interface SourceGenerator { * @param localData Local data * @param item WhileItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, WhileItem item) throws CompilationException; @@ -139,7 +139,7 @@ public interface SourceGenerator { * @param localData Local data * @param item DoWhileItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, DoWhileItem item) throws CompilationException; @@ -149,7 +149,7 @@ public interface SourceGenerator { * @param localData Local data * @param item ForItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, ForItem item) throws CompilationException; @@ -159,7 +159,7 @@ public interface SourceGenerator { * @param localData Local data * @param item SwitchItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, SwitchItem item) throws CompilationException; @@ -169,7 +169,7 @@ public interface SourceGenerator { * @param localData Local data * @param item NotItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, NotItem item) throws CompilationException; @@ -179,7 +179,7 @@ public interface SourceGenerator { * @param localData Local data * @param item DuplicateItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, DuplicateItem item) throws CompilationException; @@ -189,7 +189,7 @@ public interface SourceGenerator { * @param localData Local data * @param item BreakItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, BreakItem item) throws CompilationException; @@ -199,7 +199,7 @@ public interface SourceGenerator { * @param localData Local data * @param item ContinueItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, ContinueItem item) throws CompilationException; @@ -209,7 +209,7 @@ public interface SourceGenerator { * @param localData Local data * @param commands List of GraphTargetItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, List commands) throws CompilationException; @@ -220,7 +220,7 @@ public interface SourceGenerator { * @param item CommaExpressionItem * @param withReturnValue If true, the return value is used * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, CommaExpressionItem item, boolean withReturnValue) throws CompilationException; @@ -230,7 +230,7 @@ public interface SourceGenerator { * @param localData Local data * @param item TypeItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generate(SourceGeneratorLocalData localData, TypeItem item) throws CompilationException; @@ -240,7 +240,7 @@ public interface SourceGenerator { * @param localData Local data * @param item GraphTargetItem * @return List of GraphSourceItem - * @throws CompilationException + * @throws CompilationException On compilation error */ public List generateDiscardValue(SourceGeneratorLocalData localData, GraphTargetItem item) throws CompilationException; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/AndItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/AndItem.java index b3161bee7..695d04475 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/AndItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/AndItem.java @@ -41,6 +41,13 @@ public class AndItem extends BinaryOpItem implements CompoundableBinaryOp { return ret; } + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public AndItem(GraphSourceItem src, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(src, lineStartIns, PRECEDENCE_LOGICALAND, leftSide, rightSide, "&&", "Boolean", "Boolean"); this.leftSide = leftSide; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOp.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOp.java index f92230f21..ed97e982d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOp.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOp.java @@ -27,19 +27,51 @@ import java.util.List; */ public interface BinaryOp { + /** + * Gets left side. + * @return Left side + */ public GraphTargetItem getLeftSide(); + /** + * Gets right side. + * @return Right side + */ public GraphTargetItem getRightSide(); + /** + * Sets left side. + * @param value Left side + */ public void setLeftSide(GraphTargetItem value); + /** + * Sets right side. + * @param value Right side + */ public void setRightSide(GraphTargetItem value); + /** + * Gets precedence. + * @return Precedence + */ public int getPrecedence(); + /** + * Gets all sub items. + * @return All sub items + */ public List getAllSubItems(); + /** + * Gets operator. + * @return Operator + */ public String getOperator(); + /** + * Gets operator instruction. + * @return Operator instruction + */ public List getOperatorInstruction(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOpItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOpItem.java index 912ab4cf2..221009155 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOpItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BinaryOpItem.java @@ -34,13 +34,29 @@ import java.util.Set; */ public abstract class BinaryOpItem extends GraphTargetItem implements BinaryOp { + /** + * Left side of the operation + */ public GraphTargetItem leftSide; + /** + * Right side of the operation + */ public GraphTargetItem rightSide; + /** + * Operator + */ protected final String operator; + /** + * Coerce left side to this type + */ protected String coerceLeft; + + /** + * Coerce right side to this type + */ protected String coerceRight; @Override @@ -52,6 +68,18 @@ public abstract class BinaryOpItem extends GraphTargetItem implements BinaryOp { return fp; } + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartItem Line start item + * @param precedence Precedence + * @param leftSide Left side + * @param rightSide Right side + * @param operator Operator + * @param coerceLeft Coerce left + * @param coerceRight Coerce right + */ public BinaryOpItem(GraphSourceItem instruction, GraphSourceItem lineStartItem, int precedence, GraphTargetItem leftSide, GraphTargetItem rightSide, String operator, String coerceLeft, String coerceRight) { super(instruction, lineStartItem, precedence); this.leftSide = leftSide; @@ -95,6 +123,14 @@ public abstract class BinaryOpItem extends GraphTargetItem implements BinaryOp { return writer; } + /** + * Converts operand to string + * + * @param operand Operand + * @param writer Writer + * @param localData Local data + * @throws InterruptedException On interrupt + */ protected void operandToString(GraphTargetItem operand, GraphTextWriter writer, LocalData localData) throws InterruptedException { operand.toString(writer, localData, ""); } @@ -143,6 +179,12 @@ public abstract class BinaryOpItem extends GraphTargetItem implements BinaryOp { return hash; } + /** + * Gets left most item + * + * @param item Item + * @return Left most item + */ public GraphTargetItem getLeftMostItem(GraphTargetItem item) { GraphTargetItem ret = item; if (ret instanceof BinaryOpItem) { @@ -151,6 +193,11 @@ public abstract class BinaryOpItem extends GraphTargetItem implements BinaryOp { return ret; } + /** + * Gets left most item + * + * @return Left most item + */ public GraphTargetItem getLeftMostItem() { GraphTargetItem ret = leftSide; if (ret instanceof BinaryOpItem) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BlockItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BlockItem.java index da5010914..63001bb56 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BlockItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BlockItem.java @@ -34,8 +34,18 @@ import java.util.List; */ public class BlockItem extends GraphTargetItem { + /** + * Commands + */ List commands; + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param commands Commands + */ public BlockItem(GraphSourceItem src, GraphSourceItem lineStartIns, List commands) { super(src, lineStartIns, PRECEDENCE_PRIMARY); this.commands = commands; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BreakItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BreakItem.java index 834d4ece0..14e7536ef 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BreakItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/BreakItem.java @@ -33,10 +33,23 @@ import java.util.List; */ public class BreakItem extends GraphTargetItem { + /** + * Loop id + */ public long loopId; + /** + * Label required + */ private boolean labelRequired; + /** + * Constructor. + * + * @param src Source item + * @param lineStartIns Line start instruction + * @param loopId Loop id + */ public BreakItem(GraphSourceItem src, GraphSourceItem lineStartIns, long loopId) { super(src, lineStartIns, NOPRECEDENCE); this.loopId = loopId; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/Callable.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/Callable.java index 4bef1a735..509efdf78 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/Callable.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/Callable.java @@ -25,7 +25,18 @@ import java.util.List; */ public interface Callable { + /** + * Call a method with a name and arguments. + * @param methodName Method name + * @param args Arguments + * @return Result of the method call + */ public Object call(String methodName, List args); + /** + * Call with arguments. + * @param args Arguments + * @return Result of the call + */ public Object call(List args); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommaExpressionItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommaExpressionItem.java index fdd80c795..c606ef0d2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommaExpressionItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommaExpressionItem.java @@ -33,8 +33,18 @@ import java.util.List; */ public class CommaExpressionItem extends GraphTargetItem { + /** + * Commands + */ public List commands; + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param commands Commands + */ public CommaExpressionItem(GraphSourceItem src, GraphSourceItem lineStartIns, List commands) { super(src, lineStartIns, PRECEDENCE_COMMA); this.commands = commands; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommentItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommentItem.java index b0a019381..6fb66ce07 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommentItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/CommentItem.java @@ -27,13 +27,24 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class CommentItem extends GraphTargetItem { + /** + * Comment lines. + */ private final String[] commentLines; + /** + * Constructor. + * @param comment Comment + */ public CommentItem(String comment) { super(null, null, NOPRECEDENCE); this.commentLines = new String[]{comment}; } + /** + * Constructor. + * @param commentLines Comment lines + */ public CommentItem(String[] commentLines) { super(null, null, NOPRECEDENCE); this.commentLines = commentLines; @@ -54,6 +65,10 @@ public class CommentItem extends GraphTargetItem { return writer.append(" */"); } + /** + * Gets comment lines. + * @return Comment lines + */ public String[] getCommentLines() { return commentLines; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ContinueItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ContinueItem.java index 51d0b38f2..cbc413ed7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ContinueItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ContinueItem.java @@ -33,10 +33,23 @@ import java.util.List; */ public class ContinueItem extends GraphTargetItem { + /** + * Loop id + */ public long loopId; + /** + * Label required + */ private boolean labelRequired; + /** + * Constructor. + * + * @param src Source item + * @param lineStartIns Line start instruction + * @param loopId Loop id + */ public ContinueItem(GraphSourceItem src, GraphSourceItem lineStartIns, long loopId) { super(src, lineStartIns, NOPRECEDENCE); this.loopId = loopId; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DoWhileItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DoWhileItem.java index d9d7d04ea..bacded6ee 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DoWhileItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DoWhileItem.java @@ -38,10 +38,19 @@ import java.util.List; */ public class DoWhileItem extends LoopItem implements Block { + /** + * Commands + */ public List commands; + /** + * Expression + */ public List expression; + /** + * Label used + */ private boolean labelUsed; @Override @@ -78,6 +87,15 @@ public class DoWhileItem extends LoopItem implements Block { } } + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param loop Loop + * @param commands Commands + * @param expression Expression + */ public DoWhileItem(GraphSourceItem src, GraphSourceItem lineStartIns, Loop loop, List commands, List expression) { super(src, lineStartIns, loop); this.expression = expression; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DuplicateItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DuplicateItem.java index 0912697f6..495b02617 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DuplicateItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/DuplicateItem.java @@ -34,6 +34,12 @@ import java.util.Set; */ public class DuplicateItem extends GraphTargetItem implements SimpleValue { + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start item + * @param value Value + */ public DuplicateItem(GraphSourceItem src, GraphSourceItem lineStartIns, GraphTargetItem value) { super(src, lineStartIns, value.getPrecedence(), value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/FalseItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/FalseItem.java index ca1fe1d08..389435c31 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/FalseItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/FalseItem.java @@ -34,6 +34,11 @@ import java.util.Set; */ public class FalseItem extends GraphTargetItem implements LogicalOpItem, SimpleValue { + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + */ public FalseItem(GraphSourceItem src, GraphSourceItem lineStartIns) { super(src, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ForItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ForItem.java index 77270b127..ac9d59abb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ForItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ForItem.java @@ -38,14 +38,29 @@ import java.util.List; */ public class ForItem extends LoopItem implements Block { + /** + * First commands + */ public List firstCommands; + /** + * Expression + */ public GraphTargetItem expression; + /** + * Final commands + */ public List finalCommands; + /** + * Commands + */ public List commands; + /** + * Label used + */ private boolean labelUsed; @Override @@ -82,6 +97,17 @@ public class ForItem extends LoopItem implements Block { visitor.visit(expression); } + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param loop Loop + * @param firstCommands First commands + * @param expression Expression + * @param finalCommands Final commands + * @param commands Commands + */ public ForItem(GraphSourceItem src, GraphSourceItem lineStartIns, Loop loop, List firstCommands, GraphTargetItem expression, List finalCommands, List commands) { super(src, lineStartIns, loop); this.firstCommands = firstCommands; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/GotoItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/GotoItem.java index 5c88d3dfd..cbc4c4bfc 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/GotoItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/GotoItem.java @@ -32,10 +32,23 @@ import java.util.List; */ public class GotoItem extends GraphTargetItem implements Block { + /** + * Label name + */ public String labelName; + /** + * Target commands + */ public List targetCommands = null; + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param labelName Label name + */ public GotoItem(GraphSourceItem src, GraphSourceItem lineStartIns, String labelName) { super(src, lineStartIns, PRECEDENCE_PRIMARY); this.labelName = labelName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IfItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IfItem.java index 28176647f..888a7a9d0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IfItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IfItem.java @@ -38,14 +38,34 @@ import java.util.Set; */ public class IfItem extends GraphTargetItem implements Block { + /** + * Expression + */ public GraphTargetItem expression; + /** + * On true + */ public List onTrue; + /** + * On false + */ public List onFalse; + /** + * Decision part + */ public GraphPart decisionPart; + + /** + * On true part + */ public GraphPart onTruePart; + + /** + * On false part + */ public GraphPart onFalsePart; @Override @@ -87,6 +107,15 @@ public class IfItem extends GraphTargetItem implements Block { visitor.visit(expression); } + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param expression Expression + * @param onTrue On true + * @param onFalse On false + */ public IfItem(GraphSourceItem src, GraphSourceItem lineStartIns, GraphTargetItem expression, List onTrue, List onFalse) { super(src, lineStartIns, NOPRECEDENCE); this.expression = expression; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueItem.java index 03089ae54..c6f9a2760 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueItem.java @@ -29,8 +29,17 @@ import java.util.Set; */ public class IntegerValueItem extends GraphTargetItem implements IntegerValueTypeItem { + /** + * Integer value + */ private final int intValue; + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + * @param value Value + */ public IntegerValueItem(GraphSourceItem src, GraphSourceItem lineStartIns, int value) { super(src, lineStartIns, PRECEDENCE_PRIMARY); this.intValue = value; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueTypeItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueTypeItem.java index 755d1d060..54523e70d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueTypeItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/IntegerValueTypeItem.java @@ -23,5 +23,9 @@ package com.jpexs.decompiler.graph.model; */ public interface IntegerValueTypeItem { + /** + * Gets the integer value of this item. + * @return Integer value + */ public int intValue(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LabelItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LabelItem.java index 03b35b05e..2c747adc2 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LabelItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LabelItem.java @@ -28,8 +28,17 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class LabelItem extends GraphTargetItem { + /** + * Label name. + */ public String labelName; + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + * @param labelName Label name + */ public LabelItem(GraphSourceItem src, GraphSourceItem lineStartIns, String labelName) { super(src, lineStartIns, PRECEDENCE_PRIMARY); this.labelName = labelName; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LocalData.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LocalData.java index 2858a0136..28175419f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LocalData.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LocalData.java @@ -34,30 +34,73 @@ import java.util.Set; */ public class LocalData { + /** + * Empty local data + */ public static LocalData empty = new LocalData(); + /** + * Constant pool + */ public ConstantPool constants; + /** + * AVM2 constant pool + */ public AVM2ConstantPool constantsAvm2; + /** + * ABC indexing + */ public AbcIndexing abcIndex; + /** + * Call stack + */ public List callStack; + /** + * Local register names + */ public HashMap localRegNames; + /** + * Fully qualified names + */ public List fullyQualifiedNames; + /** + * Seen methods + */ public Set seenMethods = new HashSet<>(); + /** + * ABC + */ public ABC abc; + /** + * Creates a new local data + * + * @param constants Constant pool + * @return Local data + */ public static LocalData create(ConstantPool constants) { LocalData localData = new LocalData(); localData.constants = constants; return localData; } + /** + * Creates a new local data + * @param callStack Call stack + * @param abcIndex ABC indexing + * @param abc ABC + * @param localRegNames Local register names + * @param fullyQualifiedNames Fully qualified names + * @param seenMethods Seen methods + * @return Local data + */ public static LocalData create(List callStack, AbcIndexing abcIndex, ABC abc, HashMap localRegNames, List fullyQualifiedNames, Set seenMethods) { LocalData localData = new LocalData(); localData.abc = abc; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LogicalOpItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LogicalOpItem.java index 3d6a8b89f..61f8fd1ba 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LogicalOpItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LogicalOpItem.java @@ -26,5 +26,11 @@ import com.jpexs.decompiler.graph.GraphTargetItem; */ public interface LogicalOpItem { + /** + * Inverts the logical operation. + * + * @param src Source item + * @return Inverted target item + */ public GraphTargetItem invert(GraphSourceItem src); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LoopItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LoopItem.java index 6b406847a..12364f24e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LoopItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/LoopItem.java @@ -28,14 +28,32 @@ import java.util.List; */ public abstract class LoopItem extends GraphTargetItem { + /** + * Loop + */ public Loop loop; + /** + * Constructor. + * + * @param src Source item + * @param lineStartItem Line start item + * @param loop Loop + */ public LoopItem(GraphSourceItem src, GraphSourceItem lineStartItem, Loop loop) { super(src, lineStartItem, NOPRECEDENCE); this.loop = loop; } + /** + * Checks if loop has base body. + * @return True if loop has base body + */ public abstract boolean hasBaseBody(); + /** + * Gets base body commands. + * @return List of base body commands + */ public abstract List getBaseBodyCommands(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/NotItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/NotItem.java index 17710ed42..46cf50290 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/NotItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/NotItem.java @@ -36,6 +36,12 @@ import java.util.Set; */ public class NotItem extends UnaryOpItem implements LogicalOpItem, Inverted { + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param value Value + */ public NotItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem value) { super(instruction, lineStartIns, PRECEDENCE_UNARY, value, "!", "Boolean"); } @@ -65,6 +71,10 @@ public class NotItem extends UnaryOpItem implements LogicalOpItem, Inverted { return value.isCompileTime(dependencies); } + /** + * Gets the original value. + * @return Original value + */ public GraphTargetItem getOriginal() { return value; } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/OrItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/OrItem.java index d36c78b52..e223c5a7b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/OrItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/OrItem.java @@ -33,6 +33,13 @@ import java.util.List; */ public class OrItem extends BinaryOpItem implements CompoundableBinaryOp { + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + * @param leftSide Left side + * @param rightSide Right side + */ public OrItem(GraphSourceItem src, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) { super(src, lineStartIns, PRECEDENCE_LOGICALOR, leftSide, rightSide, "||", "Boolean", "Boolean"); this.leftSide = leftSide; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ParenthesisItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ParenthesisItem.java index 36e7ff2f3..52994ac4d 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ParenthesisItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ParenthesisItem.java @@ -31,6 +31,12 @@ import java.util.List; */ public class ParenthesisItem extends GraphTargetItem { + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + * @param value Value + */ public ParenthesisItem(GraphSourceItem src, GraphSourceItem lineStartIns, GraphTargetItem value) { super(src, lineStartIns, PRECEDENCE_PRIMARY, value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PopItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PopItem.java index 5d30bb091..8cd8e5668 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PopItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PopItem.java @@ -33,6 +33,11 @@ import java.util.List; */ public class PopItem extends GraphTargetItem { + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + */ public PopItem(GraphSourceItem src, GraphSourceItem lineStartIns) { super(src, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PushItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PushItem.java index 79b5ff3e9..8efdd5711 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PushItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/PushItem.java @@ -33,6 +33,10 @@ import java.util.Objects; */ public class PushItem extends GraphTargetItem { + /** + * Constructor. + * @param value Value to push + */ public PushItem(GraphTargetItem value) { super(value.getSrc(), value.getLineStartItem(), value.getPrecedence(), value); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ScriptEndItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ScriptEndItem.java index b76015df6..bc1921960 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ScriptEndItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/ScriptEndItem.java @@ -27,6 +27,9 @@ import com.jpexs.decompiler.graph.TypeItem; */ public class ScriptEndItem extends GraphTargetItem implements ExitItem { + /** + * Constructor. + */ public ScriptEndItem() { super(null, null, NOPRECEDENCE); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/SwitchItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/SwitchItem.java index 689829603..595bf21dc 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/SwitchItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/SwitchItem.java @@ -38,14 +38,29 @@ import java.util.List; */ public class SwitchItem extends LoopItem implements Block { + /** + * Switched object + */ public GraphTargetItem switchedObject; + /** + * Case values + */ public List caseValues; + /** + * Case commands + */ public List> caseCommands; + /** + * Values mapping + */ public List valuesMapping; + /** + * Label used + */ private boolean labelUsed; @Override @@ -70,6 +85,16 @@ public class SwitchItem extends LoopItem implements Block { visitor.visitAll(caseValues); } + /** + * Constructor. + * @param instruction Instruction + * @param lineStartIns Line start instruction + * @param loop Loop + * @param switchedObject Switched object + * @param caseValues Case values + * @param caseCommands Case commands + * @param valuesMapping Values mapping + */ public SwitchItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, Loop loop, GraphTargetItem switchedObject, List caseValues, List> caseCommands, List valuesMapping) { super(instruction, lineStartIns, loop); this.switchedObject = switchedObject; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TernarOpItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TernarOpItem.java index 6669e6fd3..3ec562d94 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TernarOpItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TernarOpItem.java @@ -34,12 +34,30 @@ import java.util.Objects; */ public class TernarOpItem extends GraphTargetItem { + /** + * Expression + */ public GraphTargetItem expression; + /** + * On true + */ public GraphTargetItem onTrue; + /** + * On false + */ public GraphTargetItem onFalse; + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param expression Expression + * @param onTrue On true + * @param onFalse On false + */ public TernarOpItem(GraphSourceItem src, GraphSourceItem lineStartIns, GraphTargetItem expression, GraphTargetItem onTrue, GraphTargetItem onFalse) { super(src, lineStartIns, PRECEDENCE_CONDITIONAL); this.expression = expression; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TrueItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TrueItem.java index 5c3423f46..c5a168bb8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TrueItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/TrueItem.java @@ -34,6 +34,11 @@ import java.util.Set; */ public class TrueItem extends GraphTargetItem implements LogicalOpItem, SimpleValue { + /** + * Constructor. + * @param src Source + * @param lineStartIns Line start instruction + */ public TrueItem(GraphSourceItem src, GraphSourceItem lineStartIns) { super(src, lineStartIns, PRECEDENCE_PRIMARY); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOp.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOp.java index 162e46e2d..2a71940c9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOp.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOp.java @@ -25,7 +25,15 @@ import com.jpexs.decompiler.graph.GraphTargetItem; */ public interface UnaryOp { + /** + * Gets value + * @return Value + */ public GraphTargetItem getValue(); + /** + * Gets precedence + * @return Precedence + */ public int getPrecedence(); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOpItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOpItem.java index 2b20c0847..b158641ef 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOpItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnaryOpItem.java @@ -31,10 +31,26 @@ import java.util.Set; */ public abstract class UnaryOpItem extends GraphTargetItem implements UnaryOp { + /** + * Operator + */ public String operator; + /** + * Coerce value to this type + */ protected String coerce; + /** + * Constructor. + * + * @param instruction Instruction + * @param lineStartItem Line start item + * @param precedence Precedence + * @param value Value + * @param operator Operator + * @param coerce Coerce + */ public UnaryOpItem(GraphSourceItem instruction, GraphSourceItem lineStartItem, int precedence, GraphTargetItem value, String operator, String coerce) { super(instruction, lineStartItem, precedence, value); this.operator = operator; @@ -148,6 +164,14 @@ public abstract class UnaryOpItem extends GraphTargetItem implements UnaryOp { return hash; } + /** + * Converts operand to string. + * + * @param operand Operand + * @param writer Writer + * @param localData Local data + * @throws InterruptedException On interrupt + */ protected void operandToString(GraphTargetItem operand, GraphTextWriter writer, LocalData localData) throws InterruptedException { operand.toString(writer, localData, ""); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnboundedTypeItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnboundedTypeItem.java index ca0b5a59c..485efdfe7 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnboundedTypeItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UnboundedTypeItem.java @@ -27,6 +27,9 @@ import com.jpexs.decompiler.graph.GraphTargetItem; */ public class UnboundedTypeItem extends AVM2Item { + /** + * Constructor. + */ public UnboundedTypeItem() { super(null, null, NOPRECEDENCE); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UniversalLoopItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UniversalLoopItem.java index db10973b0..4b5c35762 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UniversalLoopItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/UniversalLoopItem.java @@ -30,12 +30,23 @@ import java.util.List; */ public class UniversalLoopItem extends WhileItem implements Block { + /** + * True expression. + */ static final List TRUE_EXPRESSION = new ArrayList<>(); static { TRUE_EXPRESSION.add(new TrueItem(null, null)); } + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param loop Loop + * @param commands Commands + */ public UniversalLoopItem(GraphSourceItem src, GraphSourceItem lineStartIns, Loop loop, List commands) { super(src, lineStartIns, loop, TRUE_EXPRESSION, commands); } diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/WhileItem.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/WhileItem.java index 4c6880597..b740541bb 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/WhileItem.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/model/WhileItem.java @@ -38,10 +38,19 @@ import java.util.List; */ public class WhileItem extends LoopItem implements Block { + /** + * Expression + */ public List expression; + /** + * Commands + */ public List commands; + /** + * Label used + */ private boolean labelUsed; @Override @@ -73,6 +82,15 @@ public class WhileItem extends LoopItem implements Block { } } + /** + * Constructor. + * + * @param src Source + * @param lineStartIns Line start instruction + * @param loop Loop + * @param expression Expression + * @param commands Commands + */ public WhileItem(GraphSourceItem src, GraphSourceItem lineStartIns, Loop loop, List expression, List commands) { super(src, lineStartIns, loop); this.expression = expression; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/DoWhileNode.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/DoWhileNode.java index 37e47cf5f..82652e44a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/DoWhileNode.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/DoWhileNode.java @@ -23,6 +23,9 @@ package com.jpexs.decompiler.graph.precontinues; */ public class DoWhileNode extends Node { + /** + * Body + */ public Node body; @Override diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/GraphPrecontinueDetector.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/GraphPrecontinueDetector.java index f38843361..c936da7f4 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/GraphPrecontinueDetector.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/GraphPrecontinueDetector.java @@ -40,6 +40,13 @@ import java.util.Set; */ public class GraphPrecontinueDetector { + /** + * Detects precontinues in graph. + * @param heads Heads + * @param allParts All parts + * @param loops Loops + * @param throwStates Throw states + */ public void detectPrecontinues(List heads, Set allParts, List loops, List throwStates) { boolean isSomethingTodo = false; for (Loop el : loops) { @@ -169,7 +176,7 @@ public class GraphPrecontinueDetector { /** * Converts node graph to graphviz for easily display. * - * @param headNodes + * @param headNodes Head nodes */ public void printGraph(List headNodes) { Set allNodes = new LinkedHashSet<>(); diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/IfNode.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/IfNode.java index f7f7a3750..946cf5c9c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/IfNode.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/IfNode.java @@ -23,7 +23,14 @@ package com.jpexs.decompiler.graph.precontinues; */ public class IfNode extends Node { + /** + * On true + */ public Node onTrue; + + /** + * On false + */ public Node onFalse; @Override diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/JoinedNode.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/JoinedNode.java index c8601b994..b2e33a42e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/JoinedNode.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/JoinedNode.java @@ -26,6 +26,9 @@ import java.util.List; */ public class JoinedNode extends Node { + /** + * Nodes + */ public List nodes = new ArrayList<>(); @Override diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/Node.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/Node.java index e44b00532..a360608f0 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/Node.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/Node.java @@ -27,18 +27,43 @@ import java.util.List; */ public class Node { + /** + * Next nodes + */ public List next = new ArrayList<>(); + /** + * Previous nodes + */ public List prev = new ArrayList(); + /** + * Graph part + */ public GraphPart graphPart; + /** + * Current id + */ private static int CURRENT_ID = 0; + /** + * Id + */ private int id; + /** + * Parent node + */ public Node parentNode; + /** + * Constructor. + */ public Node() { this.id = ++CURRENT_ID; } + /** + * Gets id. + * @return Id + */ public int getId() { return id; } @@ -73,6 +98,10 @@ public class Node { return true; } + /** + * Replces previous node. + * @param newNode New node + */ public void replacePrevs(Node newNode) { for (Node p : this.prev) { for (int i = 0; i < p.next.size(); i++) { @@ -83,6 +112,10 @@ public class Node { } } + /** + * Replaces next node. + * @param newNode New node + */ public void replaceNexts(Node newNode) { for (Node n : this.next) { for (int i = 0; i < n.prev.size(); i++) { @@ -93,6 +126,9 @@ public class Node { } } + /** + * Removes node from graph. + */ public void removeFromGraph() { for (Node p : this.prev) { for (int i = p.next.size() - 1; i >= 0; i--) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/WhileNode.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/WhileNode.java index 8406876eb..b0373890e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/WhileNode.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/graph/precontinues/WhileNode.java @@ -23,6 +23,9 @@ package com.jpexs.decompiler.graph.precontinues; */ public class WhileNode extends Node { + /** + * Body + */ public Node body; @Override diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java index 3170b78e7..120d3f544 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/Cache.java @@ -36,8 +36,8 @@ import java.util.logging.Logger; /** * Cache. * - * @param - * @param + * @param Key type + * @param Value type * @author JPEXS */ public class Cache implements Freed { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/Callback.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/Callback.java index b9a5719a5..f119bb379 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/Callback.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/Callback.java @@ -19,7 +19,7 @@ package com.jpexs.helpers; /** * Class with helper method. * - * @param + * @param Argument type * @author JPEXS */ public abstract class Callback { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/CancellableWorker.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/CancellableWorker.java index 27a3cd0a4..997f8ddd5 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/CancellableWorker.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/CancellableWorker.java @@ -35,7 +35,7 @@ import java.util.logging.Logger; /** * Cancellable worker. * - * @param + * @param Result type * @author JPEXS */ public abstract class CancellableWorker implements RunnableFuture { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/FileHashMap.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/FileHashMap.java index 953687cd4..0867b2639 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/FileHashMap.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/FileHashMap.java @@ -37,8 +37,8 @@ import java.util.logging.Logger; /** * File hash map. * - * @param - * @param + * @param Key type + * @param Value type * @author JPEXS */ public class FileHashMap extends AbstractMap implements Freed { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/HashArrayList.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/HashArrayList.java index e522a5b3c..4a3d0f006 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/HashArrayList.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/HashArrayList.java @@ -24,6 +24,7 @@ import java.util.HashMap; * Hash array list. * * @author JPEXS + * @param Element type */ public class HashArrayList extends ArrayList { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/ImmediateFuture.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/ImmediateFuture.java index 3c424880e..1fe067cb9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/ImmediateFuture.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/ImmediateFuture.java @@ -25,7 +25,7 @@ import java.util.concurrent.TimeoutException; /** * Future that happens now. * - * @param + * @param Value type * @author JPEXS */ public class ImmediateFuture implements Future { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/JpegMarker.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/JpegMarker.java index 86102fb6f..57d498e79 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/JpegMarker.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/JpegMarker.java @@ -21,6 +21,7 @@ import java.util.logging.Level; import java.util.logging.Logger; /** + * JPEG marker. * @author JPEXS */ public class JpegMarker { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/utf8/charset/AbstractCharsetConverter.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/utf8/charset/AbstractCharsetConverter.java index 3d1bc2be5..df3c1eb2b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/utf8/charset/AbstractCharsetConverter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/utf8/charset/AbstractCharsetConverter.java @@ -24,10 +24,24 @@ import java.io.IOException; import java.util.Map; /** + * Abstract charset converter. * @author JPEXS */ public abstract class AbstractCharsetConverter { + /** + * Constructor. + */ + public AbstractCharsetConverter() { + } + + /** + * Reads charset data from lexer. + * @param data Charset data + * @param lexer Lexer + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ protected static void readMap(Map data, ActionScriptLexer lexer) throws IOException, ActionParseException { ParsedSymbol s; lexer.lex(); //identifier; @@ -52,6 +66,13 @@ public abstract class AbstractCharsetConverter { lexer.lex(); //; } + /** + * Reads one dimensional int array from lexer. + * @param data Data + * @param lexer Lexer + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ protected static void readOneDimensionalInt(int[] data, ActionScriptLexer lexer) throws IOException, ActionParseException { ParsedSymbol s; lexer.lex(); //identifier @@ -78,6 +99,13 @@ public abstract class AbstractCharsetConverter { lexer.lex(); //; } + /** + * Reads two dimensional int array from lexer. + * @param data Data + * @param lexer Lexer + * @throws IOException On I/O error + * @throws ActionParseException On action parse error + */ protected static void readTwoDimensionalInt(int[][] data, ActionScriptLexer lexer) throws IOException, ActionParseException { ParsedSymbol s; lexer.lex(); //identifier; @@ -111,7 +139,17 @@ public abstract class AbstractCharsetConverter { lexer.lex(); //; } + /** + * Converts from this charset to unicode. + * @param codePoint Code point + * @return Unicode code point + */ public abstract int toUnicode(int codePoint); + /** + * Converts unicode to this charset. + * @param codePoint Code point + * @return This charset codepoint + */ public abstract int fromUnicode(int codePoint); }