Fix javadoc.

This commit is contained in:
Jindra Petřík
2025-06-10 20:31:12 +02:00
parent 07108f5d2c
commit 17250e8d68
40 changed files with 58 additions and 42 deletions

View File

@@ -56,6 +56,7 @@ public abstract class ParseException extends Exception {
*
* @param text Text of the exception
* @param line Line number where the exception occurred
* @param position Position in source text
*/
public ParseException(String text, long line, long position) {
super(text + (line == -1 ? "" : " on line " + line));

View File

@@ -63,7 +63,6 @@ public class ZippedBundle implements Bundle {
/**
* Initializes the bundle.
*
* @param is Input stream
* @param filename File
* @throws IOException On I/O error
*/

View File

@@ -36,7 +36,7 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* AVM2 dialect.
* @author JPEXS
*/
public class AVM2GraphTargetDialect extends GraphTargetDialect {

View File

@@ -28,7 +28,7 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* Null coalesce operator (a ?? b).
* @author JPEXS
*/
public class NullCoalesceAVM2Item extends BinaryOpItem {

View File

@@ -25,7 +25,7 @@ import com.jpexs.decompiler.graph.model.LocalData;
import java.util.List;
/**
*
* Package.
* @author JPEXS
*/
public class PackageAVM2Item extends AVM2Item {

View File

@@ -27,7 +27,7 @@ import com.jpexs.decompiler.graph.GraphTargetItem;
import com.jpexs.decompiler.graph.model.LocalData;
/**
*
* Trait slot/const.
* @author JPEXS
*/
public class TraitSlotConstAVM2Item extends AVM2Item {

View File

@@ -650,6 +650,7 @@ public final class AbcIndexing {
* @param findProtected Find protected namespace properties
* @param type Property type
* @param callType Call type
* @param foundStatic Trait found as static
*/
public void findPropertyTypeOrCallType(ABC abc, GraphTargetItem cls, String propName, int ns, boolean findStatic, boolean findInstance, boolean findProtected, Reference<GraphTargetItem> type, Reference<GraphTargetItem> callType, Reference<Boolean> foundStatic) {
TraitIndex traitIndex = findProperty(new PropertyDef(propName, cls, abc, ns), findStatic, findInstance, findProtected, foundStatic);
@@ -671,7 +672,8 @@ public final class AbcIndexing {
* @param findStatic Find static properties
* @param findInstance Find instance properties
* @param findProtected Find protected namespace properties
* @return Trait index or null
* @param foundStatic Trait found as static
* @return Trait index or null
*/
public GraphTargetItem findPropertyType(ABC abc, GraphTargetItem cls, String propName, int ns, boolean findStatic, boolean findInstance, boolean findProtected, Reference<Boolean> foundStatic) {
TraitIndex traitIndex = findProperty(new PropertyDef(propName, cls, abc, ns), findStatic, findInstance, findProtected, foundStatic);
@@ -690,6 +692,7 @@ public final class AbcIndexing {
* @param findStatic Find static properties
* @param findInstance Find instance properties
* @param findProtected Find protected namespace properties
* @param foundStatic Trait found as static
* @return Trait index or null
*/
public GraphTargetItem findPropertyCallType(ABC abc, GraphTargetItem cls, String propName, int ns, boolean findStatic, boolean findInstance, boolean findProtected, Reference<Boolean> foundStatic) {
@@ -939,6 +942,7 @@ public final class AbcIndexing {
* @param ts Traits
* @param map Map to index
* @param mapNs Map to index
* @param scriptIndex Script index
*/
protected void indexTraits(ABC abc, int name_index, Traits ts, Map<PropertyDef, TraitIndex> map, Map<PropertyNsDef, TraitIndex> mapNs, int scriptIndex) {
for (Trait t : ts.traits) {

View File

@@ -31,11 +31,14 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* AVM1 dialect.
* @author JPEXS
*/
public class ActionGraphTargetDialect extends GraphTargetDialect {
/**
* AVM1 dialect instance.
*/
public static final GraphTargetDialect INSTANCE = new ActionGraphTargetDialect();
private ActionGraphTargetDialect() {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.amf.amf0.types;
/**
*
* Reference type.
* @author JPEXS
*/
public class ReferenceType {

View File

@@ -19,7 +19,7 @@ package com.jpexs.decompiler.flash.configuration;
import java.util.Map;
/**
*
* Class for storing configuration.
* @author JPEXS
*/
public interface ConfigurationStorage {

View File

@@ -30,7 +30,7 @@ import java.util.logging.Logger;
import javax.swing.JOptionPane;
/**
*
* Legacy (binary file) configuration storage.
* @author JPEXS
*/
public class LegacyConfigurationStorage implements ConfigurationStorage {

View File

@@ -49,7 +49,7 @@ import org.tomlj.TomlParseResult;
import org.tomlj.TomlTable;
/**
*
* TOML file confiraration storage.
* @author JPEXS
*/
public class TomlConfigurationStorage implements ConfigurationStorage {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.configuration.enums;
/**
*
* Grid snap accuracy.
* @author JPEXS
*/
public enum GridSnapAccuracy {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.configuration.enums;
/**
*
* Guides snap accuracy.
* @author JPEXS
*/
public enum GuidesSnapAccuracy {

View File

@@ -138,7 +138,7 @@ public interface WinBase extends StdCallLibrary, WinDef, BaseTSD {
int HANDLE_FLAG_INHERIT = 1;
/**
* If this flag is set, calling the {@link Kernel32#CloseHandle} function
* If this flag is set, calling the Kernel32 - CloseHandle function
* will not close the object handle.
*/
int HANDLE_FLAG_PROTECT_FROM_CLOSE = 2;

View File

@@ -20,7 +20,7 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* Catch (of try..catch) clause scope.
* @author JPEXS
*/
public class CatchScope implements Scope {

View File

@@ -20,7 +20,7 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* Class scope.
* @author JPEXS
*/
public class ClassScope implements Scope {

View File

@@ -17,6 +17,7 @@
package com.jpexs.decompiler.flash.simpleparser;
/**
* Class trait.
* @author JPEXS
*/
public class ClassTrait extends Variable {

View File

@@ -20,7 +20,7 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* Function scope.
* @author JPEXS
*/
public class FunctionScope implements Scope {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.simpleparser;
/**
*
* Import statement.
* @author JPEXS
*/
public class Import extends Variable {

View File

@@ -17,6 +17,7 @@
package com.jpexs.decompiler.flash.simpleparser;
/**
* Handler of links.
* @author JPEXS
*/
public interface LinkHandler {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.simpleparser;
/**
*
* Type of link.
* @author JPEXS
*/
public enum LinkType {

View File

@@ -19,7 +19,7 @@ package com.jpexs.decompiler.flash.simpleparser;
import java.util.List;
/**
*
* Method scope.
* @author JPEXS
*/
public class MethodScope extends FunctionScope {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.simpleparser;
/**
*
* Namespace.
* @author JPEXS
*/
public class Namespace extends Variable {

View File

@@ -19,7 +19,7 @@ package com.jpexs.decompiler.flash.simpleparser;
import java.util.List;
/**
*
* Scope.
* @author JPEXS
*/
public interface Scope extends VariableOrScope {

View File

@@ -25,7 +25,7 @@ import java.util.Map;
import java.util.Set;
/**
*
* Simple parser used for highlighting in editors.
* @author JPEXS
*/
public interface SimpleParser {
@@ -37,6 +37,12 @@ public interface SimpleParser {
* @param definitionPosToReferences Definition position to references
* @param referenceToDefinition Reference to definition
* @param errors Errors
* @param externalTypes External types
* @param referenceToExternalTypeIndex Reference to external type index
* @param externalTypeIndexToReference External type index to reference
* @param linkHandler Link handler
* @param referenceToExternalTraitKey Reference to external trait key
* @param externalTraitKeyToReference External trait key to reference
* @throws SimpleParseException On parse error
* @throws IOException On I/O error
* @throws InterruptedException On interrupt

View File

@@ -20,7 +20,7 @@ import java.util.ArrayList;
import java.util.List;
/**
*
* Scope of value of var or const trait.
* @author JPEXS
*/
public class TraitVarConstValueScope implements Scope {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.simpleparser;
/**
*
* Type.
* @author JPEXS
*/
public class Type extends Variable {

View File

@@ -20,7 +20,7 @@ import java.util.Arrays;
import java.util.List;
/**
*
* Variable.
* @author JPEXS
*/
public class Variable implements VariableOrScope {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.flash.simpleparser;
/**
*
* Variable or scope.
* @author JPEXS
*/
public interface VariableOrScope {

View File

@@ -23,7 +23,7 @@ import java.io.IOException;
import java.io.OutputStream;
/**
*
* File path tag.
* @author JPEXS
*/
public class FilePathTag extends Tag {

View File

@@ -31,11 +31,9 @@ import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* Lso tag.
* @author JPEXS
*/
public class LsoTag extends Tag {

View File

@@ -38,7 +38,7 @@ import java.util.List;
import java.util.Map;
/**
*
* Sol file.
* @author JPEXS
*/
public class SolFile {

View File

@@ -20,7 +20,7 @@ import java.io.IOException;
import java.io.OutputStream;
/**
*
* Unknown tag.
* @author JPEXS
*/
public class UnknownTag extends Tag {

View File

@@ -564,8 +564,8 @@ public abstract class Tag implements NeedsCharacters, Exportable, Serializable {
/**
* Writes Tag value to the stream, ignoring all scripts
* @param sos
* @throws IOException
* @param sos Output stream
* @throws IOException On I/O error
*/
public void writeTagNoScripts(SWFOutputStream sos) throws IOException {
byte[] newData = getDataNoScript();

View File

@@ -33,7 +33,7 @@ import com.jpexs.helpers.Helper;
import java.util.List;
/**
*
* Converter of PlaceObject versions.
* @author JPEXS
*/
public class PlaceObjectTypeConverter {

View File

@@ -21,7 +21,7 @@ import com.jpexs.decompiler.flash.tags.base.FontTag;
import com.jpexs.decompiler.flash.types.TEXTRECORD;
/**
*
* Text record with font class.
* @author JPEXS
*/
public class AdvancedTextRecord extends TEXTRECORD {

View File

@@ -20,7 +20,7 @@ import java.io.IOException;
import java.io.OutputStream;
/**
*
* Bin data file output stream.
* @author JPEXS
*/
public class BinDataOutputStream extends OutputStream {

View File

@@ -17,7 +17,7 @@
package com.jpexs.decompiler.graph;
/**
*
* Dialect - high level language type.
* @author JPEXS
*/
public abstract class GraphTargetDialect {
@@ -31,8 +31,8 @@ public abstract class GraphTargetDialect {
/**
* Conversion of ECMA value (that's used in simplifications)
* back to GraphTarget item.
* @param value
* @return
* @param value Ecma value
* @return GraphTarget item
*/
public abstract GraphTargetItem valToItem(Object value);
}

View File

@@ -231,6 +231,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
/**
* Constructs GraphTargetItem
* @param dialect Dialect
*/
public GraphTargetItem(GraphTargetDialect dialect) {
this(dialect, null, null, NOPRECEDENCE);
@@ -239,9 +240,10 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
/**
* Constructs GraphTargetItem
*
* @param dialect Dialect
* @param src Source item
* @param lineStartItem Line start item
* @param precedence Precedence
* @param precedence Precedence
*/
public GraphTargetItem(GraphTargetDialect dialect, GraphSourceItem src, GraphSourceItem lineStartItem, int precedence) {
this(dialect, src, lineStartItem, precedence, null);
@@ -250,6 +252,7 @@ public abstract class GraphTargetItem implements Serializable, Cloneable {
/**
* Constructs GraphTargetItem
*
* @param dialect Dialect
* @param src Source item
* @param lineStartItem Line start item
* @param precedence Precedence