| Modifier and Type | Field and Description |
|---|---|
| private LocalVariableGen | _domAdapter
Reference to JVM variable holding temporary result tree. |
| private boolean | _doParameterOptimization
%OPT% This is set to true when the WithParam is used in a CallTemplate for a simple named template. |
| protected String | _escapedName
The escaped qname of the with-param. |
| private QName | _name
Parameter's name. |
| private Expression | _select
Parameter's default value. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | display(int indent)
Overrides com. Displays the contents of this element |
| public String | |
| public QName | |
| public void | parseContents(Parser parser)
Overrides com. The contents of a <xsl:with-param> elements are either in the element's 'select' attribute (this has precedence) or in the element body. |
| public void | releaseResultTree(ClassGenerator classGen, MethodGenerator methodGen)
Release the compiled result tree. |
| public void | |
| public void | |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. This code generates a sequence of bytecodes that call the addParameter() method in AbstractTranslet. |
| public void | translateValue(ClassGenerator classGen, MethodGenerator methodGen)
Compile the value of the parameter, which is either in an expression in a 'select' attribute, or in the with-param element's body |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Type-check either the select attribute or the element body, depending on which is in use. |
| _domAdapter | back to summary |
|---|---|
| private LocalVariableGen _domAdapter Reference to JVM variable holding temporary result tree. | |
| _doParameterOptimization | back to summary |
|---|---|
| private boolean _doParameterOptimization %OPT% This is set to true when the WithParam is used in a CallTemplate for a simple named template. If this is true, the parameters are passed to the named template through method arguments rather than using the expensive Translet.addParameter() call. | |
| _escapedName | back to summary |
|---|---|
| protected String _escapedName The escaped qname of the with-param. | |
| _name | back to summary |
|---|---|
| private QName _name Parameter's name. | |
| _select | back to summary |
|---|---|
| private Expression _select Parameter's default value. | |
| WithParam | back to summary |
|---|---|
| pack-priv WithParam() | |
| display | back to summary |
|---|---|
| public void display(int indent) Overrides com. Displays the contents of this element | |
| getEscapedName | back to summary |
|---|---|
| public String getEscapedName() Returns the escaped qname of the parameter | |
| getName | back to summary |
|---|---|
| public QName getName() Return the name of this WithParam. | |
| parseContents | back to summary |
|---|---|
| public void parseContents(Parser parser) Overrides com. The contents of a <xsl:with-param> elements are either in the element's 'select' attribute (this has precedence) or in the element body. | |
| releaseResultTree | back to summary |
|---|---|
| public void releaseResultTree(ClassGenerator classGen, MethodGenerator methodGen) Release the compiled result tree. | |
| setDoParameterOptimization | back to summary |
|---|---|
| public void setDoParameterOptimization(boolean flag) Set the do parameter optimization flag | |
| setName | back to summary |
|---|---|
| public void setName(QName name) Set the name of the variable or paremeter. Escape all special chars. | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. This code generates a sequence of bytecodes that call the addParameter() method in AbstractTranslet. The method call will add (or update) the parameter frame with the new parameter value. | |
| translateValue | back to summary |
|---|---|
| public void translateValue(ClassGenerator classGen, MethodGenerator methodGen) Compile the value of the parameter, which is either in an expression in a 'select' attribute, or in the with-param element's body | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Type-check either the select attribute or the element body, depending on which is in use. | |