org.kohsuke.rngom.parse.host.Base Maven / Gradle / Ivy
Go to download
Old JAXB Binding Compiler. Contains source code needed for binding customization files into java sources.
In other words: the *tool* to generate java classes for the given xml representation.
package org.kohsuke.rngom.parse.host;
import org.kohsuke.rngom.ast.builder.Annotations;
import org.kohsuke.rngom.ast.om.Location;
/**
*
* @author
* Kohsuke Kawaguchi ([email protected])
*/
public class Base {
protected AnnotationsHost cast( Annotations ann ) {
if(ann==null)
return nullAnnotations;
else
return (AnnotationsHost)ann;
}
protected LocationHost cast( Location loc ) {
if(loc==null)
return nullLocation;
else
return (LocationHost)loc;
}
private static final AnnotationsHost nullAnnotations = new AnnotationsHost(null,null);
private static final LocationHost nullLocation = new LocationHost(null,null);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy