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, visit
public 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 DataOrValueExp
public StringPair getName()
getName
in interface DataOrValueExp
protected final int calcHashCode()
Expression
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.
calcHashCode
in class Expression
public boolean equals(Object o)
equals
in class Expression
public Object visit(ExpressionVisitor visitor)
visit
in class Expression
public Expression visit(ExpressionVisitorExpression visitor)
visit
in class Expression
public boolean visit(ExpressionVisitorBoolean visitor)
visit
in class Expression
public void visit(ExpressionVisitorVoid visitor)
visit
in class Expression
protected boolean calcEpsilonReducibility()
Expression
calcEpsilonReducibility
in class Expression
Copyright © 2016 Oracle Corporation. All rights reserved.