org.apache.xalan.xsltc.compiler
public final class Stylesheet extends SyntaxTreeNode
| Field Summary | |
|---|---|
| static int | HTML_OUTPUT |
| static int | TEXT_OUTPUT |
| static int | UNKNOWN_OUTPUT |
| static int | XML_OUTPUT |
| Stylesheet | _importedFrom
Reference to the stylesheet from which this stylesheet was
imported (if any). |
| Stylesheet | _includedFrom
Reference to the stylesheet from which this stylesheet was
included (if any). |
| Method Summary | |
|---|---|
| void | addIncludedStylesheet(Stylesheet child) |
| int | addParam(Param param) |
| int | addVariable(Variable global) |
| boolean | callsNodeset() |
| boolean | checkForLoop(String systemId) |
| void | display(int indent) |
| void | excludeExtensionPrefixes(Parser parser) |
| Vector | getAllValidTemplates() |
| String | getClassName() |
| int | getImportPrecedence() |
| Output | getLastOutputElement() |
| int | getMinimumDescendantPrecedence()
Get the minimum of the precedence of this stylesheet, any stylesheet
imported by this stylesheet and any include/import descendant of this
stylesheet. |
| Mode | getMode(QName modeName) |
| String | getNamespace(String prefix) |
| int | getOutputMethod()
Return the output method |
| Properties | getOutputProperties() |
| Stylesheet | getParentStylesheet() |
| SourceLoader | getSourceLoader() |
| String | getSystemId() |
| boolean | getTemplateInlining() |
| Vector | getTemplates() |
| boolean | hasGlobals()
Returns true if this stylesheet has global vars or params. |
| boolean | hasLocalParams()
Returns true if at least one template in the stylesheet has params
defined. |
| boolean | isExtension(String uri) |
| boolean | isMultiDocument() |
| boolean | isSimplified() |
| void | numberFormattingUsed() |
| void | parseContents(Parser parser)
Parse the version and uri fields of the stylesheet and add an
entry to the symbol table mapping the name __stylesheet_
to an instance of this class. |
| void | parseOwnChildren(Parser parser)
Parse all direct children of the |
| void | processModes() |
| void | setCallsNodeset(boolean flag) |
| void | setHasIdCall(boolean flag) |
| void | setImportingStylesheet(Stylesheet parent) |
| void | setImportPrecedence(int precedence) |
| void | setIncludingStylesheet(Stylesheet parent) |
| void | setMultiDocument(boolean flag) |
| void | setOutputProperties(Properties props) |
| void | setOutputProperty(String key, String value) |
| void | setParentStylesheet(Stylesheet parent) |
| void | setParser(Parser parser) |
| void | setSimplified() |
| void | setSourceLoader(SourceLoader loader) |
| void | setSystemId(String systemId) |
| void | setTemplateInlining(boolean flag) |
| void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Translate the stylesheet into JVM bytecodes. |
| void | translate()
Translate the stylesheet into JVM bytecodes. |
| Type | typeCheck(SymbolTable stable)
Type check all the children of this node. |
_hasLocalParams to cache the
result.