com.sun.msv.generator
Class ElementDeclCollector
ExpressionWalker
com.sun.msv.generator.ElementDeclCollector
public class ElementDeclCollector
extends ExpressionWalker
collects all distinct element declaration in the grammar.
As a side effect, it also collects all distinct attribute declarations.
static Set[] | collect(Expression exp) - collects all element and attribute declarations.
|
void | onAttribute(AttributeExp exp)
|
void | onConcur(ConcurExp exp)
|
void | onElement(ElementExp exp)
|
collect
public static Set[] collect(Expression exp)
collects all element and attribute declarations.
- r[0] : set of all distinct ElementExps.
r[1] : set of all distinct AttributeExps.
onAttribute
public void onAttribute(AttributeExp exp)
onConcur
public void onConcur(ConcurExp exp)
onElement
public void onElement(ElementExp exp)