com.sun.msv.grammar
public class ReferenceExp extends 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.
can be null for anonymously referenced expression. |
Constructor Summary | |
---|---|
ReferenceExp(String name) | |
ReferenceExp(String name, Expression exp) |
Method Summary | |
---|---|
boolean | equals(Object o) |
boolean | isDefined()
checks if this ReferenceExp is properly defined.
this method is used to detect undeclared definitions.
|
Object | visit(ExpressionVisitor visitor) |
Expression | visit(ExpressionVisitorExpression visitor) |
boolean | visit(ExpressionVisitorBoolean visitor) |
void | visit(ExpressionVisitorVoid visitor) |