org.apache.xalan.xsltc.compiler

Class Stylesheet

public final class Stylesheet extends SyntaxTreeNode

Field Summary
static intHTML_OUTPUT
static intTEXT_OUTPUT
static intUNKNOWN_OUTPUT
static intXML_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
voidaddIncludedStylesheet(Stylesheet child)
intaddParam(Param param)
intaddVariable(Variable global)
booleancallsNodeset()
booleancheckForLoop(String systemId)
voiddisplay(int indent)
voidexcludeExtensionPrefixes(Parser parser)
VectorgetAllValidTemplates()
StringgetClassName()
intgetImportPrecedence()
OutputgetLastOutputElement()
intgetMinimumDescendantPrecedence()
Get the minimum of the precedence of this stylesheet, any stylesheet imported by this stylesheet and any include/import descendant of this stylesheet.
ModegetMode(QName modeName)
StringgetNamespace(String prefix)
intgetOutputMethod()
Return the output method
PropertiesgetOutputProperties()
StylesheetgetParentStylesheet()
SourceLoadergetSourceLoader()
StringgetSystemId()
booleangetTemplateInlining()
VectorgetTemplates()
booleanhasGlobals()
Returns true if this stylesheet has global vars or params.
booleanhasLocalParams()
Returns true if at least one template in the stylesheet has params defined.
booleanisExtension(String uri)
booleanisMultiDocument()
booleanisSimplified()
voidnumberFormattingUsed()
voidparseContents(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.
voidparseOwnChildren(Parser parser)
Parse all direct children of the element.
voidprocessModes()
voidsetCallsNodeset(boolean flag)
voidsetHasIdCall(boolean flag)
voidsetImportingStylesheet(Stylesheet parent)
voidsetImportPrecedence(int precedence)
voidsetIncludingStylesheet(Stylesheet parent)
voidsetMultiDocument(boolean flag)
voidsetOutputProperties(Properties props)
voidsetOutputProperty(String key, String value)
voidsetParentStylesheet(Stylesheet parent)
voidsetParser(Parser parser)
voidsetSimplified()
voidsetSourceLoader(SourceLoader loader)
voidsetSystemId(String systemId)
voidsetTemplateInlining(boolean flag)
voidtranslate(ClassGenerator classGen, MethodGenerator methodGen)
Translate the stylesheet into JVM bytecodes.
voidtranslate()
Translate the stylesheet into JVM bytecodes.
TypetypeCheck(SymbolTable stable)
Type check all the children of this node.

Field Detail

HTML_OUTPUT

public static final int HTML_OUTPUT

TEXT_OUTPUT

public static final int TEXT_OUTPUT

UNKNOWN_OUTPUT

public static final int UNKNOWN_OUTPUT

XML_OUTPUT

public static final int XML_OUTPUT

_importedFrom

public Stylesheet _importedFrom
Reference to the stylesheet from which this stylesheet was imported (if any).

_includedFrom

public Stylesheet _includedFrom
Reference to the stylesheet from which this stylesheet was included (if any).

Method Detail

addIncludedStylesheet

public void addIncludedStylesheet(Stylesheet child)

addParam

public int addParam(Param param)

addVariable

public int addVariable(Variable global)

callsNodeset

public boolean callsNodeset()

checkForLoop

public boolean checkForLoop(String systemId)

display

public void display(int indent)

excludeExtensionPrefixes

public void excludeExtensionPrefixes(Parser parser)

getAllValidTemplates

public Vector getAllValidTemplates()

getClassName

public String getClassName()

getImportPrecedence

public int getImportPrecedence()

getLastOutputElement

public Output getLastOutputElement()

getMinimumDescendantPrecedence

public 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.

getMode

public Mode getMode(QName modeName)

getNamespace

public String getNamespace(String prefix)

getOutputMethod

public int getOutputMethod()
Return the output method

getOutputProperties

public Properties getOutputProperties()

getParentStylesheet

public Stylesheet getParentStylesheet()

getSourceLoader

public SourceLoader getSourceLoader()

getSystemId

public String getSystemId()

getTemplateInlining

public boolean getTemplateInlining()

getTemplates

public Vector getTemplates()

hasGlobals

public boolean hasGlobals()
Returns true if this stylesheet has global vars or params.

hasLocalParams

public boolean hasLocalParams()
Returns true if at least one template in the stylesheet has params defined. Uses the variable _hasLocalParams to cache the result.

isExtension

public boolean isExtension(String uri)

isMultiDocument

public boolean isMultiDocument()

isSimplified

public boolean isSimplified()

numberFormattingUsed

public void numberFormattingUsed()

parseContents

public 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.

parseOwnChildren

public final void parseOwnChildren(Parser parser)
Parse all direct children of the element.

processModes

public void processModes()

setCallsNodeset

public void setCallsNodeset(boolean flag)

setHasIdCall

public void setHasIdCall(boolean flag)

setImportingStylesheet

public void setImportingStylesheet(Stylesheet parent)

setImportPrecedence

public void setImportPrecedence(int precedence)

setIncludingStylesheet

public void setIncludingStylesheet(Stylesheet parent)

setMultiDocument

public void setMultiDocument(boolean flag)

setOutputProperties

public void setOutputProperties(Properties props)

setOutputProperty

public void setOutputProperty(String key, String value)

setParentStylesheet

public void setParentStylesheet(Stylesheet parent)

setParser

public void setParser(Parser parser)

setSimplified

public void setSimplified()

setSourceLoader

public void setSourceLoader(SourceLoader loader)

setSystemId

public void setSystemId(String systemId)

setTemplateInlining

public void setTemplateInlining(boolean flag)

translate

public void translate(ClassGenerator classGen, MethodGenerator methodGen)
Translate the stylesheet into JVM bytecodes.

translate

public void translate()
Translate the stylesheet into JVM bytecodes.

typeCheck

public Type typeCheck(SymbolTable stable)
Type check all the children of this node.
Copyright B) 2005 Apache XML Project. All Rights Reserved.