use of dyvilx.tools.compiler.ast.expression.AnnotationExpr 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.expression.AnnotationExpr 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.expression.AnnotationExpr 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