Package com.sun.msv.grammar.relax
Class ElementRules
- java.lang.Object
-
- com.sun.msv.grammar.Expression
-
- com.sun.msv.grammar.ReferenceExp
-
- com.sun.msv.grammar.relax.ElementRules
-
- All Implemented Interfaces:
Exportable,java.io.Serializable
public class ElementRules extends ReferenceExp implements Exportable
Set of ElementRule objects that share the label name. ReferenceExp.exp contains choice of ElementRule objects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description booleanexporteda flag that indicates this elementRule is exported and therefore accessible from other modules.RELAXModuleownerModuleRELAXModule object to which this object belongsprivate static longserialVersionUID-
Fields inherited from class com.sun.msv.grammar.ReferenceExp
exp, name
-
Fields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedElementRules(java.lang.String label, RELAXModule ownerModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddElementRule(ExpressionPool pool, ElementRule newRule)protected booleancalcEpsilonReducibility()computes epsilon reducibilitybooleanequals(java.lang.Object o)booleanisExported()java.lang.Objectvisit(RELAXExpressionVisitor visitor)booleanvisit(RELAXExpressionVisitorBoolean visitor)Expressionvisit(RELAXExpressionVisitorExpression visitor)voidvisit(RELAXExpressionVisitorVoid visitor)-
Methods inherited from class com.sun.msv.grammar.ReferenceExp
calcHashCode, isDefined, visit, visit, visit, visit
-
Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve
-
-
-
-
Field Detail
-
exported
public boolean exported
a flag that indicates this elementRule is exported and therefore accessible from other modules.
-
ownerModule
public final RELAXModule ownerModule
RELAXModule object to which this object belongs
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElementRules
protected ElementRules(java.lang.String label, RELAXModule ownerModule)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classReferenceExp
-
calcEpsilonReducibility
protected boolean calcEpsilonReducibility()
Description copied from class:Expressioncomputes epsilon reducibility- Overrides:
calcEpsilonReducibilityin classReferenceExp
-
addElementRule
public void addElementRule(ExpressionPool pool, ElementRule newRule)
-
visit
public java.lang.Object visit(RELAXExpressionVisitor visitor)
- Overrides:
visitin classExpression
-
visit
public Expression visit(RELAXExpressionVisitorExpression visitor)
- Overrides:
visitin classExpression
-
visit
public boolean visit(RELAXExpressionVisitorBoolean visitor)
- Overrides:
visitin classExpression
-
visit
public void visit(RELAXExpressionVisitorVoid visitor)
- Overrides:
visitin classExpression
-
isExported
public boolean isExported()
- Specified by:
isExportedin interfaceExportable
-
-