| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private boolean | |
| private List | |
| private LiteralElement | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public void | |
| public boolean | |
| private boolean | canProduceAttributeNodes(SyntaxTreeNode node, boolean ignoreXslAttribute)
Return true if the instructions under the given SyntaxTreeNode can produce attribute nodes to an element. |
| private boolean | |
| protected boolean | contextDependent()
Overrides com. Returns true if this expression/instruction depends on the context. |
| public void | display(int indent)
Overrides com. Displays the contents of this literal element |
| public ElemDesc | |
| public QName | |
| public Set | getNamespaceScope(SyntaxTreeNode node)
This method starts at a given node, traverses all namespace mappings, and assembles a list of all prefixes that (for the given node) maps to _ANY_ namespace URI. |
| private boolean | |
| public void | parseContents(Parser parser)
Overrides com. Determines the final QName for the element and its attributes. |
| public void | registerNamespace(String prefix, String uri, SymbolTable stable, boolean declared)
Method used to keep track of what namespaces that are references by this literal element and its attributes. |
| public void | |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Compiles code that emits the literal element to the output handler, first the start tag, then namespace declaration, then attributes, then the element contents, and then the element end tag. |
| private String | translateQName(QName qname, SymbolTable stable)
Translates the prefix of a QName according to the rules set in the attributes of xsl:stylesheet. |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Type-check the contents of this element. |
| _accessedPrefixes | back to summary |
|---|---|
| private Map<String, String> _accessedPrefixes | |
| _allAttributesUnique | back to summary |
|---|---|
| private boolean _allAttributesUnique | |
| _attributeElements | back to summary |
|---|---|
| private List<SyntaxTreeNode> _attributeElements | |
| _literalElemParent | back to summary |
|---|---|
| private LiteralElement _literalElemParent | |
| _name | back to summary |
|---|---|
| private String _name | |
| LiteralElement | back to summary |
|---|---|
| pack-priv LiteralElement() | |
| accessedNamespace | back to summary |
|---|---|
| private String accessedNamespace(String prefix) Returns the namespace URI for which a prefix is pointing to | |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(SyntaxTreeNode attribute) Add an attribute to this element | |
| allAttributesUnique | back to summary |
|---|---|
| public boolean allAttributesUnique() Return true if all attributes of this LRE have unique names. | |
| canProduceAttributeNodes | back to summary |
|---|---|
| private boolean canProduceAttributeNodes(SyntaxTreeNode node, boolean ignoreXslAttribute) Return true if the instructions under the given SyntaxTreeNode can produce attribute nodes to an element. Only return false when we are sure that no attribute node is produced. Return true if we are not sure. If the flag ignoreXslAttribute is true, the direct <xsl:attribute> children of the current node are not included in the check. | |
| checkAttributesUnique | back to summary |
|---|---|
| private boolean checkAttributesUnique() Check whether all attributes are unique. | |
| contextDependent | back to summary |
|---|---|
| protected boolean contextDependent() Overrides com. Doc from com. Returns true if this expression/instruction depends on the context. By default, every expression/instruction depends on the context unless it overrides this method. Currently used to determine if result trees are compiled using procedures or little DOMs (result tree fragments). | |
| display | back to summary |
|---|---|
| public void display(int indent) Overrides com. Displays the contents of this literal element | |
| getElemDesc | back to summary |
|---|---|
| public ElemDesc getElemDesc() Return the ElemDesc object for an HTML element. Return null if the output method is not HTML or this is not a valid HTML element. | |
| getName | back to summary |
|---|---|
| public QName getName() Returns the QName for this literal element | |
| getNamespaceScope | back to summary |
|---|---|
| public Set This method starts at a given node, traverses all namespace mappings, and assembles a list of all prefixes that (for the given node) maps to _ANY_ namespace URI. Used by literal result elements to determine | |
| isHTMLOutput | back to summary |
|---|---|
| private boolean isHTMLOutput() Return true if the output method is html. | |
| parseContents | back to summary |
|---|---|
| public void parseContents(Parser parser) Overrides com. Determines the final QName for the element and its attributes. Registers all namespaces that are used by the element/attributes | |
| registerNamespace | back to summary |
|---|---|
| public void registerNamespace(String prefix, String uri, SymbolTable stable, boolean declared) Method used to keep track of what namespaces that are references by this literal element and its attributes. The output must contain a definition for each namespace, so we stuff them in a map. | |
| setFirstAttribute | back to summary |
|---|---|
| public void setFirstAttribute(SyntaxTreeNode attribute) Set the first attribute of this element | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Compiles code that emits the literal element to the output handler, first the start tag, then namespace declaration, then attributes, then the element contents, and then the element end tag. Since the value of an attribute may depend on a variable, variables must be compiled first. | |
| translateQName | back to summary |
|---|---|
| private String translateQName(QName qname, SymbolTable stable) Translates the prefix of a QName according to the rules set in the attributes of xsl:stylesheet. Also registers a QName to assure that the output element contains the necessary namespace declarations. | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Type-check the contents of this element. The element itself does not need any type checking as it leaves nothign on the JVM's stack. | |