use of dyvilx.tools.compiler.ast.type.raw.InternalType in project Dyvil by Dyvil.
the class IParameter method visitAnnotation.
default AnnotationVisitor visitAnnotation(String internalType) {
if (this.skipAnnotation(internalType, null)) {
return null;
}
IType type = new InternalType(internalType);
Annotation annotation = new ExternalAnnotation(type);
return new AnnotationReader(this, annotation);
}
use of dyvilx.tools.compiler.ast.type.raw.InternalType 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