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 String
final Expression
child expressionfinal NameClass
constraint over attribute nameFields inherited from class com.sun.msv.grammar.Expression
anyString, epsilon, nullSet, verifierTag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
computes epsilon reducibilityprotected final int
Computes the hashCode again.boolean
final Expression
final NameClass
void
visit
(ExpressionVisitor visitor) boolean
visit
(ExpressionVisitorBoolean visitor) 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
-
Field Details
-
nameClass
constraint over attribute name -
exp
child expression -
defaultValue
-
-
Constructor Details
-
AttributeExp
-
-
Method Details
-
getNameClass
- Specified by:
getNameClass
in interfaceNameClassAndExpression
-
getContentModel
- Specified by:
getContentModel
in interfaceNameClassAndExpression
-
getDefaultValue
-
setDefaultValue
-
calcHashCode
protected final int calcHashCode()Description copied from class:Expression
Computes 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:
calcHashCode
in classExpression
-
equals
- Specified by:
equals
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
visit
- Specified by:
visit
in classExpression
-
calcEpsilonReducibility
protected boolean calcEpsilonReducibility()Description copied from class:Expression
computes epsilon reducibility- Specified by:
calcEpsilonReducibility
in classExpression
-