use of dyvilx.tools.compiler.ast.attribute.annotation.ExternalAnnotation 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.attribute.annotation.ExternalAnnotation in project Dyvil by Dyvil.
the class AttributeList method read.
public static AttributeList read(DataInput in) throws IOException {
final int flags = in.readInt();
final int annotations = in.readShort();
final AttributeList list = new AttributeList(annotations);
list.flags = flags;
list.size = annotations;
for (int i = 0; i < annotations; i++) {
final Annotation annotation = new ExternalAnnotation();
list.data[i] = annotation;
annotation.read(in);
}
return list;
}
use of dyvilx.tools.compiler.ast.attribute.annotation.ExternalAnnotation in project Dyvil by Dyvil.
the class AnnotationReader method visitAnnotation.
@Override
public AnnotationVisitor visitAnnotation(String key, String desc) {
Annotation annotation = new ExternalAnnotation(ClassFormat.extendedToType(desc));
AnnotationExpr value = new AnnotationExpr(annotation);
this.arguments.add(Name.fromRaw(key), value);
return new AnnotationReader(value, annotation);
}
use of dyvilx.tools.compiler.ast.attribute.annotation.ExternalAnnotation in project Dyvil by Dyvil.
the class AnnotationValueReader method visitAnnotation.
@Override
public AnnotationVisitor visitAnnotation(String key, String desc) {
Annotation annotation = new ExternalAnnotation(ClassFormat.extendedToType(desc));
AnnotationExpr value = new AnnotationExpr(annotation);
this.consumer.setValue(value);
return new AnnotationReader(value, annotation);
}
use of dyvilx.tools.compiler.ast.attribute.annotation.ExternalAnnotation in project Dyvil by Dyvil.
the class ValueAnnotationVisitor method visitAnnotation.
@Override
public AnnotationVisitor visitAnnotation(String name, String desc) {
Annotation annotation = new ExternalAnnotation(ClassFormat.extendedToType(desc));
AnnotationExpr value = new AnnotationExpr(annotation);
this.consumer.setValue(value);
return new AnnotationReader(value, annotation);
}
Aggregations