Package com.sun.msv.grammar
Class UnaryExp
- java.lang.Object
-
- com.sun.msv.grammar.Expression
-
- com.sun.msv.grammar.UnaryExp
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ListExp
,MixedExp
,OneOrMoreExp
public abstract class UnaryExp extends Expression
Base implementation for those expression who has one child expresison.- Author:
- Kohsuke KAWAGUCHI
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description Expression
exp
child expression.-
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
UnaryExp(Expression exp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
calcHashCode()
Computes the hashCode again.boolean
equals(Object o)
-
Methods inherited from class com.sun.msv.grammar.Expression
calcEpsilonReducibility, getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit, visit, visit, visit, visit
-
-
-
-
Field Detail
-
exp
public final Expression exp
child expression.
-
-
Constructor Detail
-
UnaryExp
protected UnaryExp(Expression exp)
-
-
Method Detail
-
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
public boolean equals(Object o)
- Specified by:
equals
in classExpression
-
-