|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.query.xpath.locpath.Test
org.basex.query.xpath.locpath.TestName
public final class TestName
NodeTest testing for a name match.
Field Summary | |
---|---|
static int |
ALL
Test accepting all names. |
static byte[] |
ALLNODES
Test accepting all names. |
int |
id
Index reference to the Tag/Attribute. |
byte[] |
name
Tag/Attribute name. |
static int |
UNKNOWN
Unknown tag/attribute name. |
Constructor Summary | |
---|---|
TestName(boolean t)
Constructor, accepting all tags/attribute names. |
|
TestName(byte[] nm,
boolean t)
Constructor. |
Method Summary | |
---|---|
void |
compile(Data data)
Optimizes the expression. |
boolean |
eval(Data data,
int pre,
int kind)
Evaluates a node test. |
boolean |
sameAs(Test test)
Checks current and specified class for equivalence. |
java.lang.String |
toString()
|
Methods inherited from class org.basex.query.xpath.locpath.Test |
---|
eval |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte[] ALLNODES
public static final int ALL
public static final int UNKNOWN
public int id
public final byte[] name
Constructor Detail |
---|
public TestName(boolean t)
t
- tag referencepublic TestName(byte[] nm, boolean t)
nm
- the name to match.t
- tag referenceMethod Detail |
---|
public boolean eval(Data data, int pre, int kind)
Test
eval
in class Test
data
- data referencepre
- pre valuekind
- node kind
public void compile(Data data)
Test
compile
in class Test
data
- data referencepublic boolean sameAs(Test test)
Test
sameAs
in class Test
test
- node test to be compared
public java.lang.String toString()
toString
in class Test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |