@Test public void shouldReturnNullFromParseAnyKindTestIfNotFollowedByOpenAndCloseParenthesis() { assertThat(parser.parseAnyKindTest(tokenize("node x )")), is(nullValue())); assertThat(parser.parseAnyKindTest(tokenize("node(x )")), is(nullValue())); assertThat(parser.parseAnyKindTest(tokenize("node(x")), is(nullValue())); }
protected AnyKindTest parseAnyKindTest( TokenStream tokens ) { if (tokens.canConsume("node", "(", ")")) { return new AnyKindTest(); } return null; }
XPathParser { protected AnyKindTest parseAnyKindTest( TokenStream tokens ) { if (tokens.canConsume("node", "(", ")")) { return new AnyKindTest(); } return null; } }
XPathParser { protected AnyKindTest parseAnyKindTest( TokenStream tokens ) { if (tokens.canConsume("node", "(", ")")) { return new AnyKindTest(); } return null; } XPathParser( TypeSystem context ); }
XPathParser { protected AnyKindTest parseAnyKindTest( TokenStream tokens ) { if (tokens.canConsume("node", "(", ")")) { return new AnyKindTest(); } return null; } XPathParser( TypeSystem context ); Component parseXPath( String xpath ); }
XPathParser { protected AnyKindTest parseAnyKindTest( TokenStream tokens ) { if (tokens.canConsume("node", "(", ")")) { return new AnyKindTest(); } return null; } XPathParser( TypeSystem context ); Component parseXPath( String xpath );  }