Package com.sun.msv.grammar
Class ValueExp
java.lang.Object
com.sun.msv.grammar.Expression
com.sun.msv.grammar.ValueExp
- All Implemented Interfaces:
DataOrValueExp
,Serializable
Expression that matchs a particular value of a
Datatype
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.relaxng.datatype.Datatype
Datatype object that is used to test the equality.final StringPair
name of this datatype.private static final long
final Object
This expression matches this value only.Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ValueExp
(org.relaxng.datatype.Datatype dt, StringPair typeName, Object value) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
computes epsilon reducibilityprotected final int
Computes the hashCode again.boolean
getName()
org.relaxng.datatype.Datatype
getType()
visit
(ExpressionVisitor visitor) boolean
visit
(ExpressionVisitorBoolean visitor) visit
(ExpressionVisitorExpression visitor) void
visit
(ExpressionVisitorVoid visitor) Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
Field Details
-
dt
public final org.relaxng.datatype.Datatype dtDatatype object that is used to test the equality. -
value
This expression matches this value only. -
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. -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
ValueExp
-
-
Method Details
-
getType
public org.relaxng.datatype.Datatype getType()- Specified by:
getType
in interfaceDataOrValueExp
-
getName
- Specified by:
getName
in interfaceDataOrValueExp
-
calcHashCode
protected final int calcHashCode()Description copied from class:Expression
Computes the hashCode again.This method and the parameter to the constructor has to be the same. This method is used when the object is being read from the stream.
- Specified by:
calcHashCode
in classExpression
-
equals
- Specified by:
equals
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
calcEpsilonReducibility
protected boolean calcEpsilonReducibility()Description copied from class:Expression
computes epsilon reducibility- Specified by:
calcEpsilonReducibility
in classExpression
-