mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-19 15:29:17 +00:00
Flesh out Desc selector javadoc and functionality
This commit is contained in:
1 parent
f9aeec8b05
commit
ef6422f26e
31 files changed
+634
-202
No files matched your search
@@ -26,7 +26,6 @@ package org.spongepowered.asm.util;
|
||||
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
@@ -766,17 +765,6 @@ public final class Bytecode {
|
||||
return desc.substring(0, desc.lastIndexOf(')') + 1) + returnType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the simple name of an annotation, mainly used for printing
|
||||
* annotation names in error messages/user-facing strings
|
||||
*
|
||||
* @param annotationType annotation
|
||||
* @return annotation's simple name
|
||||
*/
|
||||
public static String getSimpleName(Class<? extends Annotation> annotationType) {
|
||||
return annotationType.getSimpleName();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the simple name of a type representing a class
|
||||
*
|
||||
@@ -786,17 +774,6 @@ public final class Bytecode {
|
||||
public static String getSimpleName(Type type) {
|
||||
return type.getSort() < Type.ARRAY ? type.getDescriptor() : Bytecode.getSimpleName(type.getClassName());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the simple name of an annotation, mainly used for printing
|
||||
* annotation names in error messages/user-facing strings
|
||||
*
|
||||
* @param annotation annotation node
|
||||
* @return annotation's simple name
|
||||
*/
|
||||
public static String getSimpleName(AnnotationNode annotation) {
|
||||
return Bytecode.getSimpleName(annotation.desc);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the simple name from an object type descriptor (in L...; format)
|
||||
|
||||
Reference in new issue
Block a user