Class NameAttributeTest
java.lang.Object
org.apache.commons.jxpath.ri.compiler.Expression
org.apache.commons.jxpath.ri.compiler.Operation
org.apache.commons.jxpath.ri.compiler.CoreOperation
org.apache.commons.jxpath.ri.compiler.CoreOperationCompare
org.apache.commons.jxpath.ri.compiler.CoreOperationEqual
org.apache.commons.jxpath.ri.compiler.NameAttributeTest
Captures the
foo[@name=expr] expression. These
expressions are handled in a special way when applied to beans
or maps.- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Dmitri Plotnikov
-
Nested Class Summary
Nested classes/interfaces inherited from class Expression
Expression.PointerIterator, Expression.ValueIterator -
Field Summary
Fields inherited from class CoreOperation
ADD_PRECEDENCE, AND_PRECEDENCE, COMPARE_PRECEDENCE, MULTIPLY_PRECEDENCE, NEGATE_PRECEDENCE, OR_PRECEDENCE, RELATIONAL_EXPR_PRECEDENCE, UNION_PRECEDENCEFields inherited from class Expression
NOT_A_NUMBER, ONE, ZERO -
Constructor Summary
ConstructorsConstructorDescriptionNameAttributeTest(Expression namePath, Expression nameValue) Create a new NameAttributeTest. -
Method Summary
Modifier and TypeMethodDescriptionbooleanImplemented by subclasses and result is cached by isContextDependent()Get the name test expression.Methods inherited from class CoreOperationEqual
getSymbolMethods inherited from class CoreOperationCompare
computeValue, contains, equal, equal, findMatch, getPrecedence, isSymmetricMethods inherited from class CoreOperation
compute, toStringMethods inherited from class Operation
getArgumentsMethods inherited from class Expression
isContextDependent, iterate, iteratePointers
-
Constructor Details
-
NameAttributeTest
Create a new NameAttributeTest.- Parameters:
namePath- ExpressionnameValue- Expression
-
-
Method Details
-
getNameTestExpression
-
computeContextDependent
public boolean computeContextDependent()Description copied from class:ExpressionImplemented by subclasses and result is cached by isContextDependent()- Overrides:
computeContextDependentin classOperation- Returns:
- calculated context-dependentness as boolean
-