|
||||||||||
| 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.TestPI
public final class TestPI
XPath Processing Instruction Test. Tests for a specific processing instruction.
| Constructor Summary | |
|---|---|
TestPI(byte[] nm)
Constructor with Literal. |
|
| Method Summary | |
|---|---|
boolean |
eval(Data data,
int pre,
int kind)
Evaluates a node test. |
boolean |
sameAs(Test test)
Checks current and specified class for equivalence. |
static boolean |
startsWith(byte[] tok,
byte[] sub)
Checks if the first token starts with the second token. |
java.lang.String |
toString()
|
| Methods inherited from class org.basex.query.xpath.locpath.Test |
|---|
compile, eval |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestPI(byte[] nm)
nm - name of the processing instruction| Method Detail |
|---|
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 static boolean startsWith(byte[] tok,
byte[] sub)
tok - first tokensub - second token
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 | |||||||||