|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.expr.ComputedExpression
net.sf.saxon.expr.SingleNodeExpression
net.sf.saxon.expr.AttributeReference
public class AttributeReference
An expression that represents a reference to a named attribute
Field Summary |
---|
Fields inherited from class net.sf.saxon.expr.ComputedExpression |
---|
lineNumber, NO_ARGUMENTS, staticProperties |
Constructor Summary | |
---|---|
AttributeReference(int fingerprint)
Constructor |
Method Summary | |
---|---|
int |
computeSpecialProperties()
getProperties(): return properties of this expression, for optimization |
void |
display(int level,
NamePool pool)
Diagnostic print of expression structure |
boolean |
effectiveBooleanValue(XPathContext context)
Evaluate as a boolean. |
boolean |
equals(Object other)
Is this expression the same as another expression? |
String |
evaluateAsString(XPathContext context)
Evaluate as a string. |
ItemType |
getItemType()
Determine the data type of the items returned by this expression |
NameTest |
getNameTest()
Get the attribute name test |
NodeInfo |
getNode(XPathContext context)
Return the relevant attribute node |
int |
hashCode()
get HashCode for comparing two expressions |
Methods inherited from class net.sf.saxon.expr.SingleNodeExpression |
---|
analyze, computeCardinality, evaluateItem, getIntrinsicDependencies, iterate |
Methods inherited from class net.sf.saxon.expr.ComputedExpression |
---|
computeDependencies, computeStaticProperties, dynamicError, getCardinality, getDependencies, getLineNumber, getSpecialProperties, getSubExpressions, markTailFunctionCalls, promote, setLineNumber, simplify, typeError |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeReference(int fingerprint)
Method Detail |
---|
public ItemType getItemType()
getItemType
in interface Expression
getItemType
in class SingleNodeExpression
public NameTest getNameTest()
public int computeSpecialProperties()
computeSpecialProperties
in class ComputedExpression
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public NodeInfo getNode(XPathContext context) throws XPathException
getNode
in class SingleNodeExpression
context
- the evaluation context
XPathException
public boolean effectiveBooleanValue(XPathContext context) throws XPathException
effectiveBooleanValue
in interface Expression
effectiveBooleanValue
in class SingleNodeExpression
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic String evaluateAsString(XPathContext context) throws XPathException
evaluateAsString
in interface Expression
evaluateAsString
in class ComputedExpression
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionpublic void display(int level, NamePool pool)
level
- indentation level for this expression
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |