use of dyvilx.tools.compiler.ast.type.generic.GenericType in project Dyvil by Dyvil.
the class ClassFormat method readReferenceType.
@NonNull
private static IType readReferenceType(String desc, int start, int end) {
int index = desc.indexOf('<', start);
if (index >= 0 && index < end) {
final GenericType type = new InternalGenericType(desc.substring(start, index));
final TypeList arguments = type.getArguments();
index++;
while (desc.charAt(index) != '>') {
index = readTyped(desc, index, arguments, true);
}
return type;
}
return new InternalType(desc.substring(start, end));
}
Aggregations