com.sun.msv.generator

Class 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

Method Summary
static Set[]collect(Expression exp)
collects all element and attribute declarations.
voidonAttribute(AttributeExp exp)
voidonConcur(ConcurExp exp)
voidonElement(ElementExp exp)

Method Detail

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.

onAttribute

public void onAttribute(AttributeExp exp)

onConcur

public void onConcur(ConcurExp exp)

onElement

public void onElement(ElementExp exp)