Reformating to fix checkstyle.

This commit is contained in:
Jindra Petřík
2024-08-07 18:33:17 +02:00
parent a5d3ce4f9b
commit f3da12e032
2432 changed files with 39110 additions and 44808 deletions

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
@@ -533,9 +533,8 @@ public final class DocsOperandLexer {
/**
* Refills the input buffer.
*
* @return <code>false</code>, iff there was new input.
*
* @exception java.io.IOException if any I/O-Error occurs
* @return <code>false</code>, iff there was new input.
* @throws java.io.IOException if any I/O-Error occurs
*/
private boolean zzRefill() throws java.io.IOException {
@@ -608,11 +607,11 @@ public final class DocsOperandLexer {
/**
* Resets the scanner to read from a new input stream. Does not close the
* old reader.
*
* <p>
* All internal variables are reset, the old input stream
* <b>cannot</b> be reused (internal buffer is discarded and lost). Lexical
* state is set to <tt>ZZ_INITIAL</tt>.
*
* <p>
* Internal scan buffer is resized down to its initial length, if it has
* grown.
*
@@ -658,12 +657,11 @@ public final class DocsOperandLexer {
/**
* Returns the character at position <tt>pos</tt> from the matched text.
*
* <p>
* It is equivalent to yytext().charAt(pos), but faster
*
* @param pos the position of the character to fetch. A value from 0 to
* yylength()-1.
*
* @return the character at position pos
*/
public final char yycharat(int pos) {
@@ -679,12 +677,12 @@ public final class DocsOperandLexer {
/**
* Reports an error that occured while scanning.
*
* <p>
* In a wellformed scanner (no or only correct usage of yypushback(int) and
* a match-all fallback rule) this method will only be called with things
* that "Can't Possibly Happen". If this method is called, something is
* seriously wrong (e.g. a JFlex bug producing a faulty scanner etc.).
*
* <p>
* Usual syntax/scanner level error handling should be done in error
* fallback rules.
*
@@ -703,7 +701,7 @@ public final class DocsOperandLexer {
/**
* Pushes the specified amount of characters back into the input stream.
*
* <p>
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again. This number must
@@ -722,7 +720,7 @@ public final class DocsOperandLexer {
* input is encountered or an I/O-Error occurs.
*
* @return the next token
* @exception java.io.IOException if any I/O-Error occurs
* @throws java.io.IOException if any I/O-Error occurs
*/
public ParsedSymbol yylex() throws java.io.IOException {
int zzInput;

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
@@ -18,6 +18,7 @@ package com.jpexs.decompiler.flash.docs;
/**
* Exception thrown when parsing documentation fails.
*
* @author JPEXS
*/
public class DocsParseException extends Exception {

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
*/
@@ -18,6 +18,7 @@ package com.jpexs.decompiler.flash.docs;
/**
* Parsed symbol in documentation.
*
* @author JPEXS
*/
public class ParsedSymbol {

View File

@@ -1,27 +1,32 @@
html, body {
margin:0px;
margin: 0px;
padding: 0px;
}
.instruction {
background-color: #f5f5b5;
color:black;
color: black;
}
.otherdoc {
background-color: #f5f5b5;
color:black;
color: black;
}
li.instruction-item {
list-style:none;
padding:0px;
border:1px solid black;
border-bottom:none;
border-collapse:collapse;
list-style: none;
padding: 0px;
border: 1px solid black;
border-bottom: none;
border-collapse: collapse;
}
ul.instruction-list {
padding-left:0;
display:table;
border-bottom:1px solid black;
padding-left: 0;
display: table;
border-bottom: 1px solid black;
}
strong.instruction-name {
font-weight: bold;
color: blue;
@@ -31,44 +36,57 @@ strong.selected-operand {
font-weight: bold;
color: #800;
}
strong.stack-title {
font-weight: bold;
}
strong.flags-title {
font-weight: bold;
}
.hidden {
display:none
display: none
}
.filter-flag-title {
display:inline-block;
display: inline-block;
width: 50ex;
}
.instruction {
padding:5px;
padding: 5px;
}
.instruction.instruction-flag-noFlashPlayer {
background-color: #cccccc;
}
body {
font-family: serif;
}
h1, h2, h3, h4, h5 {
font-family: sans-serif;
}
.instruction-signature {
font-family: "Courier New", monospace;
font-size: 1.05em;
}
.filter {
font-family: sans-serif;
}
.path {
font-weight: bold;
color: blue;
}
.path-block {
}
.path-docs {
}
@@ -80,18 +98,21 @@ h1, h2, h3, h4, h5 {
body.standalone {
background-color: #f5f5b5;
}
body.standalonenight {
background-color: #330;
}
body.standalonenight .instruction {
background-color: #330;
color:white;
color: white;
}
body.standalonenight .otherdoc {
background-color: #330;
color:white;
color: white;
}
body.standalonenight .instruction.instruction-flag-noFlashPlayer {
background-color: #333;
}

View File

@@ -24,8 +24,7 @@ function hideNoName(name) {
if ((typeof name) != "undefined" && name.trim() != "") {
var ss = lis[i].getElementsByTagName("strong");
for (var s = 0; s < ss.length; s++) {
if (ss[s].className == "instruction-name")
{
if (ss[s].className == "instruction-name") {
var insName = ss[s].innerHTML;
if (insName.toLowerCase().indexOf(name.toLowerCase()) != 0) { //does not start with desired name
showhide(lis[i], false);
@@ -70,11 +69,9 @@ function sortInstructions(order) {
if (cls.indexOf(" instruction-item ") != -1) {
var ss = lis[i].getElementsByTagName(order == "code" ? "span" : "strong");
for (var s = 0; s < ss.length; s++) {
if (ss[s].className == "instruction-" + order)
{
if (ss[s].className == "instruction-" + order) {
var checkedVal = ss[s].innerHTML;
if (smallestVal == null || smallestVal > checkedVal)
{
if (smallestVal == null || smallestVal > checkedVal) {
smallestItem = lis[i];
smallestVal = checkedVal;
}

View File

@@ -1,4 +1,4 @@
/**
* Documentation for instructions and actions.
*/
package com.jpexs.decompiler.flash.docs;
package com.jpexs.decompiler.flash.docs;