Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Support exact type matches for type resolution from XPath #672

Closed
jsotuyod opened this issue Oct 17, 2017 · 0 comments
Closed

[core] Support exact type matches for type resolution from XPath #672

jsotuyod opened this issue Oct 17, 2017 · 0 comments
Assignees
Labels
an:enhancement An improvement on existing features / rules has:pr The issue is already tackled in a PR in:type-resolution Affects the type resolution code in:xpath Relating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution
Milestone

Comments

@jsotuyod
Copy link
Member

As shown in #666 (comment)

It would be interesting to extend the current type resolution XPath functions to allow for exact matches (no inheritance).

Currently XPath can only use a typeof function that will check if the type of the given node is a descendant of a given type (same rules as instanceof). But sometimes we want to check if a type's class is explicitly a given one (usually getClass() == Something.class).

@jsotuyod jsotuyod added an:enhancement An improvement on existing features / rules in:type-resolution Affects the type resolution code labels Oct 17, 2017
@jsotuyod jsotuyod added this to the 6.4.0 milestone May 17, 2018
@jsotuyod jsotuyod self-assigned this May 17, 2018
@jsotuyod jsotuyod added the in:xpath Relating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution label May 18, 2018
@jsotuyod jsotuyod added the has:pr The issue is already tackled in a PR label May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
an:enhancement An improvement on existing features / rules has:pr The issue is already tackled in a PR in:type-resolution Affects the type resolution code in:xpath Relating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution
Projects
None yet
Development

No branches or pull requests

1 participant