public final class ItemList extends Object
Data structure to store XPath items.
This structure is used for atomic values that are needed for the evaluation of a query. They can be results of a query expression or be specified directly in the query e.g. as literals perform an arithmetic operation or a comparison.
Since these items have to be distinguishable from nodes their key will be a negative long value (node key is always a positive long value). This value is retrieved by negate their index in the internal data structure.
Constructor and Description |
---|
ItemList()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
addItem(AtomicValue pItem)
Adding to this list.
|
AtomicValue |
getItem(long pKey)
Getting an
AtomicValue from the list. |
String |
toString() |
public int addItem(AtomicValue pItem)
pItem
- setting and item to this listpublic AtomicValue getItem(long pKey)
AtomicValue
from the list.pKey
- for the valueAtomicValue
Copyright © 2013. All Rights Reserved.