addParameter
public void addParameter(org.apache.xalan.xsltc.compiler.Param param)
compareTo
public int compareTo(Object template)
Compare this template to another. First checks priority, then position.
disable
public void disable()
disabled
public boolean disabled()
display
public void display(int indent)
- display in interface org.apache.xalan.xsltc.compiler.TopLevelElement
getModeName
public org.apache.xalan.xsltc.compiler.QName getModeName()
getName
public org.apache.xalan.xsltc.compiler.QName getName()
getParameters
public Vector getParameters()
getPattern
public Pattern getPattern()
getPosition
public int getPosition()
getPriority
public double getPriority()
hasParams
public boolean hasParams()
isNamed
public boolean isNamed()
isSimpleNamedTemplate
public boolean isSimpleNamedTemplate()
isSimplified
public boolean isSimplified()
parseSimplified
public 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. The Stylesheet
object will then create this Template object and invoke this method to
force some specific behaviour. What we need to do is:
o) create a pattern matching on the root node
o) add the LRE root node (the only child of the Stylesheet) as our
only child node
o) set the empty Stylesheet as our parent
o) set this template as the Stylesheet's only child
setName
public void setName(org.apache.xalan.xsltc.compiler.QName qname)
setSimplified
public void setSimplified()
translate
public void translate(ClassGenerator classGen,
MethodGenerator methodGen)
- translate in interface org.apache.xalan.xsltc.compiler.TopLevelElement
typeCheck
public Type typeCheck(org.apache.xalan.xsltc.compiler.SymbolTable stable)
throws TypeCheckError
- typeCheck in interface org.apache.xalan.xsltc.compiler.TopLevelElement