|
||||||||||
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.ReferenceExp
public class ReferenceExp
Reference to the other expression.
In RELAX grammar, this class is used as a base class of elementRule reference and hedgeRule reference. TREX uses this class directly.
This object is created and controlled by TREXGrammar/RELAXModule object, rather than ExpressionPool. Therefore, this object is not a subject to unification.
This class can be derived. In fact, many classes derive this class.
Field Summary | |
---|---|
Expression |
exp
child expression. |
String |
name
name of the referenced expression. |
Fields inherited from class com.sun.msv.grammar.Expression |
---|
anyString, epsilon, nullSet, verifierTag |
Constructor Summary | |
---|---|
ReferenceExp(String name)
|
|
ReferenceExp(String name,
Expression exp)
|
Method Summary | |
---|---|
protected boolean |
calcEpsilonReducibility()
computes epsilon reducibility |
protected int |
calcHashCode()
Computes the hashCode again. |
boolean |
equals(Object o)
|
boolean |
isDefined()
checks if this ReferenceExp is properly defined. |
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 Expression exp
public final String name
Constructor Detail |
---|
public ReferenceExp(String name)
public ReferenceExp(String name, Expression exp)
Method Detail |
---|
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 isDefined()
public boolean equals(Object o)
equals
in class Expression
protected boolean calcEpsilonReducibility()
Expression
calcEpsilonReducibility
in class Expression
public final Object visit(ExpressionVisitor visitor)
visit
in class Expression
public final Expression visit(ExpressionVisitorExpression visitor)
visit
in class Expression
public final boolean visit(ExpressionVisitorBoolean visitor)
visit
in class Expression
public final void visit(ExpressionVisitorVoid visitor)
visit
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |