Package com.sun.msv.grammar
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.
- Author:
- Kohsuke KAWAGUCHI
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringfinal Expressionchild expressionfinal NameClassconstraint over attribute nameFields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancomputes epsilon reducibilityprotected final intComputes the hashCode again.booleanfinal Expressionfinal NameClassvoidvisit(ExpressionVisitor visitor) booleanvisit(ExpressionVisitorBoolean visitor) visit(ExpressionVisitorExpression visitor) voidvisit(ExpressionVisitorVoid visitor) Methods inherited from class com.sun.msv.grammar.Expression
getExpandedExp, hashCode, hashCode, hashCode, isEpsilonReducible, peelOccurence, readResolve, visit, visit, visit, visit
-
Field Details
-
nameClass
constraint over attribute name -
exp
child expression -
defaultValue
-
-
Constructor Details
-
AttributeExp
-
-
Method Details
-
getNameClass
- Specified by:
getNameClassin interfaceNameClassAndExpression
-
getContentModel
- Specified by:
getContentModelin interfaceNameClassAndExpression
-
getDefaultValue
-
setDefaultValue
-
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
-