Package org.jrd.frontend.frame.main
Class BytecodeDecompilerView
java.lang.Object
org.jrd.frontend.frame.main.BytecodeDecompilerView
Class that creates GUI for attached VM.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private static final class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private JPanel
private final JTabbedPane
private JPanel
private JPanel
private JPanel
private org.fife.ui.rtextarea.RTextScrollPane
private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
private ActionListener
private JPanel
private ActionListener
private JPanel
private JScrollPane
private JTextField
private final Color
private JPanel
private JButton
private JButton
private static final String
private JButton
private JFrame
private ClassListRenderer
private HexEditor
private ActionListener
private JButton
private JButton
private String
private String
private ClassInfo[]
private final JFrame
private JButton
private static final Insets
private JComboBox<DecompilerWrapper>
private JButton
private JButton
private org.fife.ui.rtextarea.SearchContext
private boolean
private JCheckBox
private JPanel
private JSplitPane
private boolean
private JButton
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Dimension
buttonSizeBasedOnTextField
(JButton originalButton, JTextField referenceTextField) private void
bytesWorker
(String name) private void
private void
boolean
Constructor creates the graphics and adds the action listeners.private void
private void
private void
initialSearchBytecode
(String query, boolean isRegex, boolean matchesCase) private boolean
void
refreshComboBox
(List<DecompilerWrapper> wrappers) void
reloadClassList
(ClassInfo[] classesToReload) Sets the unfiltered class list array and invokes an update.void
reloadTextField
(String name, String decompiledClass, byte[] source) Sets the decompiled code into JTextAreaprivate void
searchBytecode
(boolean forward) void
setBytesActionListener
(ActionListener listener) void
setClassesActionListener
(ActionListener listener) void
private void
setDecompiledClass
(String name, String data, byte[] source) void
setInitActionListener
(ActionListener listener) void
void
private void
showApiMenu
(Point forcedLocation) static String
private void
-
Field Details
-
bytecodeDecompilerPanel
-
splitPane
-
classes
-
classesToolBar
-
reloadClassesButton
-
showInfoCheckBox
-
classesSortField
-
classesSortFieldColor
-
classesPanel
-
classesScrollPane
-
filteredClassesJList
-
filteredClassesRenderer
-
buffersPanel
-
buffersToolBar
-
undoButton
-
redoButton
-
insertButton
-
detachButton
-
initClassButton
-
overwriteButton
-
compileButton
-
compileAndUploadButton
-
pluginComboBox
-
buffers
-
sourceBuffer
-
bytecodeScrollPane
private org.fife.ui.rtextarea.RTextScrollPane bytecodeScrollPane -
bytecodeSyntaxTextArea
private org.fife.ui.rsyntaxtextarea.RSyntaxTextArea bytecodeSyntaxTextArea -
bytecodeSearchControls
-
binaryBuffer
-
hex
-
hexSearchControls
-
bytesActionListener
-
classesActionListener
-
initActionListener
-
compileAction
-
overwriteActionListener
-
popup
-
loadedClasses
-
lastDecompiledClass
-
lastFqn
-
searchContext
private org.fife.ui.rtextarea.SearchContext searchContext -
splitPaneFirstResize
private boolean splitPaneFirstResize -
shouldAttach
private boolean shouldAttach -
mainFrame
-
detachedBytecodeFrame
-
CLASS_LIST_REGISTERED_KEY_CODES
-
PANEL_INSETS
-
DETACH_BUTTON_TEXT
- See Also:
-
ATTACH_BUTTON_TEXT
- See Also:
-
-
Constructor Details
-
BytecodeDecompilerView
-
-
Method Details
-
getBytecodeDecompilerPanel
Constructor creates the graphics and adds the action listeners.- Returns:
- BytecodeDecompilerPanel
-
handleClassInfoSwitching
private void handleClassInfoSwitching() -
isSourceBufferVisible
private boolean isSourceBufferVisible() -
handleBuffersDetaching
private void handleBuffersDetaching() -
styleTooltip
-
updateClassList
private void updateClassList() -
reloadClassList
Sets the unfiltered class list array and invokes an update.- Parameters:
classesToReload
- String[] classesToReload.
-
reloadTextField
Sets the decompiled code into JTextArea- Parameters:
decompiledClass
- String of source code of decompiler class
-
setDecompiledClass
-
setClassesActionListener
-
setInitActionListener
-
setCompileListener
-
setBytesActionListener
-
setPopup
-
setOverwriteActionListener
-
refreshComboBox
-
getSelectedDecompiler
-
initialSearchBytecode
-
searchBytecode
private void searchBytecode(boolean forward) -
deselectBytecodeSyntaxArea
private void deselectBytecodeSyntaxArea() -
showApiMenu
-
buttonSizeBasedOnTextField
public static Dimension buttonSizeBasedOnTextField(JButton originalButton, JTextField referenceTextField) -
classWorker
private void classWorker() -
bytesWorker
-
doShowClassInfo
public boolean doShowClassInfo()
-