org.kohsuke.rngom.ast.builder.ElementAnnotationBuilder Maven / Gradle / Ivy
package org.kohsuke.rngom.ast.builder;
import org.kohsuke.rngom.ast.om.Location;
import org.kohsuke.rngom.ast.om.ParsedElementAnnotation;
import org.kohsuke.rngom.ast.om.ParsedPattern;
/**
* Used to build foreign element annotations.
*/
public interface ElementAnnotationBuilder<
P extends ParsedPattern,
E extends ParsedElementAnnotation,
L extends Location,
A extends Annotations,
CL extends CommentList> extends Annotations {
/**
* Called when a child text is found.
*/
void addText(String value, L loc, CL comments) throws BuildException;
/**
* Called at the end to build an application data structure.
*/
E makeElementAnnotation() throws BuildException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy