public final class ValueExp extends Expression implements DataOrValueExp
Datatype.| Modifier and Type | Field and Description |
|---|---|
org.relaxng.datatype.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.
|
anyString, epsilon, nullSet, verifierTag| Modifier | Constructor and Description |
|---|---|
protected |
ValueExp(org.relaxng.datatype.Datatype dt,
StringPair typeName,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
calcEpsilonReducibility()
computes epsilon reducibility
|
protected int |
calcHashCode()
Computes the hashCode again.
|
boolean |
equals(Object o) |
StringPair |
getName() |
org.relaxng.datatype.Datatype |
getType() |
Object |
visit(ExpressionVisitor visitor) |
boolean |
visit(ExpressionVisitorBoolean visitor) |
Expression |
visit(ExpressionVisitorExpression visitor) |
void |
visit(ExpressionVisitorVoid visitor) |
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visitpublic final org.relaxng.datatype.Datatype dt
public final Object value
public final StringPair name
protected ValueExp(org.relaxng.datatype.Datatype dt,
StringPair typeName,
Object value)
public org.relaxng.datatype.Datatype getType()
getType in interface DataOrValueExppublic StringPair getName()
getName in interface DataOrValueExpprotected final int calcHashCode()
ExpressionThis 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.
calcHashCode in class Expressionpublic boolean equals(Object o)
equals in class Expressionpublic Object visit(ExpressionVisitor visitor)
visit in class Expressionpublic Expression visit(ExpressionVisitorExpression visitor)
visit in class Expressionpublic boolean visit(ExpressionVisitorBoolean visitor)
visit in class Expressionpublic void visit(ExpressionVisitorVoid visitor)
visit in class Expressionprotected boolean calcEpsilonReducibility()
ExpressioncalcEpsilonReducibility in class ExpressionCopyright © 2014 Oracle Corporation. All Rights Reserved.