Package com.sun.msv.grammar
Class ValueExp
- java.lang.Object
-
- com.sun.msv.grammar.Expression
-
- com.sun.msv.grammar.ValueExp
-
- All Implemented Interfaces:
DataOrValueExp,java.io.Serializable
public final class ValueExp extends Expression implements DataOrValueExp
Expression that matchs a particular value of aDatatype.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description org.relaxng.datatype.DatatypedtDatatype object that is used to test the equality.StringPairnamename of this datatype.private static longserialVersionUIDjava.lang.ObjectvalueThis expression matches this value only.-
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedValueExp(org.relaxng.datatype.Datatype dt, StringPair typeName, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancalcEpsilonReducibility()computes epsilon reducibilityprotected intcalcHashCode()Computes the hashCode again.booleanequals(java.lang.Object o)StringPairgetName()org.relaxng.datatype.DatatypegetType()java.lang.Objectvisit(ExpressionVisitor visitor)booleanvisit(ExpressionVisitorBoolean visitor)Expressionvisit(ExpressionVisitorExpression visitor)voidvisit(ExpressionVisitorVoid visitor)-
Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
-
-
-
Field Detail
-
dt
public final org.relaxng.datatype.Datatype dt
Datatype object that is used to test the equality.
-
value
public final java.lang.Object value
This expression matches this value only.
-
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.
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValueExp
protected ValueExp(org.relaxng.datatype.Datatype dt, StringPair typeName, java.lang.Object value)
-
-
Method Detail
-
getType
public org.relaxng.datatype.Datatype getType()
- Specified by:
getTypein interfaceDataOrValueExp
-
getName
public StringPair getName()
- Specified by:
getNamein interfaceDataOrValueExp
-
calcHashCode
protected final int calcHashCode()
Description copied from class:ExpressionComputes 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:
calcHashCodein classExpression
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin classExpression
-
visit
public java.lang.Object visit(ExpressionVisitor visitor)
- Specified by:
visitin classExpression
-
visit
public Expression visit(ExpressionVisitorExpression visitor)
- Specified by:
visitin classExpression
-
visit
public boolean visit(ExpressionVisitorBoolean visitor)
- Specified by:
visitin classExpression
-
visit
public void visit(ExpressionVisitorVoid visitor)
- Specified by:
visitin classExpression
-
calcEpsilonReducibility
protected boolean calcEpsilonReducibility()
Description copied from class:Expressioncomputes epsilon reducibility- Specified by:
calcEpsilonReducibilityin classExpression
-
-