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

Method visit

src/main/java/matcher/gui/tab/HtmlTextifier.java:79–170  ·  view source on GitHub ↗
(
			final int version,
			final int access,
			final String name,
			final String signature,
			final String superName,
			final String[] interfaces)

Source from the content-addressed store, hash-verified

77 // -----------------------------------------------------------------------------------------------
78
79 @Override
80 public void visit(
81 final int version,
82 final int access,
83 final String name,
84 final String signature,
85 final String superName,
86 final String[] interfaces) {
87 if ((access & Opcodes.ACC_MODULE) != 0) {
88 // Modules are printed in visitModule.
89 return;
90 }
91
92 this.access = access;
93 int majorVersion = version & 0xFFFF;
94 int minorVersion = version >>> 16;
95 stringBuilder.setLength(0);
96 stringBuilder
97 .append("<span class=\"comment\">")
98 .append("// class version ")
99 .append(majorVersion)
100 .append('.')
101 .append(minorVersion)
102 .append(" (")
103 .append(version)
104 .append(')')
105 .append("</span>");
106 if ((access & Opcodes.ACC_DEPRECATED) != 0) {
107 stringBuilder.append(DEPRECATED);
108 }
109
110 if ((access & Opcodes.ACC_RECORD) != 0) {
111 stringBuilder.append(RECORD);
112 }
113
114 appendRawAccess(access);
115
116 appendDescriptor(CLASS_SIGNATURE, signature);
117
118 if (signature != null) {
119 appendJavaDeclaration(name, signature);
120 }
121
122 appendAccess(access & ~(Opcodes.ACC_SUPER | Opcodes.ACC_MODULE));
123
124 if ((access & Opcodes.ACC_ANNOTATION) != 0) {
125 stringBuilder
126 .append("<span class=\"keyword\">")
127 .append("@interface")
128 .append("</span> ");
129 } else if ((access & Opcodes.ACC_INTERFACE) != 0) {
130 stringBuilder
131 .append("<span class=\"keyword\">")
132 .append("interface")
133 .append("</span> ");
134 } else if ((access & Opcodes.ACC_ENUM) == 0) {
135 stringBuilder
136 .append("<span class=\"keyword\">")

Callers

nothing calls this directly

Calls 15

appendRawAccessMethod · 0.95
appendDescriptorMethod · 0.95
appendJavaDeclarationMethod · 0.95
appendAccessMethod · 0.95
visitAnnotationValueMethod · 0.95
visitStringMethod · 0.95
visitTypeMethod · 0.95
visitByteMethod · 0.95
visitBooleanMethod · 0.95
visitShortMethod · 0.95
visitCharMethod · 0.95
visitIntMethod · 0.95

Tested by

no test coverage detected