com.sun.msv.generator
Class ElementDeclCollector
java.lang.Object
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.
- Author:
- Kohsuke KAWAGUCHI
- See Also:
- Serialized Form
|
Method Summary |
static Set[] |
collect(Expression exp)
collects all element and attribute declarations. |
void |
onAttribute(AttributeExp exp)
|
void |
onConcur(ConcurExp exp)
|
void |
onElement(ElementExp exp)
|
onConcur
public void onConcur(ConcurExp exp)
onElement
public void onElement(ElementExp exp)
onAttribute
public void onAttribute(AttributeExp exp)
collect
public static Set[] collect(Expression exp)
- collects all element and attribute declarations.
- Returns:
- r[0] : set of all distinct ElementExps.
r[1] : set of all distinct AttributeExps.