Class AttributeExp
java.lang.Object
com.sun.msv.grammar.Expression
com.sun.msv.grammar.AttributeExp
- All Implemented Interfaces:
NameClassAndExpression, Serializable
Attribute declaration.
Attribute declaration consists of a NameClass that verifies attribute name and an Expression that verifies the value of the attribute.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Expressionchild expressionfinal NameClassconstraint over attribute nameprivate static final longFields inherited from class Expression
anyString, epsilon, nullSet, verifierTag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancomputes epsilon reducibilityprotected final intComputes the hashCode again.booleanfinal Expressionfinal NameClassvisit(ExpressionVisitor visitor) booleanvisit(ExpressionVisitorBoolean visitor) visit(ExpressionVisitorExpression visitor) voidvisit(ExpressionVisitorVoid visitor) Methods inherited from class Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
Field Details
-
nameClass
constraint over attribute name -
exp
child expression -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
AttributeExp
-
-
Method Details
-
getNameClass
- Specified by:
getNameClassin interfaceNameClassAndExpression
-
getContentModel
- Specified by:
getContentModelin interfaceNameClassAndExpression
-
calcHashCode
protected final int calcHashCode()Description copied from class:ExpressionComputes 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.
- Specified by:
calcHashCodein classExpression
-
equals
- Specified by:
equalsin classExpression
-
visit
- Specified by:
visitin classExpression
-
visit
- Specified by:
visitin classExpression
-
visit
- Specified by:
visitin classExpression
-
visit
- Specified by:
visitin classExpression
-
calcEpsilonReducibility
protected boolean calcEpsilonReducibility()Description copied from class:Expressioncomputes epsilon reducibility- Specified by:
calcEpsilonReducibilityin classExpression
-