public class ElementDeclCollector extends ExpressionWalker
Modifier and Type | Field and Description |
---|---|
private java.util.Set |
attributes |
private java.util.Set |
elements |
Modifier | Constructor and Description |
---|---|
private |
ElementDeclCollector() |
Modifier and Type | Method and Description |
---|---|
static java.util.Set[] |
collect(Expression exp)
collects all element and attribute declarations.
|
void |
onAttribute(AttributeExp exp) |
void |
onConcur(ConcurExp exp) |
void |
onElement(ElementExp exp) |
onAnyString, onBinExp, onChoice, onData, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onOther, onRef, onSequence, onValue
private final java.util.Set elements
private final java.util.Set attributes
public void onConcur(ConcurExp exp)
onConcur
in interface ExpressionVisitorVoid
onConcur
in class ExpressionWalker
public void onElement(ElementExp exp)
onElement
in interface ExpressionVisitorVoid
onElement
in class ExpressionWalker
public void onAttribute(AttributeExp exp)
onAttribute
in interface ExpressionVisitorVoid
onAttribute
in class ExpressionWalker
public static java.util.Set[] collect(Expression exp)