This primitive has no meaning to MSV. For example, the following expression
Expression exp = new OtherExp( pool.createSequence(a,b) );is treated as if MSV sees the following, OtherExp-less expression:
Expression exp = pool.createSequence(a,b);
By using this "transparency", application can implement derived classes
of OtherExp and add application-specific information to AGM.
For example, you can implement AnnotationInfoExp class that derives
OtherExp and introduces "documentation" field.
Then you'll write a customized XMLSchemaReader that
parses <annotation> tag and mix AnnotationInfoExp into an AGM.
Your application can then examine it and do some useful things.
Those application-specific information added through OtherExp are completely ignored by MSV. So the annotated AGM can still be used just like anormal AGM.
| Modifier and Type | Field and Description |
|---|---|
| public Expression | exp
child expression. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | calcEpsilonReducibility()
Implements abstract com. |
| protected final int | calcHashCode()
Implements abstract com. |
| public boolean | equals(Object
the reference object with which to compare. o)Implements abstract com. |
| public String | |
| public final Object | |
| public final Expression | |
| public final boolean | |
| public final void |
| exp | back to summary |
|---|---|
| public Expression exp child expression. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| OtherExp | back to summary |
|---|---|
| public OtherExp() | |
| OtherExp | back to summary |
|---|---|
| public OtherExp(Expression exp) | |
| calcEpsilonReducibility | back to summary |
|---|---|
| protected boolean calcEpsilonReducibility() Implements abstract com. Doc from com. computes epsilon reducibility | |
| calcHashCode | back to summary |
|---|---|
| protected final int calcHashCode() Implements abstract com. Doc from com. 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. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract com. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| printName | back to summary |
|---|---|
| public String printName() returns the string which will be used by ExpressionPrinter to print this expression. | |
| visit | back to summary |
|---|---|
| public final Object visit(ExpressionVisitor visitor) Implements abstract com. | |
| visit | back to summary |
|---|---|
| public final Expression visit(ExpressionVisitorExpression visitor) Implements abstract com. | |
| visit | back to summary |
|---|---|
| public final boolean visit(ExpressionVisitorBoolean visitor) Implements abstract com. | |
| visit | back to summary |
|---|---|
| public final void visit(ExpressionVisitorVoid visitor) Implements abstract com. | |