|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.template.Variable
A Variable class.
Field Summary | |
static Variable[] |
EMPTY_LIST
|
static int |
PARAMETER
|
static int |
VARIABLE
|
static int |
WITHPARAM
|
Constructor Summary | |
Variable(VariableName name,
Expression select,
Template template,
int type)
Create a Variable. |
Method Summary | |
XObject |
getConstantValue()
Return the constant value or null. |
Expression |
getExpression()
Return the expression or null. |
Template |
getTemplate()
Return the template or null. |
XObject |
getValue(XsltContext context)
Return the variable value, evaluated for the given context. |
static XObject[] |
getValues(XsltContext context,
Variable[] variables)
Evaluate an array of variables |
VariableName |
getVariableName()
Return the variable name. |
boolean |
hasSameName(Variable variable)
Test if the variable has the same name. |
boolean |
isParameter()
Return true if the variable was defined by a xsl:param element or false if by a xsl:variable element. |
void |
setVariableName(Variable variable)
Exchange the VariableName. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int VARIABLE
public static final int PARAMETER
public static final int WITHPARAM
public static final Variable[] EMPTY_LIST
Constructor Detail |
public Variable(VariableName name, Expression select, Template template, int type)
Method Detail |
public boolean isParameter()
public VariableName getVariableName()
public void setVariableName(Variable variable)
public boolean hasSameName(Variable variable)
public Template getTemplate()
public Expression getExpression()
public XObject getConstantValue()
public XObject getValue(XsltContext context)
public String toString()
public static XObject[] getValues(XsltContext context, Variable[] variables)
context
- the contextvariables
- can be null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |