com.sun.msv.grammar

Class ValueExp

Implemented Interfaces:
DataOrValueExp, Serializable

public final class ValueExp
extends Expression
implements DataOrValueExp

Expression that matchs a particular value of a Datatype.
Author:
Kohsuke KAWAGUCHI
See Also:
Serialized Form

Field Summary

Datatype
dt
Datatype object that is used to test the equality.
StringPair
name
name of this datatype.
Object
value
This expression matches this value only.

Fields inherited from class com.sun.msv.grammar.Expression

anyString, epsilon, nullSet, verifierTag

Method Summary

boolean
equals(Object o)
StringPair
getName()
Datatype
getType()
Object
visit(ExpressionVisitor visitor)
boolean
visit(ExpressionVisitorBoolean visitor)
Expression
visit(ExpressionVisitorExpression visitor)
void
visit(ExpressionVisitorVoid visitor)

Methods inherited from class com.sun.msv.grammar.Expression

equals, getExpandedExp, hashCode, isEpsilonReducible, peelOccurence, visit, visit, visit, visit, visit, visit, visit, visit

Field Details

dt

public final Datatype dt
Datatype object that is used to test the equality.

name

public final StringPair name
name of this datatype. The value of this field is not considered as significant. When two TypedStringExps share the same Datatype object, then they are unified even if they have different names.

value

public final Object value
This expression matches this value only.

Method Details

equals

public boolean equals(Object o)
Overrides:
equals in interface Expression

getName

public StringPair getName()
Specified by:
getName in interface DataOrValueExp

getType

public Datatype getType()
Specified by:
getType in interface DataOrValueExp

visit

public Object visit(ExpressionVisitor visitor)
Overrides:
visit in interface Expression

visit

public boolean visit(ExpressionVisitorBoolean visitor)
Overrides:
visit in interface Expression

visit

public Expression visit(ExpressionVisitorExpression visitor)
Overrides:
visit in interface Expression

visit

public void visit(ExpressionVisitorVoid visitor)
Overrides:
visit in interface Expression