Package com.sun.msv.verifier.regexp
Class AttributeFeeder
- java.lang.Object
-
- com.sun.msv.verifier.regexp.AttributeFeeder
-
- All Implemented Interfaces:
ExpressionVisitorExpression
public class AttributeFeeder extends Object implements ExpressionVisitorExpression
Feeds AttributeToken to the expression and obtains the residual (content model). AttributeTokens are fed in order-less fashion.- Author:
- Kohsuke KAWAGUCHI
-
-
Field Summary
Fields Modifier and Type Field Description protected REDocumentDeclaration
docDecl
protected ExpressionPool
pool
-
Constructor Summary
Constructors Constructor Description AttributeFeeder(REDocumentDeclaration docDecl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
feed(Expression exp, AttributeToken token, boolean ignoreUndeclaredAttribute)
Expression
onAnyString()
Expression
onAttribute(AttributeExp exp)
Expression
onChoice(ChoiceExp exp)
Expression
onConcur(ConcurExp exp)
Expression
onData(DataExp exp)
Expression
onElement(ElementExp exp)
Expression
onEpsilon()
Expression
onInterleave(InterleaveExp exp)
Expression
onList(ListExp exp)
Expression
onMixed(MixedExp exp)
Expression
onNullSet()
Expression
onOneOrMore(OneOrMoreExp exp)
Expression
onOther(OtherExp exp)
Expression
onRef(ReferenceExp exp)
Expression
onSequence(SequenceExp exp)
Expression
onValue(ValueExp exp)
-
-
-
Field Detail
-
docDecl
protected final REDocumentDeclaration docDecl
-
pool
protected final ExpressionPool pool
-
-
Constructor Detail
-
AttributeFeeder
public AttributeFeeder(REDocumentDeclaration docDecl)
-
-
Method Detail
-
feed
public final Expression feed(Expression exp, AttributeToken token, boolean ignoreUndeclaredAttribute)
-
onAttribute
public Expression onAttribute(AttributeExp exp)
- Specified by:
onAttribute
in interfaceExpressionVisitorExpression
-
onChoice
public Expression onChoice(ChoiceExp exp)
- Specified by:
onChoice
in interfaceExpressionVisitorExpression
-
onElement
public Expression onElement(ElementExp exp)
- Specified by:
onElement
in interfaceExpressionVisitorExpression
-
onOneOrMore
public Expression onOneOrMore(OneOrMoreExp exp)
- Specified by:
onOneOrMore
in interfaceExpressionVisitorExpression
-
onMixed
public Expression onMixed(MixedExp exp)
- Specified by:
onMixed
in interfaceExpressionVisitorExpression
-
onList
public Expression onList(ListExp exp)
- Specified by:
onList
in interfaceExpressionVisitorExpression
-
onEpsilon
public Expression onEpsilon()
- Specified by:
onEpsilon
in interfaceExpressionVisitorExpression
-
onNullSet
public Expression onNullSet()
- Specified by:
onNullSet
in interfaceExpressionVisitorExpression
-
onAnyString
public Expression onAnyString()
- Specified by:
onAnyString
in interfaceExpressionVisitorExpression
-
onRef
public Expression onRef(ReferenceExp exp)
- Specified by:
onRef
in interfaceExpressionVisitorExpression
-
onOther
public Expression onOther(OtherExp exp)
- Specified by:
onOther
in interfaceExpressionVisitorExpression
-
onSequence
public Expression onSequence(SequenceExp exp)
- Specified by:
onSequence
in interfaceExpressionVisitorExpression
-
onData
public Expression onData(DataExp exp)
- Specified by:
onData
in interfaceExpressionVisitorExpression
-
onValue
public Expression onValue(ValueExp exp)
- Specified by:
onValue
in interfaceExpressionVisitorExpression
-
onConcur
public Expression onConcur(ConcurExp exp)
- Specified by:
onConcur
in interfaceExpressionVisitorExpression
-
onInterleave
public Expression onInterleave(InterleaveExp exp)
- Specified by:
onInterleave
in interfaceExpressionVisitorExpression
-
-