|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xalan.xsltc.compiler.SyntaxTreeNode
org.apache.xalan.xsltc.compiler.TopLevelElement
org.apache.xalan.xsltc.compiler.Key
final class Key
| Field Summary | |
|---|---|
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. |
| Fields inherited from class org.apache.xalan.xsltc.compiler.TopLevelElement |
|---|
_dependencies |
| Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
|---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
| Constructor Summary | |
|---|---|
Key()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns a String-representation of this key's name |
void |
parseContents(Parser parser)
Parse the |
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Gather all nodes that match the expression in the attribute "match" and add one (or more) entries in this key's index. |
void |
traverseNodeSet(ClassGenerator classGen,
MethodGenerator methodGen,
int buildKeyIndex)
This method is called if the "use" attribute of the key contains a node set. |
Type |
typeCheck(SymbolTable stable)
Type check all the children of this node. |
| Methods inherited from class org.apache.xalan.xsltc.compiler.TopLevelElement |
|---|
addDependency, compile, display, getDependencies |
| Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
|---|
addAttribute, addElement, addPrefixMapping, compileResultTree, contextDependent, dependentContents, displayContents, elementAt, elementCount, elements, getAttribute, getAttribute, getAttributes, getContents, getImportPrecedence, getLineNumber, getNodeIDForStylesheetNSLookup, getParent, getParser, getPrefixMapping, getQName, getStylesheet, getSymbolTable, getTemplate, getXSLTC, hasAttribute, hasContents, indent, isDummy, lastChild, lookupNamespace, lookupPrefix, parseChildren, removeElement, reportError, reportWarning, setAttributes, setFirstElement, setLineNumber, setParent, setParser, setPrefixMapping, setQName, setQName, translateContents, typeCheckContents, updateScope |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private QName _name
private Pattern _match
private Expression _use
private Type _useType
| Constructor Detail |
|---|
Key()
| Method Detail |
|---|
public void parseContents(Parser parser)
parseContents in class SyntaxTreeNodeparser - A reference to the stylesheet parserpublic java.lang.String getName()
public Type typeCheck(SymbolTable stable)
throws TypeCheckError
TopLevelElement
typeCheck in class TopLevelElementstable - The compiler/parser's symbol table
TypeCheckError
public void traverseNodeSet(ClassGenerator classGen,
MethodGenerator methodGen,
int buildKeyIndex)
public void translate(ClassGenerator classGen,
MethodGenerator methodGen)
translate in class TopLevelElementclassGen - BCEL Java class generatormethodGen - BCEL Java method generator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||