| Modifier and Type | Field and Description |
|---|---|
| private Pattern | _match
The pattern to match starting at the root node. |
| private QName | _name
The name of this key as defined in xsl:key. |
| private Expression | _use
The expression that generates the values for this key. |
| private Type | _useType
The type of the _use expression. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The key's name (from the <xsl:key> elements 'name' attribute).Returns a String-representation of this key's name |
| public void | parseContents(Parser
A reference to the stylesheet parser parser)Overrides com. Parse the <xsl:key> element and attributes |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Gather all nodes that match the expression in the attribute "match" and add one (or more) entries in this key's index. |
| public void | traverseNodeSet(ClassGenerator classGen, MethodGenerator methodGen, int buildKeyIndex)
This method is called if the "use" attribute of the key contains a node set. |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Type check all the children of this node. |
| _match | back to summary |
|---|---|
| private Pattern _match The pattern to match starting at the root node. | |
| _name | back to summary |
|---|---|
| private QName _name The name of this key as defined in xsl:key. | |
| _use | back to summary |
|---|---|
| private Expression _use The expression that generates the values for this key. | |
| _useType | back to summary |
|---|---|
| private Type _useType The type of the _use expression. | |
| Key | back to summary |
|---|---|
| pack-priv Key() | |
| getName | back to summary |
|---|---|
| public String getName() Returns a String-representation of this key's name
| |
| parseContents | back to summary |
|---|---|
| public void parseContents(Parser parser) Overrides com. Parse the <xsl:key> element and attributes
| |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Gather all nodes that match the expression in the attribute "match" and add one (or more) entries in this key's index. | |
| traverseNodeSet | back to summary |
|---|---|
| public void traverseNodeSet(ClassGenerator classGen, MethodGenerator methodGen, int buildKeyIndex) This method is called if the "use" attribute of the key contains a node set. In this case we must traverse all nodes in the set and create one entry in this key's index for each node in the set. | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Doc from com. Type check all the children of this node. | |