MCPcopy Create free account
hub / github.com/FabricMC/Matcher / MethodInfoTab

Class MethodInfoTab

src/main/java/matcher/gui/tab/MethodInfoTab.java:30–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28import matcher.type.MethodVarInstance;
29
30public class MethodInfoTab extends Tab implements IGuiComponent {
31 public MethodInfoTab(Gui gui, ISelectionProvider selectionProvider, boolean unmatchedTmp) {
32 super("method info");
33
34 this.gui = gui;
35 this.selectionProvider = selectionProvider;
36 this.unmatchedTmp = unmatchedTmp;
37
38 for (int i = 0; i < NameType.AUX_COUNT; i++) {
39 auxNameLabels[i] = new Label();
40 }
41
42 init();
43 }
44
45 private void init() {
46 GridPane grid = new GridPane();
47 grid.setPadding(new Insets(GuiConstants.padding));
48 grid.setHgap(GuiConstants.padding);
49 grid.setVgap(GuiConstants.padding);
50 int row = 0;
51
52 row = addRow("Owner", ownerLabel, grid, row);
53 row = addRow("Name", nameLabel, grid, row);
54 row = addRow("Tmp name", tmpNameLabel, grid, row);
55 row = addRow("Mapped name", mappedNameLabel, grid, row);
56
57 for (int i = 0; i < NameType.AUX_COUNT; i++) {
58 row = addRow("AUX name "+(i+1), auxNameLabels[i], grid, row);
59 }
60
61 row = addRow("UID", uidLabel, grid, row);
62 row = addRow("Name obf.", nameObfLabel, grid, row);
63 row = addRow("Inputs", inputLabel, grid, row);
64 row = addRow("Args", argLabel, grid, row);
65 row = addRow("Ret type", retTypeLabel, grid, row);
66 row = addRow("Access", accessLabel, grid, row);
67 row = addRow("Signature", sigLabel, grid, row);
68 row = addRow("Type", typeLabel, grid, row);
69 row = addRow("Parents", parentLabel, grid, row);
70 row = addRow("Children", childLabel, grid, row);
71 row = addRow("Hierarchy", hierarchyLabel, grid, row);
72 row = addRow("Local vars", varLabel, grid, row);
73 row = addRow("Refs in", refMethodInLabel, grid, row);
74 row = addRow("Refs out", refMethodOutLabel, grid, row);
75 row = addRow("Fields read", refFieldReadLabel, grid, row);
76 row = addRow("Fields written", refFieldWriteLabel, grid, row);
77 row = addRow("Comment", mapCommentLabel, grid, row);
78
79 ScrollPane scroll = new ScrollPane(grid);
80 setContent(scroll);
81 }
82
83 private static int addRow(String name, Node content, GridPane grid, int row) {
84 Label label = new Label(name+":");
85 label.setMinWidth(Label.USE_PREF_SIZE);
86 grid.add(label, 0, row);
87 GridPane.setValignment(label, VPos.TOP);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected