org.apache.xalan.xsltc.compiler
Class Stylesheet

java.lang.Object
  |
  +--org.apache.xalan.xsltc.compiler.SyntaxTreeNode
        |
        +--org.apache.xalan.xsltc.compiler.Stylesheet

public final class Stylesheet
extends SyntaxTreeNode


Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode
Dummy
 
Constructor Summary
Stylesheet()
           
 
Method Summary
 int addParam(org.apache.xalan.xsltc.compiler.Param param)
           
 int addVariable(org.apache.xalan.xsltc.compiler.Variable global)
           
 boolean checkForLoop(java.net.URL url)
           
 void display(int indent)
           
 java.lang.String getClassName()
           
 int getImportPrecedence()
           
 org.apache.xalan.xsltc.compiler.Mode getMode(org.apache.xalan.xsltc.compiler.QName modeName)
           
 java.lang.String getNamespace(java.lang.String prefix)
           
 Stylesheet getParentStylesheet()
           
 java.util.Vector getTemplates()
           
 java.net.URL getURL()
           
 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(java.lang.String uri)
           
 boolean isImported()
           
 boolean isIncluded()
           
 boolean isMultiDOM()
           
 boolean isSimplified()
           
 void numberFormattingUsed()
           
 void parseContents(Element element, 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(Element element, Parser parser)
          Parse all the children of element.
 void processModes()
           
 void setImportPrecedence(int precedence)
           
 void setMultiDocument(boolean flag)
           
 void setParentStylesheet(Stylesheet parent)
           
 void setParser(Parser parser)
           
 void setSimplified()
           
 void setURL(java.net.URL url)
           
 void translate()
          Translate the stylesheet into JVM bytecodes.
 void translate(ClassGenerator classGen, MethodGenerator methodGen)
          Translate the stylesheet into JVM bytecodes.
 Type typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable stable)
          Type check all the children of this node.
 
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode
addElement, contextDependent, dependentContents, elementAt, elementCount, elements, getContents, getLineNumber, getParent, getParser, getXSLTC, hasContents, hasParams, isDummy, parseChildren, removeElement, translateContents, typeCheckContents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stylesheet

public Stylesheet()
Method Detail

isSimplified

public boolean isSimplified()

setSimplified

public void setSimplified()

setMultiDocument

public void setMultiDocument(boolean flag)

isMultiDOM

public boolean isMultiDOM()

isImported

public boolean isImported()

isIncluded

public boolean isIncluded()

numberFormattingUsed

public void numberFormattingUsed()

setImportPrecedence

public void setImportPrecedence(int precedence)

getImportPrecedence

public int getImportPrecedence()
Overrides:
getImportPrecedence in class SyntaxTreeNode

checkForLoop

public boolean checkForLoop(java.net.URL url)

setParser

public void setParser(Parser parser)
Overrides:
setParser in class SyntaxTreeNode

setParentStylesheet

public void setParentStylesheet(Stylesheet parent)

getParentStylesheet

public Stylesheet getParentStylesheet()

setURL

public void setURL(java.net.URL url)

getURL

public java.net.URL getURL()

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(java.lang.String uri)

parseContents

public void parseContents(Element element,
                          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.
Overrides:
parseContents in class SyntaxTreeNode

parseOwnChildren

public final void parseOwnChildren(Element element,
                                   Parser parser)
Parse all the children of element. XSLT commands are recognized by the XSLT namespace

processModes

public void processModes()

getMode

public org.apache.xalan.xsltc.compiler.Mode getMode(org.apache.xalan.xsltc.compiler.QName modeName)

typeCheck

public Type typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable stable)
               throws TypeCheckError
Type check all the children of this node.
Overrides:
typeCheck in class SyntaxTreeNode

translate

public void translate(ClassGenerator classGen,
                      MethodGenerator methodGen)
Translate the stylesheet into JVM bytecodes.
Overrides:
translate in class SyntaxTreeNode

translate

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

addParam

public int addParam(org.apache.xalan.xsltc.compiler.Param param)
Overrides:
addParam in class SyntaxTreeNode

addVariable

public int addVariable(org.apache.xalan.xsltc.compiler.Variable global)

display

public void display(int indent)
Overrides:
display in class SyntaxTreeNode

getNamespace

public java.lang.String getNamespace(java.lang.String prefix)

getClassName

public java.lang.String getClassName()

getTemplates

public java.util.Vector getTemplates()


Copyright © 2000 Apache XML Project. All Rights Reserved.