com.sun.msv.verifier.regexp

Class StringCareLevelCalculator

Implemented Interfaces:
ExpressionVisitorBoolean

public class StringCareLevelCalculator
extends ExpressionFinder

calculates how character literals should be treated. This class is thread-safe: multiple threads can simultaneously access the same instance. Note that there is no guarantee that the derived class is thread-safe.
Author:
Kohsuke KAWAGUCHI

Method Summary

static int
calc(Expression exp)
boolean
onAnyString()
boolean
onAttribute(AttributeExp exp)
boolean
onData(DataExp exp)
boolean
onElement(ElementExp exp)
boolean
onList(ListExp exp)
boolean
onMixed(MixedExp exp)
boolean
onValue(ValueExp exp)

Methods inherited from class com.sun.msv.grammar.util.ExpressionFinder

onAnyString, onAttribute, onChoice, onConcur, onData, onElement, onEpsilon, onInterleave, onList, onMixed, onNullSet, onOneOrMore, onOther, onRef, onSequence, onValue

Method Details

calc

public static int calc(Expression exp)

onAnyString

public boolean onAnyString()
Specified by:
onAnyString in interface ExpressionVisitorBoolean
Overrides:
onAnyString in interface ExpressionFinder

onAttribute

public boolean onAttribute(AttributeExp exp)
Specified by:
onAttribute in interface ExpressionVisitorBoolean
Overrides:
onAttribute in interface ExpressionFinder

onData

public boolean onData(DataExp exp)
Specified by:
onData in interface ExpressionVisitorBoolean
Overrides:
onData in interface ExpressionFinder

onElement

public boolean onElement(ElementExp exp)
Specified by:
onElement in interface ExpressionVisitorBoolean
Overrides:
onElement in interface ExpressionFinder

onList

public boolean onList(ListExp exp)
Specified by:
onList in interface ExpressionVisitorBoolean
Overrides:
onList in interface ExpressionFinder

onMixed

public boolean onMixed(MixedExp exp)
Specified by:
onMixed in interface ExpressionVisitorBoolean
Overrides:
onMixed in interface ExpressionFinder

onValue

public boolean onValue(ValueExp exp)
Specified by:
onValue in interface ExpressionVisitorBoolean
Overrides:
onValue in interface ExpressionFinder