com.sun.msv.reader
Class RunAwayExpressionChecker

java.lang.Object
  |
  +--com.sun.msv.reader.RunAwayExpressionChecker
All Implemented Interfaces:
ExpressionVisitorVoid

public class RunAwayExpressionChecker
extends Object
implements ExpressionVisitorVoid

makes sure that the expression does not run away. "run-away" expressions are expressions like this. <hedgeRule label="foo" /> <hedgeRef label="foo" /> </hedgeRule> Apparently, those expressions cannot be expressed in string regular expression. Therefore run-away expressions are prohibited in both RELAX and TREX.

Author:
Kohsuke KAWAGUCHI

Method Summary
static void check(GrammarReader reader, Expression exp)
           
 void onAnyString()
           
 void onAttribute(AttributeExp exp)
           
 void onChoice(ChoiceExp exp)
           
 void onConcur(ConcurExp exp)
           
 void onElement(ElementExp exp)
           
 void onEpsilon()
           
 void onInterleave(InterleaveExp exp)
           
 void onKey(KeyExp exp)
           
 void onList(ListExp exp)
           
 void onMixed(MixedExp exp)
           
 void onNullSet()
           
 void onOneOrMore(OneOrMoreExp exp)
           
 void onOther(OtherExp exp)
           
 void onRef(ReferenceExp exp)
           
 void onSequence(SequenceExp exp)
           
 void onTypedString(TypedStringExp exp)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

check

public static void check(GrammarReader reader,
                         Expression exp)

onAttribute

public void onAttribute(AttributeExp exp)
Specified by:
onAttribute in interface ExpressionVisitorVoid

onConcur

public void onConcur(ConcurExp exp)
Specified by:
onConcur in interface ExpressionVisitorVoid

onInterleave

public void onInterleave(InterleaveExp exp)
Specified by:
onInterleave in interface ExpressionVisitorVoid

onSequence

public void onSequence(SequenceExp exp)
Specified by:
onSequence in interface ExpressionVisitorVoid

onChoice

public void onChoice(ChoiceExp exp)
Specified by:
onChoice in interface ExpressionVisitorVoid

onOneOrMore

public void onOneOrMore(OneOrMoreExp exp)
Specified by:
onOneOrMore in interface ExpressionVisitorVoid

onMixed

public void onMixed(MixedExp exp)
Specified by:
onMixed in interface ExpressionVisitorVoid

onList

public void onList(ListExp exp)
Specified by:
onList in interface ExpressionVisitorVoid

onKey

public void onKey(KeyExp exp)
Specified by:
onKey in interface ExpressionVisitorVoid

onEpsilon

public void onEpsilon()
Specified by:
onEpsilon in interface ExpressionVisitorVoid

onNullSet

public void onNullSet()
Specified by:
onNullSet in interface ExpressionVisitorVoid

onAnyString

public void onAnyString()
Specified by:
onAnyString in interface ExpressionVisitorVoid

onTypedString

public void onTypedString(TypedStringExp exp)
Specified by:
onTypedString in interface ExpressionVisitorVoid

onRef

public void onRef(ReferenceExp exp)
Specified by:
onRef in interface ExpressionVisitorVoid

onOther

public void onOther(OtherExp exp)
Specified by:
onOther in interface ExpressionVisitorVoid

onElement

public void onElement(ElementExp exp)
Specified by:
onElement in interface ExpressionVisitorVoid