Package com.sun.msv.grammar.util
Class PossibleNamesCollector
- java.lang.Object
-
- com.sun.msv.grammar.util.PossibleNamesCollector
-
- All Implemented Interfaces:
NameClassVisitor
public class PossibleNamesCollector extends java.lang.Object implements NameClassVisitor
computes the possible names.See the description.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MAGIC
private java.util.Set
names
this set will receive all possible names.private static StringPair
pairForAny
-
Constructor Summary
Constructors Constructor Description PossibleNamesCollector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Set
calc(NameClass nc)
computes all possibile names for this name class, and returns the set ofStringPair
.java.lang.Object
onAnyName(AnyNameClass nc)
java.lang.Object
onChoice(ChoiceNameClass nc)
java.lang.Object
onDifference(DifferenceNameClass nc)
java.lang.Object
onNot(NotNameClass nc)
java.lang.Object
onNsName(NamespaceNameClass nc)
java.lang.Object
onSimple(SimpleNameClass nc)
-
-
-
Field Detail
-
MAGIC
public static final java.lang.String MAGIC
- See Also:
- Constant Field Values
-
pairForAny
private static final StringPair pairForAny
-
names
private java.util.Set names
this set will receive all possible names.
-
-
Method Detail
-
calc
public static java.util.Set calc(NameClass nc)
computes all possibile names for this name class, and returns the set ofStringPair
.
-
onChoice
public java.lang.Object onChoice(ChoiceNameClass nc)
- Specified by:
onChoice
in interfaceNameClassVisitor
-
onAnyName
public java.lang.Object onAnyName(AnyNameClass nc)
- Specified by:
onAnyName
in interfaceNameClassVisitor
-
onSimple
public java.lang.Object onSimple(SimpleNameClass nc)
- Specified by:
onSimple
in interfaceNameClassVisitor
-
onNsName
public java.lang.Object onNsName(NamespaceNameClass nc)
- Specified by:
onNsName
in interfaceNameClassVisitor
-
onNot
public java.lang.Object onNot(NotNameClass nc)
- Specified by:
onNot
in interfaceNameClassVisitor
-
onDifference
public java.lang.Object onDifference(DifferenceNameClass nc)
- Specified by:
onDifference
in interfaceNameClassVisitor
-
-