Support private mixin targets, AP improvements & minor fixes, closes #7

This commit is contained in:
Mumfrey committed 2015-01-18 00:05:51 +00:00
1 parent 2ef7cad8a9
commit 0f27299597
17 files changed
+566 -113

No files matched your search

@@ -167,30 +167,19 @@ public abstract class MirrorUtils {
public static String getInternalName(TypeMirror type) {
switch (type.getKind()) {
case ARRAY: return "[" + MirrorUtils.getInternalName(((ArrayType)type).getComponentType());
case BOOLEAN:
return "Z";
case BYTE:
return "B";
case CHAR:
return "C";
case DOUBLE:
return "D";
case FLOAT:
return "F";
case INT:
return "I";
case LONG:
return "J";
case SHORT:
return "S";
case DECLARED:
return "L" + MirrorUtils.getInternalName((DeclaredType)type) + ";";
case ERROR:
// TODO figure out a better way to not crash when we get here
return "Ljava/lang/Object;";
case VOID:
return "V";
case ARRAY: return "[" + MirrorUtils.getInternalName(((ArrayType)type).getComponentType());
case DECLARED: return "L" + MirrorUtils.getInternalName((DeclaredType)type) + ";";
case BOOLEAN: return "Z";
case BYTE: return "B";
case CHAR: return "C";
case DOUBLE: return "D";
case FLOAT: return "F";
case INT: return "I";
case LONG: return "J";
case SHORT: return "S";
case VOID: return "V";
// TODO figure out a better way to not crash when we get here
case ERROR: return "Ljava/lang/Object;";
default:
}