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 classprivate static final classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate JPanelprivate final JTabbedPaneprivate JPanelprivate JPanelprivate JPanelprivate org.fife.ui.rtextarea.RTextScrollPaneprivate org.fife.ui.rsyntaxtextarea.RSyntaxTextAreaprivate ActionListenerprivate JPanelprivate ActionListenerprivate JPanelprivate JScrollPaneprivate JTextFieldprivate final Colorprivate JPanelprivate JButtonprivate JButtonprivate static final Stringprivate JButtonprivate JFrameprivate ClassListRendererprivate HexEditorprivate ActionListenerprivate JButtonprivate JButtonprivate Stringprivate Stringprivate ClassInfo[]private final JFrameprivate JButtonprivate static final Insetsprivate JComboBox<DecompilerWrapper>private JButtonprivate JButtonprivate org.fife.ui.rtextarea.SearchContextprivate booleanprivate JCheckBoxprivate JPanelprivate JSplitPaneprivate booleanprivate JButton -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DimensionbuttonSizeBasedOnTextField(JButton originalButton, JTextField referenceTextField) private voidbytesWorker(String name) private voidprivate voidbooleanConstructor creates the graphics and adds the action listeners.private voidprivate voidprivate voidinitialSearchBytecode(String query, boolean isRegex, boolean matchesCase) private booleanvoidrefreshComboBox(List<DecompilerWrapper> wrappers) voidreloadClassList(ClassInfo[] classesToReload) Sets the unfiltered class list array and invokes an update.voidreloadTextField(String name, String decompiledClass, byte[] source) Sets the decompiled code into JTextAreaprivate voidsearchBytecode(boolean forward) voidsetBytesActionListener(ActionListener listener) voidsetClassesActionListener(ActionListener listener) voidprivate voidsetDecompiledClass(String name, String data, byte[] source) voidsetInitActionListener(ActionListener listener) voidvoidprivate voidshowApiMenu(Point forcedLocation) static Stringprivate 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()
-