com.dchan.jaxb.CreateTraversingVisitorProgressMonitorInterface Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jxbv Show documentation
Show all versions of jxbv Show documentation
JAXB Visitor Plugin for JDK 10
package com.dchan.jaxb;
import com.sun.codemodel.JClass;
import com.sun.codemodel.JMod;
import com.sun.codemodel.JPackage;
import com.sun.tools.xjc.outline.ClassOutline;
import com.sun.tools.xjc.outline.Outline;
import java.util.Set;
class CreateTraversingVisitorProgressMonitorInterface extends CodeCreator {
CreateTraversingVisitorProgressMonitorInterface(Outline outline,
JPackage jPackage) {
super(outline, jPackage);
}
@Override
protected void run(Set classes, Set directClasses) {
setOutput( outline.getClassFactory().createInterface(jpackage, "TraversingVisitorProgressMonitor", null) );
getOutput().method(JMod.NONE, void.class, "visited").param(Object.class, "aVisitable");
getOutput().method(JMod.NONE, void.class, "traversed").param(Object.class, "aVisitable");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy