use of org.codehaus.groovy.ast.PackageNode in project spring-boot by spring-projects.
the class ResolveDependencyCoordinatesTransformationTests method transformationOfAnnotationOnPackage.
@Test
void transformationOfAnnotationOnPackage() {
PackageNode packageNode = new PackageNode("test");
packageNode.addAnnotation(this.grabAnnotation);
this.moduleNode.setPackage(packageNode);
assertGrabAnnotationHasBeenTransformed();
}
use of org.codehaus.groovy.ast.PackageNode in project groovy-core by groovy.
the class ASTHelper method setPackage.
public PackageNode setPackage(String packageName, List<AnnotationNode> annotations) {
this.packageName = packageName;
if (packageName != null && packageName.length() > 0) {
packageName += '.';
}
PackageNode packageNode = new PackageNode(packageName);
packageNode.addAnnotations(annotations);
output.setPackage(packageNode);
return packageNode;
}
Aggregations