|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.SyntaxTreeNode org.apache.xalan.xsltc.compiler.TopLevelElement org.apache.xalan.xsltc.compiler.Template
public final class Template
Field Summary | |
---|---|
private boolean |
_compiled
|
private boolean |
_disabled
|
private boolean |
_isSimpleNamedTemplate
|
private QName |
_mode
|
private QName |
_name
|
private java.util.Vector |
_parameters
|
private Pattern |
_pattern
|
private int |
_position
|
private double |
_priority
|
private boolean |
_simplified
|
private Stylesheet |
_stylesheet
|
Fields inherited from class org.apache.xalan.xsltc.compiler.TopLevelElement |
---|
_dependencies |
Fields inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
_attributes, _parent, _qname, Dummy, IndentIncrement, UNKNOWN_STYLESHEET_NODE_ID |
Constructor Summary | |
---|---|
Template()
|
Method Summary | |
---|---|
void |
addParameter(Param param)
|
int |
compareTo(java.lang.Object template)
Compare this template to another. |
void |
disable()
|
boolean |
disabled()
|
void |
display(int indent)
Displays the contents of this syntax tree node (to stdout). |
QName |
getModeName()
|
QName |
getName()
|
java.util.Vector |
getParameters()
|
Pattern |
getPattern()
|
int |
getPosition()
|
double |
getPriority()
|
Stylesheet |
getStylesheet()
Get the Stylesheet node that represents the |
boolean |
hasParams()
|
boolean |
isNamed()
|
boolean |
isSimpleNamedTemplate()
|
boolean |
isSimplified()
|
void |
parseContents(Parser parser)
Parse the contents of this syntax tree nodes (child nodes, XPath expressions, patterns and functions). |
void |
parseSimplified(Stylesheet stylesheet,
Parser parser)
When the parser realises that it is dealign with a simplified stylesheet it will create an empty Stylesheet object with the root element of the stylesheet (a LiteralElement object) as its only child. |
private boolean |
resolveNamedTemplates(Template other,
Parser parser)
|
void |
setName(QName qname)
|
void |
setSimplified()
|
void |
translate(ClassGenerator classGen,
MethodGenerator methodGen)
Translate this node into JVM bytecodes. |
Type |
typeCheck(SymbolTable stable)
Type check all the children of this node. |
Methods inherited from class org.apache.xalan.xsltc.compiler.TopLevelElement |
---|
addDependency, compile, getDependencies |
Methods inherited from class org.apache.xalan.xsltc.compiler.SyntaxTreeNode |
---|
addAttribute, addElement, addPrefixMapping, compileResultTree, contextDependent, dependentContents, displayContents, elementAt, elementCount, elements, getAttribute, getAttribute, getAttributes, getContents, getImportPrecedence, getLineNumber, getNodeIDForStylesheetNSLookup, getParent, getParser, getPrefixMapping, getQName, getSymbolTable, getTemplate, getXSLTC, hasAttribute, hasContents, indent, isDummy, lastChild, lookupNamespace, lookupPrefix, parseChildren, removeElement, reportError, reportWarning, setAttributes, setFirstElement, setLineNumber, setParent, setParser, setPrefixMapping, setQName, setQName, translateContents, typeCheckContents, updateScope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private QName _name
private QName _mode
private Pattern _pattern
private double _priority
private int _position
private boolean _disabled
private boolean _compiled
private boolean _simplified
private boolean _isSimpleNamedTemplate
private java.util.Vector _parameters
private Stylesheet _stylesheet
Constructor Detail |
---|
public Template()
Method Detail |
---|
public boolean hasParams()
public boolean isSimplified()
public void setSimplified()
public boolean isSimpleNamedTemplate()
public void addParameter(Param param)
public java.util.Vector getParameters()
public void disable()
public boolean disabled()
public double getPriority()
public int getPosition()
public boolean isNamed()
public Pattern getPattern()
public QName getName()
public void setName(QName qname)
public QName getModeName()
public int compareTo(java.lang.Object template)
public void display(int indent)
SyntaxTreeNode
display
in class TopLevelElement
indent
- Indentation level for syntax tree levels.private boolean resolveNamedTemplates(Template other, Parser parser)
public Stylesheet getStylesheet()
SyntaxTreeNode
getStylesheet
in class SyntaxTreeNode
public void parseContents(Parser parser)
SyntaxTreeNode
parseContents
in class SyntaxTreeNode
parser
- reference to the XSLT parserpublic void parseSimplified(Stylesheet stylesheet, Parser parser)
public Type typeCheck(SymbolTable stable) throws TypeCheckError
TopLevelElement
typeCheck
in class TopLevelElement
stable
- The compiler/parser's symbol table
TypeCheckError
public void translate(ClassGenerator classGen, MethodGenerator methodGen)
TopLevelElement
translate
in class TopLevelElement
classGen
- BCEL Java class generatormethodGen
- BCEL Java method generator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |