clark.xpath
Class Axis

java.lang.Object
  |
  +--clark.xpath.Axis

public class Axis
extends java.lang.Object

The class Axis evaluates the Axis Name and Node Test of the Axis Object. The main method is aXEval. it gets the axis name and selects function for its evaluation.


Constructor Summary
Axis()
           
 
Method Summary
static java.util.LinkedList ancest(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Ancestor axis name.
static java.util.LinkedList ancestors(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Ancestor-or-self axis name.
static java.util.LinkedList attrib(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Atrribute axis name.
static java.util.LinkedList aXEval(long axis, clark.xpath.NodeTest nodet, w3c.dom.Node context)
          Recognizes the axis name and selects the evaluatuin function.
static java.util.LinkedList chil(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Child axis name.
static void descen(java.util.LinkedList returnResult, w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Descendant axis name.
static void descenors(java.util.LinkedList returnResult, w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Descendant-or-self axis name.
static void descenorsRev(java.util.LinkedList returnResult, w3c.dom.Node nod, clark.xpath.NodeTest name)
           
static java.util.LinkedList foll(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluats Following axis name.
static java.util.LinkedList follsib(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Following-sibling axis name.
static void leftSiblings(w3c.dom.Node nod, clark.xpath.NodeTest test, java.util.LinkedList temp)
          Finds all siblings on the left of the node axis name.
static java.util.LinkedList namespc(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluats Namespace axis name.
static java.util.LinkedList next(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates next axis name.
static java.util.LinkedList parnt(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Parent axis name.
static java.util.LinkedList prec(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Preceding axis name.
static java.util.LinkedList precsib(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Preceding-sibling axis name.
static java.util.LinkedList previous(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates previous axis name.
static void rightSiblings(w3c.dom.Node nod, clark.xpath.NodeTest test, java.util.LinkedList temp)
          Finds all siblings on the right of the node axis name.
static java.util.LinkedList slf(w3c.dom.Node nod, clark.xpath.NodeTest name)
          Evaluates Self axis name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Axis

public Axis()
Method Detail

aXEval

public static java.util.LinkedList aXEval(long axis,
                                          clark.xpath.NodeTest nodet,
                                          w3c.dom.Node context)
                                   throws ParseException
Recognizes the axis name and selects the evaluatuin function.

Parameters:
axis - Index of axis name in Defs.
context - The context Node to be evluated.
Returns:
Returns the Result of evaluation.
ParseException

prec

public static java.util.LinkedList prec(w3c.dom.Node nod,
                                        clark.xpath.NodeTest name)
                                 throws ParseException
Evaluates Preceding axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

foll

public static java.util.LinkedList foll(w3c.dom.Node nod,
                                        clark.xpath.NodeTest name)
                                 throws ParseException
Evaluats Following axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

descen

public static void descen(java.util.LinkedList returnResult,
                          w3c.dom.Node nod,
                          clark.xpath.NodeTest name)
                   throws ParseException
Evaluates Descendant axis name. Test the result of the evaluatin with the Node Test.

Parameters:
returnResult - The result from evaluation
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

chil

public static java.util.LinkedList chil(w3c.dom.Node nod,
                                        clark.xpath.NodeTest name)
                                 throws ParseException
Evaluates Child axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

parnt

public static java.util.LinkedList parnt(w3c.dom.Node nod,
                                         clark.xpath.NodeTest name)
                                  throws ParseException
Evaluates Parent axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

ancest

public static java.util.LinkedList ancest(w3c.dom.Node nod,
                                          clark.xpath.NodeTest name)
                                   throws ParseException
Evaluates Ancestor axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

ancestors

public static java.util.LinkedList ancestors(w3c.dom.Node nod,
                                             clark.xpath.NodeTest name)
                                      throws ParseException
Evaluates Ancestor-or-self axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

slf

public static java.util.LinkedList slf(w3c.dom.Node nod,
                                       clark.xpath.NodeTest name)
                                throws ParseException
Evaluates Self axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

attrib

public static java.util.LinkedList attrib(w3c.dom.Node nod,
                                          clark.xpath.NodeTest name)
                                   throws ParseException
Evaluates Atrribute axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

descenors

public static void descenors(java.util.LinkedList returnResult,
                             w3c.dom.Node nod,
                             clark.xpath.NodeTest name)
                      throws ParseException
Evaluates Descendant-or-self axis name. Test the result of the evaluatin with the Node Test.

Parameters:
returnResult - The Result of Evaluation.
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

descenorsRev

public static void descenorsRev(java.util.LinkedList returnResult,
                                w3c.dom.Node nod,
                                clark.xpath.NodeTest name)
                         throws ParseException
ParseException

next

public static java.util.LinkedList next(w3c.dom.Node nod,
                                        clark.xpath.NodeTest name)
                                 throws ParseException
Evaluates next axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

follsib

public static java.util.LinkedList follsib(w3c.dom.Node nod,
                                           clark.xpath.NodeTest name)
                                    throws ParseException
Evaluates Following-sibling axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

rightSiblings

public static void rightSiblings(w3c.dom.Node nod,
                                 clark.xpath.NodeTest test,
                                 java.util.LinkedList temp)
                          throws ParseException
Finds all siblings on the right of the node axis name.

Parameters:
nod - The Context Node
Returns:
The Result of Evaluation.
ParseException

previous

public static java.util.LinkedList previous(w3c.dom.Node nod,
                                            clark.xpath.NodeTest name)
                                     throws ParseException
Evaluates previous axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

precsib

public static java.util.LinkedList precsib(w3c.dom.Node nod,
                                           clark.xpath.NodeTest name)
                                    throws ParseException
Evaluates Preceding-sibling axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException

leftSiblings

public static void leftSiblings(w3c.dom.Node nod,
                                clark.xpath.NodeTest test,
                                java.util.LinkedList temp)
                         throws ParseException
Finds all siblings on the left of the node axis name.

Parameters:
nod - The Context Node
Returns:
The Result of Evaluation.
ParseException

namespc

public static java.util.LinkedList namespc(w3c.dom.Node nod,
                                           clark.xpath.NodeTest name)
                                    throws ParseException
Evaluats Namespace axis name. Test the result of the evaluatin with the Node Test.

Parameters:
nod - The Context Node
name - Node test.
Returns:
The Result of Evaluation.
ParseException