|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.grammar.Expression
com.sun.msv.grammar.ValueExp
public final class ValueExp
Expression that matchs a particular value of a Datatype
.
Field Summary | |
---|---|
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. |
Fields inherited from class com.sun.msv.grammar.Expression |
---|
anyString, epsilon, nullSet, verifierTag |
Constructor Summary | |
---|---|
protected |
ValueExp(Datatype dt,
StringPair typeName,
Object value)
|
Method Summary | |
---|---|
protected boolean |
calcEpsilonReducibility()
computes epsilon reducibility |
protected int |
calcHashCode()
Computes the hashCode again. |
boolean |
equals(Object o)
|
StringPair |
getName()
|
Datatype |
getType()
|
Object |
visit(ExpressionVisitor visitor)
|
boolean |
visit(ExpressionVisitorBoolean visitor)
|
Expression |
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final Datatype dt
public final Object value
public final StringPair name
Constructor Detail |
---|
protected ValueExp(Datatype dt, StringPair typeName, Object value)
Method Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |