public class OtherExp extends Expression
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 |
|---|---|
Expression |
exp
child expression.
|
anyString, epsilon, nullSet, verifierTag| Constructor and Description |
|---|
OtherExp() |
OtherExp(Expression exp) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
calcEpsilonReducibility()
computes epsilon reducibility
|
protected int |
calcHashCode()
Computes the hashCode again.
|
boolean |
equals(Object o) |
String |
printName()
returns the string which will be used by ExpressionPrinter
to print this expression.
|
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 Expression exp
public OtherExp()
public OtherExp(Expression exp)
public String printName()
protected 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 Expressionprotected boolean calcEpsilonReducibility()
ExpressioncalcEpsilonReducibility in class Expressionpublic final Object visit(ExpressionVisitor visitor)
visit in class Expressionpublic final Expression visit(ExpressionVisitorExpression visitor)
visit in class Expressionpublic final boolean visit(ExpressionVisitorBoolean visitor)
visit in class Expressionpublic final void visit(ExpressionVisitorVoid visitor)
visit in class ExpressionCopyright © 2016 Oracle Corporation. All Rights Reserved.