
com.sun.tools.xjc.reader.gbind.ElementSet 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 com.sun.tools.xjc.reader.gbind;
import java.util.Collections;
import java.util.Iterator;
/**
* A set over a list of {@link Element}.
*
* @author Kohsuke Kawaguchi
*/
interface ElementSet extends Iterable {
/**
* For each element in this set, adds an edge to the given element.
*/
void addNext(Element element);
public static final ElementSet EMPTY_SET = new ElementSet() {
public void addNext(Element element) {
// noop
}
public boolean contains(ElementSet element) {
return this==element;
}
public Iterator iterator() {
return Collections.emptySet().iterator();
}
};
/**
* Doesn't have to be strict. Used just for optimization.
*/
boolean contains(ElementSet rhs);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy