Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.query.xpath.locpath
Class Step

    java.lang.Object
      org.basex.query.xpath.locpath.Step

Direct Known Subclasses:
  StepAnc, StepAncOrSelf, StepAttr, StepDesc, StepDescOrSelf, StepFoll, StepFollSibl, StepParent, StepPrec, StepPrecSibl, StepSelf

    public abstract class Step

extends java.lang.Object

Single Location Step.

Author:
  Workgroup DBIS, University of Konstanz 2005-07, ISC License, Tim Petrowsky, Christian Gruen

Field Summary
`Axis` | `axis` Axis.
`Preds` | `preds` Predicate array.
`Test` | `test` Node test.

Constructor Summary
`Step()`

Method Summary
`boolean` | `sameAs(Step step)` Checks location steps for equality.
`boolean` | `simple(Axis ax)` Checks if this is a simple axis (node test, no predicates).
`int` | `simpleName(Axis ax, boolean name)` Checks if this is a simple name axis (no predicates).
`java.lang.String` | `toString()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### axis

    public Axis axis

  Axis.

### preds

    public Preds preds

  Predicate array.

### test

    public Test test

  Node test.

Constructor Detail

### Step

    public Step()

Method Detail

### sameAs

    public final boolean sameAs(Step step)

  Checks location steps for equality.

  Parameters:
    `step` - location step
  Returns:
    false if no Position predicate

### simple

    public final boolean simple(Axis ax)

  Checks if this is a simple axis (node test, no predicates).

  Parameters:
    `ax` - axis to be checked
  Returns:
    result of check

### simpleName

    public final int simpleName(Axis ax,
                                boolean name)

  Checks if this is a simple name axis (no predicates).

  Parameters:
    `ax` - axis to be checked
    `name` - name reference needed
  Returns:
    name id or `Integer.MIN_VALUE` if test was negative

### toString

    public final java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD