Javadoc updates

This commit is contained in:
dragonmacher
2025-12-22 16:09:07 -05:00
parent 1282843fb0
commit e64e36aae1

View File

@@ -970,7 +970,7 @@ public class DecompileOptions {
} }
/** /**
* @return the brace formatting style for function bodies * {@return the brace formatting style for function bodies.}
*/ */
public BraceStyle getFunctionBraceFormat() { public BraceStyle getFunctionBraceFormat() {
return braceFunction; return braceFunction;
@@ -985,7 +985,7 @@ public class DecompileOptions {
} }
/** /**
* @return the brace formatting style for if/else code blocks * {@return the brace formatting style for if/else code blocks.}
*/ */
public BraceStyle getIfElseBraceFormat() { public BraceStyle getIfElseBraceFormat() {
return braceIfElse; return braceIfElse;
@@ -1000,7 +1000,7 @@ public class DecompileOptions {
} }
/** /**
* @return the brace formatting style for loop bodies * {@return the brace formatting style for loop bodies.}
*/ */
public BraceStyle getLoopBraceFormat() { public BraceStyle getLoopBraceFormat() {
return braceLoop; return braceLoop;
@@ -1015,7 +1015,7 @@ public class DecompileOptions {
} }
/** /**
* @return the brace formatting style for switch blocks * {@return the brace formatting style for switch blocks.}
*/ */
public BraceStyle getSwitchBraceFormat() { public BraceStyle getSwitchBraceFormat() {
return braceSwitch; return braceSwitch;
@@ -1030,7 +1030,7 @@ public class DecompileOptions {
} }
/** /**
* @return the maximum number of characters the decompiler displays in a single line of output * {@return the maximum number of characters the decompiler displays in a single line of output.}
*/ */
public int getMaxWidth() { public int getMaxWidth() {
return maxwidth; return maxwidth;
@@ -1045,84 +1045,84 @@ public class DecompileOptions {
} }
/** /**
* @return color associated with keyword tokens * {@return color associated with keyword tokens.}
*/ */
public Color getKeywordColor() { public Color getKeywordColor() {
return HIGHLIGHT_KEYWORD_COLOR; return HIGHLIGHT_KEYWORD_COLOR;
} }
/** /**
* @return color associated with data-type tokens * {@return color associated with data-type tokens.}
*/ */
public Color getTypeColor() { public Color getTypeColor() {
return HIGHLIGHT_TYPE_COLOR; return HIGHLIGHT_TYPE_COLOR;
} }
/** /**
* @return color used to display comments * {@return color used to display comments.}
*/ */
public Color getCommentColor() { public Color getCommentColor() {
return HIGHLIGHT_COMMENT_COLOR; return HIGHLIGHT_COMMENT_COLOR;
} }
/** /**
* @return color associated with constant tokens * {@return color associated with constant tokens.}
*/ */
public Color getConstantColor() { public Color getConstantColor() {
return HIGHLIGHT_CONST_COLOR; return HIGHLIGHT_CONST_COLOR;
} }
/** /**
* @return color associated with (local) variable tokens * {@return color associated with (local) variable tokens.}
*/ */
public Color getVariableColor() { public Color getVariableColor() {
return HIGHLIGHT_VARIABLE_COLOR; return HIGHLIGHT_VARIABLE_COLOR;
} }
/** /**
* @return color associated with parameter tokens * {@return color associated with parameter tokens.}
*/ */
public Color getParameterColor() { public Color getParameterColor() {
return HIGHLIGHT_PARAMETER_COLOR; return HIGHLIGHT_PARAMETER_COLOR;
} }
/** /**
* @return color associated with global variable tokens * {@return color associated with global variable tokens.}
*/ */
public Color getGlobalColor() { public Color getGlobalColor() {
return HIGHLIGHT_GLOBAL_COLOR; return HIGHLIGHT_GLOBAL_COLOR;
} }
/** /**
* @return color associated with volatile variables or other special tokens * {@return color associated with volatile variables or other special tokens.}
*/ */
public Color getSpecialColor() { public Color getSpecialColor() {
return HIGHLIGHT_SPECIAL_COLOR; return HIGHLIGHT_SPECIAL_COLOR;
} }
/** /**
* @return color for generic syntax or other unspecified tokens * {@return color for generic syntax or other unspecified tokens.}
*/ */
public Color getDefaultColor() { public Color getDefaultColor() {
return HIGHLIGHT_DEFAULT_COLOR; return HIGHLIGHT_DEFAULT_COLOR;
} }
/** /**
* @return color used on tokens that need to warn of an error or other unusual conditions * {@return color used on tokens that need to warn of an error or other unusual conditions.}
*/ */
public Color getErrorColor() { public Color getErrorColor() {
return ERROR_COLOR; return ERROR_COLOR;
} }
/** /**
* @return the background color for the decompiler window * {@return the background color for the decompiler window.}
*/ */
public Color getBackgroundColor() { public Color getBackgroundColor() {
return BACKGROUND_COLOR; return BACKGROUND_COLOR;
} }
/** /**
* @return the color used display the current highlighted variable * {@return the color used display the current highlighted variable.}
*/ */
public Color getCurrentVariableHighlightColor() { public Color getCurrentVariableHighlightColor() {
return HIGHLIGHT_CURRENT_VARIABLE_COLOR; return HIGHLIGHT_CURRENT_VARIABLE_COLOR;
@@ -1143,21 +1143,21 @@ public class DecompileOptions {
} }
/** /**
* @return color used to highlight search results * {@return color used to highlight search results.}
*/ */
public Color getSearchHighlightColor() { public Color getSearchHighlightColor() {
return SEARCH_HIGHLIGHT_COLOR; return SEARCH_HIGHLIGHT_COLOR;
} }
/** /**
* @return the mouse button that should be used to toggle the primary token highlight * {@return the mouse button that should be used to toggle the primary token highlight.}
*/ */
public int getMiddleMouseHighlightButton() { public int getMiddleMouseHighlightButton() {
return middleMouseHighlightButton; return middleMouseHighlightButton;
} }
/** /**
* @return true if Pre comments are included as part of decompiler output * {@return true if Pre comments are included as part of decompiler output.}
*/ */
public boolean isPRECommentIncluded() { public boolean isPRECommentIncluded() {
return commentPREInclude; return commentPREInclude;
@@ -1172,7 +1172,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if Plate comments are included as part of decompiler output * {@return true if Plate comments are included as part of decompiler output.}
*/ */
public boolean isPLATECommentIncluded() { public boolean isPLATECommentIncluded() {
return commentPLATEInclude; return commentPLATEInclude;
@@ -1187,7 +1187,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if Post comments are included as part of decompiler output * {@return true if Post comments are included as part of decompiler output.}
*/ */
public boolean isPOSTCommentIncluded() { public boolean isPOSTCommentIncluded() {
return commentPOSTInclude; return commentPOSTInclude;
@@ -1202,7 +1202,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if End-of-line comments are included as part of decompiler output * {@return true if End-of-line comments are included as part of decompiler output.}
*/ */
public boolean isEOLCommentIncluded() { public boolean isEOLCommentIncluded() {
return commentEOLInclude; return commentEOLInclude;
@@ -1217,7 +1217,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if WARNING comments are included as part of decompiler output * {@return true if WARNING comments are included as part of decompiler output.}
*/ */
public boolean isWARNCommentIncluded() { public boolean isWARNCommentIncluded() {
return commentWARNInclude; return commentWARNInclude;
@@ -1233,7 +1233,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if function header comments are included as part of decompiler output * {@return true if function header comments are included as part of decompiler output.}
*/ */
public boolean isHeadCommentIncluded() { public boolean isHeadCommentIncluded() {
return commentHeadInclude; return commentHeadInclude;
@@ -1248,7 +1248,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if the decompiler currently eliminates unreachable code * {@return true if the decompiler currently eliminates unreachable code.}
*/ */
public boolean isEliminateUnreachable() { public boolean isEliminateUnreachable() {
return eliminateUnreachable; return eliminateUnreachable;
@@ -1263,7 +1263,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if the decompiler currently respects read-only flags * {@return true if the decompiler currently respects read-only flags.}
*/ */
public boolean isRespectReadOnly() { public boolean isRespectReadOnly() {
return readOnly; return readOnly;
@@ -1296,14 +1296,14 @@ public class DecompileOptions {
} }
/** /**
* @return true if line numbers should be displayed with decompiler output. * {@return true if line numbers should be displayed with decompiler output.}
*/ */
public boolean isDisplayLineNumbers() { public boolean isDisplayLineNumbers() {
return displayLineNumbers; return displayLineNumbers;
} }
/** /**
* @return the source programming language that decompiler output is rendered in * {@return the source programming language that decompiler output is rendered in.}
*/ */
public DecompilerLanguage getDisplayLanguage() { public DecompilerLanguage getDisplayLanguage() {
return displayLanguage; return displayLanguage;
@@ -1331,7 +1331,7 @@ public class DecompileOptions {
} }
/** /**
* @return true if calling convention names are displayed as part of function signatures * {@return true if calling convention names are displayed as part of function signatures.}
*/ */
public boolean isConventionPrint() { public boolean isConventionPrint() {
return conventionPrint; return conventionPrint;
@@ -1370,7 +1370,7 @@ public class DecompileOptions {
} }
/** /**
* @return the font that should be used to render decompiler output * {@return the font that should be used to render decompiler output.}
*/ */
public Font getDefaultFont() { public Font getDefaultFont() {
return Gui.getFont(DEFAULT_FONT_ID); return Gui.getFont(DEFAULT_FONT_ID);
@@ -1453,7 +1453,7 @@ public class DecompileOptions {
} }
/** /**
* @return the style in which comments are printed in decompiler output * {@return the style in which comments are printed in decompiler output.}
*/ */
public CommentStyleEnum getCommentStyle() { public CommentStyleEnum getCommentStyle() {
return commentStyle; return commentStyle;
@@ -1477,7 +1477,8 @@ public class DecompileOptions {
} }
/** /**
* @return true if the decompiler currently simplifies predication * {@return true if predicate simplification is enabled.}
* @see #PREDICATE_OPTIONDESCRIPTION
*/ */
public boolean isPredicate() { public boolean isPredicate() {
return predicate; return predicate;
@@ -1487,13 +1488,15 @@ public class DecompileOptions {
* Set whether the decompiler should simplify predication (combine conditional execution * Set whether the decompiler should simplify predication (combine conditional execution
* into if/else constructs). * into if/else constructs).
* @param predicate true to enable predication simplification * @param predicate true to enable predication simplification
* @see #PREDICATE_OPTIONDESCRIPTION
*/ */
public void setPredicate(boolean predicate) { public void setPredicate(boolean predicate) {
this.predicate = predicate; this.predicate = predicate;
} }
/** /**
* @return true if instructions with no p-code implementation are treated as NOP * {@return true if instructions with no p-code implementation are treated as NOP.}
* @see #IGNOREUNIMPL_OPTIONDESCRIPTION
*/ */
public boolean isIgnoreUnimplemented() { public boolean isIgnoreUnimplemented() {
return ignoreunimpl; return ignoreunimpl;
@@ -1502,13 +1505,15 @@ public class DecompileOptions {
/** /**
* Set whether instructions without p-code implementations should be treated as NOP. * Set whether instructions without p-code implementations should be treated as NOP.
* @param ignore true to ignore unimplemented instructions * @param ignore true to ignore unimplemented instructions
* @see #IGNOREUNIMPL_OPTIONDESCRIPTION
*/ */
public void setIgnoreUnimplemented(boolean ignore) { public void setIgnoreUnimplemented(boolean ignore) {
this.ignoreunimpl = ignore; this.ignoreunimpl = ignore;
} }
/** /**
* @return true if constants that look like addresses are inferred as pointers * {@return true if constants that look like addresses are inferred as pointers.}
* @see #INFERCONSTPTR_OPTIONDESCRIPTION
*/ */
public boolean isInferConstantPointers() { public boolean isInferConstantPointers() {
return inferconstptr; return inferconstptr;
@@ -1517,13 +1522,15 @@ public class DecompileOptions {
/** /**
* Set whether constants that can be interpreted as addresses should be treated as pointers. * Set whether constants that can be interpreted as addresses should be treated as pointers.
* @param infer true to infer constant pointers * @param infer true to infer constant pointers
* @see #INFERCONSTPTR_OPTIONDESCRIPTION
*/ */
public void setInferConstantPointers(boolean infer) { public void setInferConstantPointers(boolean infer) {
this.inferconstptr = infer; this.inferconstptr = infer;
} }
/** /**
* @return true if the decompiler attempts to recover for-loops * {@return true if the decompiler attempts to recover for-loops.}
* @see #ANALYZEFORLOOPS_OPTIONDESCRIPTION
*/ */
public boolean isAnalyzeForLoops() { public boolean isAnalyzeForLoops() {
return analyzeForLoops; return analyzeForLoops;
@@ -1532,13 +1539,15 @@ public class DecompileOptions {
/** /**
* Set whether the decompiler should try to recover for-loop constructs. * Set whether the decompiler should try to recover for-loop constructs.
* @param analyze true to enable for-loop recovery * @param analyze true to enable for-loop recovery
* @see #ANALYZEFORLOOPS_OPTIONDESCRIPTION
*/ */
public void setAnalyzeForLoops(boolean analyze) { public void setAnalyzeForLoops(boolean analyze) {
this.analyzeForLoops = analyze; this.analyzeForLoops = analyze;
} }
/** /**
* @return true if combined structure field copies are split * {@return true if combined structure field copies are split.}
* @see #SPLITSTRUCTURES_OPTIONDESCRIPTION
*/ */
public boolean isSplitStructures() { public boolean isSplitStructures() {
return splitStructures; return splitStructures;
@@ -1547,13 +1556,15 @@ public class DecompileOptions {
/** /**
* Set whether copies to/from structures that touch multiple fields should be split. * Set whether copies to/from structures that touch multiple fields should be split.
* @param split true to split combined structure field copies * @param split true to split combined structure field copies
* @see #SPLITSTRUCTURES_OPTIONDESCRIPTION
*/ */
public void setSplitStructures(boolean split) { public void setSplitStructures(boolean split) {
this.splitStructures = split; this.splitStructures = split;
} }
/** /**
* @return true if combined array element copies are split * {@return true if combined array element copies are split.}
* @see #SPLITARRAYS_OPTIONDESCRIPTION
*/ */
public boolean isSplitArrays() { public boolean isSplitArrays() {
return splitArrays; return splitArrays;
@@ -1562,13 +1573,15 @@ public class DecompileOptions {
/** /**
* Set whether copies to/from arrays that touch multiple elements should be split. * Set whether copies to/from arrays that touch multiple elements should be split.
* @param split true to split combined array element copies * @param split true to split combined array element copies
* @see #SPLITARRAYS_OPTIONDESCRIPTION
*/ */
public void setSplitArrays(boolean split) { public void setSplitArrays(boolean split) {
this.splitArrays = split; this.splitArrays = split;
} }
/** /**
* @return true if pointer copies to combined elements are split * {@return true if pointer copies to combined elements are split.}
* @see #SPLITPOINTERS_OPTIONDESCRIPTION
*/ */
public boolean isSplitPointers() { public boolean isSplitPointers() {
return splitPointers; return splitPointers;
@@ -1577,13 +1590,15 @@ public class DecompileOptions {
/** /**
* Set whether pointer copies that access multiple elements/fields should be split. * Set whether pointer copies that access multiple elements/fields should be split.
* @param split true to split pointer copies * @param split true to split pointer copies
* @see #SPLITPOINTERS_OPTIONDESCRIPTION
*/ */
public void setSplitPointers(boolean split) { public void setSplitPointers(boolean split) {
this.splitPointers = split; this.splitPointers = split;
} }
/** /**
* @return the current policy for ignoring NaN operations * {@return the current policy for ignoring NaN operations.}
* @see #NANIGNORE_OPTIONDESCRIPTION
*/ */
public NanIgnoreEnum getNanIgnore() { public NanIgnoreEnum getNanIgnore() {
return nanIgnore; return nanIgnore;
@@ -1592,13 +1607,15 @@ public class DecompileOptions {
/** /**
* Set the policy for ignoring NaN operations in decompiler output. * Set the policy for ignoring NaN operations in decompiler output.
* @param nanIgnore the NanIgnoreEnum value to set * @param nanIgnore the NanIgnoreEnum value to set
* @see #NANIGNORE_OPTIONDESCRIPTION
*/ */
public void setNanIgnore(NanIgnoreEnum nanIgnore) { public void setNanIgnore(NanIgnoreEnum nanIgnore) {
this.nanIgnore = nanIgnore; this.nanIgnore = nanIgnore;
} }
/** /**
* @return true if null pointers are printed as the token 'NULL' * {@return true if null pointers are printed as the token 'NULL'.}
* @see #NULLTOKEN_OPTIONDESCRIPTION
*/ */
public boolean isNullToken() { public boolean isNullToken() {
return nullToken; return nullToken;
@@ -1607,28 +1624,32 @@ public class DecompileOptions {
/** /**
* Set whether null pointers should be displayed using the 'NULL' token. * Set whether null pointers should be displayed using the 'NULL' token.
* @param nullToken true to print 'NULL' for null pointers * @param nullToken true to print 'NULL' for null pointers
* @see #NULLTOKEN_OPTIONDESCRIPTION
*/ */
public void setNullToken(boolean nullToken) { public void setNullToken(boolean nullToken) {
this.nullToken = nullToken; this.nullToken = nullToken;
} }
/** /**
* @return true if inplace assignment tokens (+=, *=, etc.) are used * {@return true if inplace assignment tokens (e.g., +=, *=, etc.) are used.}
* @see #INPLACEOP_OPTIONDESCRIPTION
*/ */
public boolean isInplaceTokens() { public boolean isInplaceTokens() {
return inplaceTokens; return inplaceTokens;
} }
/** /**
* Set whether inplace assignment tokens should be used in output. * Set whether inplace assignment tokens (e.g., +=, *=, etc.) are used.
* @param inplace true to enable inplace tokens * @param inplace true to enable inplace tokens
* @see #INPLACEOP_OPTIONDESCRIPTION
*/ */
public void setInplaceTokens(boolean inplace) { public void setInplaceTokens(boolean inplace) {
this.inplaceTokens = inplace; this.inplaceTokens = inplace;
} }
/** /**
* @return the current alias blocking policy * {@return the current alias blocking policy.}
* @see #ALIASBLOCK_OPTIONDESCRIPTION
*/ */
public AliasBlockEnum getAliasBlock() { public AliasBlockEnum getAliasBlock() {
return aliasBlock; return aliasBlock;
@@ -1637,13 +1658,14 @@ public class DecompileOptions {
/** /**
* Set which data-types block pointer aliasing across stack boundaries. * Set which data-types block pointer aliasing across stack boundaries.
* @param aliasBlock the AliasBlockEnum value to set * @param aliasBlock the AliasBlockEnum value to set
* @see #ALIASBLOCK_OPTIONDESCRIPTION
*/ */
public void setAliasBlock(AliasBlockEnum aliasBlock) { public void setAliasBlock(AliasBlockEnum aliasBlock) {
this.aliasBlock = aliasBlock; this.aliasBlock = aliasBlock;
} }
/** /**
* @return number of characters per indent level * {@return number of characters per indent level.}
*/ */
public int getIndentWidth() { public int getIndentWidth() {
return indentwidth; return indentwidth;
@@ -1658,7 +1680,7 @@ public class DecompileOptions {
} }
/** /**
* @return comment line indent level (number of characters) * {@return comment line indent level (number of characters).}
*/ */
public int getCommentIndent() { public int getCommentIndent() {
return commentindent; return commentindent;
@@ -1673,7 +1695,7 @@ public class DecompileOptions {
} }
/** /**
* @return strategy for displaying namespaces * {@return strategy for displaying namespaces.}
*/ */
public NamespaceStrategy getNamespaceStrategy() { public NamespaceStrategy getNamespaceStrategy() {
return namespaceStrategy; return namespaceStrategy;
@@ -1688,7 +1710,7 @@ public class DecompileOptions {
} }
/** /**
* @return how integers are formatted in output * {@return how integers are formatted in output.}
*/ */
public IntegerFormatEnum getIntegerFormat() { public IntegerFormatEnum getIntegerFormat() {
return integerFormat; return integerFormat;