com.sun.msv.grammar

Class ValueExp

public final class ValueExp extends Expression implements DataOrValueExp

Expression that matchs a particular value of a Datatype.

Author: Kohsuke KAWAGUCHI

Field Summary
Datatypedt
Datatype object that is used to test the equality.
StringPairname
name of this datatype.
Objectvalue
This expression matches this value only.
Method Summary
booleanequals(Object o)
StringPairgetName()
DatatypegetType()
Objectvisit(ExpressionVisitor visitor)
Expressionvisit(ExpressionVisitorExpression visitor)
booleanvisit(ExpressionVisitorBoolean visitor)
voidvisit(ExpressionVisitorVoid visitor)

Field Detail

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 Detail

equals

public boolean equals(Object o)

getName

public StringPair getName()

getType

public Datatype getType()

visit

public Object visit(ExpressionVisitor visitor)

visit

public Expression visit(ExpressionVisitorExpression visitor)

visit

public boolean visit(ExpressionVisitorBoolean visitor)

visit

public void visit(ExpressionVisitorVoid visitor)