APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.compiler

pack-priv final Class UnsupportedElement

extends SyntaxTreeNode
Class Inheritance
Imports
com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .INVOKESTATIC, .InstructionList, .PUSH, com.sun.org.apache.xalan.internal.xsltc.compiler.util.ClassGenerator, .ErrorMsg, .MethodGenerator, .Type, .TypeCheckError, .Util, java.util.ArrayList, .List

Author
Morten Jorgensen

Field Summary

Modifier and TypeField and Description
private List<SyntaxTreeNode>
private boolean
private ErrorMsg
Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode:
_attributes_parent_qnameDummyIndentIncrement

Constructor Summary

AccessConstructor and Description
public
UnsupportedElement(String uri, String prefix, String local, boolean isExtension)

Basic consutrcor - stores element uri/prefix/localname

Method Summary

Modifier and TypeMethod and Description
public void
display(int indent)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.display.

Displays the contents of this element

public void
parseContents(Parser parser)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.parseContents.

Find any fallback in the descendant nodes; then activate & parse it

private void
processFallbacks(Parser parser)

Scan and process all fallback children of the unsupported element.

public void
setErrorMessage(ErrorMsg message)

There are different categories of unsupported elements (believe it or not): there are elements within the XSLT namespace (these would be elements that are not yet implemented), there are extensions of other XSLT processors and there are unrecognised extension elements of this XSLT processor.

public void
translate(ClassGenerator classGen, MethodGenerator methodGen)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.translate.

Translate the fallback element (if any).

public Type
typeCheck(SymbolTable stable)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.typeCheck.

Run type check on the fallback element (if any).

Inherited from com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode:
addAttributeaddElementaddPrefixMappingcompileResultTreecontextDependentdependentContentsdisplayContentselementAtelementCountelementsgetAttributegetAttributegetAttributesgetContentsgetImportPrecedencegetLineNumbergetParentgetParsergetPrefixMappinggetQNamegetStylesheetgetSymbolTablegetTemplategetXSLTChasAttributehasContentsindentisDummylastChildlookupNamespacelookupPrefixnotTypeOfparseChildrenremoveElementreportErrorreportWarningsetAttributessetFirstElementsetLineNumbersetParentsetParsersetPrefixMappingsetQNamesetQNametranslateContentstypeCheckContentsupdateScope

Field Detail

_fallbacksback to summary
private List<SyntaxTreeNode> _fallbacks
_isExtensionback to summary
private boolean _isExtension
_messageback to summary
private ErrorMsg _message

Constructor Detail

UnsupportedElementback to summary
public UnsupportedElement(String uri, String prefix, String local, boolean isExtension)

Basic consutrcor - stores element uri/prefix/localname

Method Detail

displayback to summary
public void display(int indent)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.display.

Displays the contents of this element

parseContentsback to summary
public void parseContents(Parser parser)

Overrides com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.parseContents.

Find any fallback in the descendant nodes; then activate & parse it

processFallbacksback to summary
private void processFallbacks(Parser parser)

Scan and process all fallback children of the unsupported element.

setErrorMessageback to summary
public void setErrorMessage(ErrorMsg message)

There are different categories of unsupported elements (believe it or not): there are elements within the XSLT namespace (these would be elements that are not yet implemented), there are extensions of other XSLT processors and there are unrecognised extension elements of this XSLT processor. The error message passed to this method should describe the unsupported element itself and what category the element belongs in.

translateback to summary
public void translate(ClassGenerator classGen, MethodGenerator methodGen)

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.translate.

Translate the fallback element (if any).

typeCheckback to summary
public Type typeCheck(SymbolTable stable) throws TypeCheckError

Implements abstract com.sun.org.apache.xalan.internal.xsltc.compiler.SyntaxTreeNode.typeCheck.

Run type check on the fallback element (if any).