mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 21:47:23 +00:00
Fixed code style
This commit is contained in:
@@ -65,7 +65,7 @@ public class AbstractDocs {
|
||||
protected static String meta(String name, String content) {
|
||||
return "\t\t<meta name=\"" + name + "\" content=\"" + content + "\">" + As3PCodeOtherDocs.NEWLINE;
|
||||
}
|
||||
|
||||
|
||||
protected static String meta(String name, Date content) {
|
||||
return "\t\t<meta name=\"" + name + "\" content=\"" + getISO8601StringForDate(content) + "\">" + As3PCodeOtherDocs.NEWLINE;
|
||||
}
|
||||
@@ -75,7 +75,7 @@ public class AbstractDocs {
|
||||
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
return dateFormat.format(date);
|
||||
}
|
||||
|
||||
|
||||
protected static String hilightArgument(String docs, int argumentIndex) {
|
||||
if (argumentIndex < 0) {
|
||||
return docs;
|
||||
@@ -100,7 +100,7 @@ public class AbstractDocs {
|
||||
symb = lexer.lex();
|
||||
if (symb.type == ParsedSymbol.TYPE_BRACKET_OPEN) {
|
||||
while (symb.type != ParsedSymbol.TYPE_BRACKET_CLOSE && symb.type != ParsedSymbol.TYPE_EOF) {
|
||||
symb = lexer.lex();
|
||||
symb = lexer.lex();
|
||||
}
|
||||
endPos = lexer.yychar() + 1;
|
||||
break;
|
||||
|
||||
@@ -164,7 +164,7 @@ public class As12PCodeDocs extends AbstractDocs {
|
||||
}
|
||||
}
|
||||
return identName.toString();
|
||||
}
|
||||
}
|
||||
|
||||
public static String getDocsForIns(String insName, boolean ui, boolean standalone, boolean nightMode, int argumentToHilight) {
|
||||
insName = insName.toLowerCase();
|
||||
|
||||
@@ -122,7 +122,7 @@ public class As3PCodeDocs extends AbstractDocs {
|
||||
|
||||
String stack = def.hasFlag(AVM2InstructionFlag.UNKNOWN_STACK) ? getProperty("ui.unknown") : stackBefore + "<span class=\"stack-to\">" + getProperty("ui.stack.to") + "</span>" + stackAfter;
|
||||
String operandsDoc = def.hasFlag(AVM2InstructionFlag.UNKNOWN_OPERANDS) ? getProperty("ui.unknown") : getProperty("instruction." + insName + ".operands");
|
||||
|
||||
|
||||
if (standalone) {
|
||||
sb.append("<body class=\"");
|
||||
if (nightMode) {
|
||||
@@ -146,7 +146,7 @@ public class As3PCodeDocs extends AbstractDocs {
|
||||
sb.append(" ").append(getProperty("ui.unknown")).append(NEWLINE);
|
||||
} else if (ui && insName.equals("lookupswitch")) {
|
||||
sb.append(" ");
|
||||
sb.append("<span class=\"instruction-operands\">");
|
||||
sb.append("<span class=\"instruction-operands\">");
|
||||
sb.append(getProperty("instruction.lookupswitch.operands.ui"));
|
||||
sb.append("</span>");
|
||||
} else {
|
||||
@@ -155,7 +155,7 @@ public class As3PCodeDocs extends AbstractDocs {
|
||||
if (def.operands.length > 0) {
|
||||
sb.append(" ");
|
||||
}
|
||||
sb.append("<span class=\"instruction-operands\">");
|
||||
sb.append("<span class=\"instruction-operands\">");
|
||||
for (int i = 0; i < def.operands.length; i++) {
|
||||
int op = def.operands[i];
|
||||
String opDoc = operandsDocs[i];
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -21,5 +21,5 @@ package com.jpexs.decompiler.flash.docs;
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class DocsParseException extends Exception {
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ package com.jpexs.decompiler.flash.docs;
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class ParsedSymbol {
|
||||
|
||||
public static int TYPE_EOF = 0;
|
||||
public static int TYPE_IDENTIFIER = 1;
|
||||
public static int TYPE_COLON = 2;
|
||||
@@ -30,7 +31,7 @@ public class ParsedSymbol {
|
||||
public static int TYPE_COMMA = 6;
|
||||
public static int TYPE_PIPE = 7;
|
||||
public static int TYPE_STAR = 8;
|
||||
|
||||
|
||||
public final int type;
|
||||
public final String value;
|
||||
|
||||
@@ -42,5 +43,5 @@ public class ParsedSymbol {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "symbol[type=" + type + ", value=" + value + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user