|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.xsl.parser.ParserVariables
Class that manages variables during stylesheet compilation.
| Constructor Summary | |
ParserVariables()
|
|
| Method Summary | |
void |
bindTemplateVariable(ExpandedQName name,
Expression variable)
Bind an XSLT template variable by name. |
void |
bindTopLevelVariable(ExpandedQName name,
Expression variable)
Bind an XSLT top-level variable by name. |
Collection |
getTemplateVariables()
Return a Collection of any currently bound template variables. |
Collection |
getTopLevelVariables()
Return a Collection of any bound top-level variables. |
Expression |
getVariable(ExpandedQName varName)
Return an object of type Expression given an ExpandedQName name.
|
boolean |
haveTemplateVariable(ExpandedQName name)
Return true if the passed name is bound to a template variable. |
void |
popTemplateVariables()
Pop the collection of template variables pushed by pushTemplateVariables(). |
void |
pushTemplateVariables()
Push the collection of template (local) variables currently in scope in preparation for parsing a sub-template. |
void |
resetTemplateVariables()
Clear any current template variables in preparation for parsing a new template |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParserVariables()
| Method Detail |
public Expression getVariable(ExpandedQName varName)
Expression given an ExpandedQName name.
Note that this will always return non-null because if a name is not bound, it is
assumed to be a top-level variable whose definition has not yet been encountered. The parser
will fixup the top level variable placeholders after the last node in the stylesheet tree
is encountered.
getVariable in interface VariableBindingsvarName - The name of the variable
Expression object bound to passed name.
public void bindTopLevelVariable(ExpandedQName name,
Expression variable)
name - The name of the variable.variable - The variable expression
public void bindTemplateVariable(ExpandedQName name,
Expression variable)
name - The name of the variablevariable - The variable expressionpublic boolean haveTemplateVariable(ExpandedQName name)
true if the passed name is bound to a template variable.
name - The name to check.
true if passed name is bound to a template variable.public void resetTemplateVariables()
public void pushTemplateVariables()
public void popTemplateVariables()
pushTemplateVariables().
public Collection getTemplateVariables()
Collection of any currently bound template variables. This
may return null if there are no template variables currently bound.
Collection of any currently bound template variables or null.public Collection getTopLevelVariables()
Collection of any bound top-level variables. This may return
null if no top-level variables are currently bound.
Collection of any currently bound top-level variables or null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||