com.sun.msv.grammar.util

Class ExpressionFinder

public abstract class ExpressionFinder extends Object implements ExpressionVisitorBoolean

Base class for "finding" something from an expression. This class visits all reachable expressions and returns boolean. In any binary expression, if one branch returns true, then the binary expression itself returns true. Thus it can be used to find something from an expression. Note that unless the derived class do something, this implementation will recurse infinitely.

Author: Kohsuke KAWAGUCHI

Method Summary
booleanonAnyString()
booleanonAttribute(AttributeExp exp)
booleanonChoice(ChoiceExp exp)
booleanonConcur(ConcurExp exp)
booleanonData(DataExp exp)
booleanonElement(ElementExp exp)
booleanonEpsilon()
booleanonInterleave(InterleaveExp exp)
booleanonList(ListExp exp)
booleanonMixed(MixedExp exp)
booleanonNullSet()
booleanonOneOrMore(OneOrMoreExp exp)
booleanonOther(OtherExp exp)
booleanonRef(ReferenceExp exp)
booleanonSequence(SequenceExp exp)
booleanonValue(ValueExp exp)

Method Detail

onAnyString

public boolean onAnyString()

onAttribute

public boolean onAttribute(AttributeExp exp)

onChoice

public boolean onChoice(ChoiceExp exp)

onConcur

public boolean onConcur(ConcurExp exp)

onData

public boolean onData(DataExp exp)

onElement

public boolean onElement(ElementExp exp)

onEpsilon

public boolean onEpsilon()

onInterleave

public boolean onInterleave(InterleaveExp exp)

onList

public boolean onList(ListExp exp)

onMixed

public boolean onMixed(MixedExp exp)

onNullSet

public boolean onNullSet()

onOneOrMore

public boolean onOneOrMore(OneOrMoreExp exp)

onOther

public boolean onOther(OtherExp exp)

onRef

public boolean onRef(ReferenceExp exp)

onSequence

public boolean onSequence(SequenceExp exp)

onValue

public boolean onValue(ValueExp exp)