Parses the "PITest" rule without the leading keyword and its brackets. @return test or null @throws QueryException query exception
()
| 3779 | * @throws QueryException query exception |
| 3780 | */ |
| 3781 | private Test piTest() throws QueryException { |
| 3782 | token.reset(); |
| 3783 | final byte[] name; |
| 3784 | if(quote(current())) { |
| 3785 | name = trim(stringLiteral()); |
| 3786 | if(!XMLToken.isNCName(name)) throw error(INVNCNAME_X, name); |
| 3787 | } else if(ncName(false)) { |
| 3788 | name = token.toArray(); |
| 3789 | } else { |
| 3790 | return null; |
| 3791 | } |
| 3792 | return NameTest.get(new QNm(name), Kind.PROCESSING_INSTRUCTION); |
| 3793 | } |
| 3794 | |
| 3795 | /** |
| 3796 | * Parses the "EnumerationType" rule without the leading keyword and the opening bracket. |