org.apache.commons.jxpath.ri.compiler
Class NameAttributeTest

java.lang.Object
  extended byorg.apache.commons.jxpath.ri.compiler.Expression
      extended byorg.apache.commons.jxpath.ri.compiler.Operation
          extended byorg.apache.commons.jxpath.ri.compiler.CoreOperation
              extended byorg.apache.commons.jxpath.ri.compiler.CoreOperationCompare
                  extended byorg.apache.commons.jxpath.ri.compiler.CoreOperationEqual
                      extended byorg.apache.commons.jxpath.ri.compiler.NameAttributeTest

public class NameAttributeTest
extends CoreOperationEqual

Captures the foo[@name=expr] expression. These expressions are handled in a special way when applied to beans or maps.

Version:
$Revision: 1.5 $ $Date: 2004/02/29 14:17:39 $
Author:
Dmitri Plotnikov

Nested Class Summary
 
Nested classes inherited from class org.apache.commons.jxpath.ri.compiler.Expression
Expression.PointerIterator, Expression.ValueIterator
 
Field Summary
 
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Operation
args
 
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression
NOT_A_NUMBER, ONE, ZERO
 
Constructor Summary
NameAttributeTest(Expression namePath, Expression nameValue)
           
 
Method Summary
 boolean computeContextDependent()
          Implemented by subclasses and result is cached by isContextDependent()
 Expression getNameTestExpression()
           
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperationEqual
computeValue, getPrecedence, getSymbol, isSymmetric
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperationCompare
contains, equal, equal, findMatch
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperation
compute, toString
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Operation
getArguments
 
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Expression
isContextDependent, iterate, iteratePointers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameAttributeTest

public NameAttributeTest(Expression namePath,
                         Expression nameValue)
Method Detail

getNameTestExpression

public Expression getNameTestExpression()

computeContextDependent

public boolean computeContextDependent()
Description copied from class: Expression
Implemented by subclasses and result is cached by isContextDependent()

Overrides:
computeContextDependent in class Operation
See Also:
Expression.computeContextDependent()