|
|||||||||
| 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. |
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 int ALL
public static final byte[] ALLNODES
public int id
public static final int UNKNOWN
| Constructor Detail |
|---|
public TestName(boolean t)
t - tag reference
public TestName(byte[] nm,
boolean t)
nm - the name to match.t - tag reference| Method Detail |
|---|
public void compile(Data data)
Test
compile in class Testdata - data reference
public boolean eval(Data data,
int pre,
int kind)
Test
eval in class Testdata - data referencepre - pre valuekind - node kind
public boolean sameAs(Test test)
Test
sameAs in class Testtest - 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 | ||||||||