|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.SyntaxTreeNode org.apache.xalan.xsltc.compiler.Instruction org.apache.xalan.xsltc.compiler.XslElement
final class XslElement
Field Summary | |
---|---|
private boolean |
_ignore
|
private boolean |
_isLiteralName
|
private AttributeValueTemplate |
_name
|
private AttributeValueTemplate |
_namespace
|
private java.lang.String |
_prefix
|
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
XslElement()
|
Method Summary | |
---|---|
boolean |
declaresDefaultNS()
This method is now deprecated. |
void |
display(int indent)
Displays the contents of the element |
void |
parseContents(Parser parser)
Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
At runtime the compilation of xsl:element results in code that: (i) evaluates the avt for the name, (ii) checks for a prefix in the name (iii) generates a new prefix and create a new qname when necessary (iv) calls startElement() on the handler (v) looks up a uri in the XML when the prefix is not known at compile time (vi) calls namespace() on the handler (vii) evaluates the contents (viii) calls endElement(). |
void |
translateContents(ClassGenerator classGen,
MethodGenerator methodGen)
Override this method to make sure that xsl:attributes are not copied to output if this xsl:element is to be ignored |
void |
translateLiteral(ClassGenerator classGen,
MethodGenerator methodGen)
This method is called when the name of the element is known at compile time. |
Type |
typeCheck(SymbolTable stable)
Run type check on element name & contents |
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, typeCheckContents, updateScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String _prefix
private boolean _ignore
private boolean _isLiteralName
private AttributeValueTemplate _name
private AttributeValueTemplate _namespace
Constructor Detail |
---|
XslElement()
Method Detail |
---|
public void display(int indent)
display
in class SyntaxTreeNode
indent
- Indentation level for syntax tree levels.public boolean declaresDefaultNS()
public void parseContents(Parser parser)
SyntaxTreeNode
parseContents
in class SyntaxTreeNode
parser
- reference to the XSLT parserpublic Type typeCheck(SymbolTable stable) throws TypeCheckError
typeCheck
in class Instruction
stable
- The compiler/parser's symbol table
TypeCheckError
public void translateLiteral(ClassGenerator classGen, MethodGenerator methodGen)
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
translate
in class Instruction
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generatorpublic void translateContents(ClassGenerator classGen, MethodGenerator methodGen)
translateContents
in class SyntaxTreeNode
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |