Skip to content

TypeInstrumenter match on prefix or suffix alternatives #13684

Closed Answered by laurit
dmarkwat asked this question in Q&A
Discussion options

You must be logged in to vote

The result is resorting to matching on class name suffix...which as I discovered today isn't supported

  public ElementMatcher<TypeDescription> typeMatcher() {
    return new ElementMatcher<TypeDescription>() {
      @Override
      public boolean matches(TypeDescription target) {
        return target.getActualName().endsWith("foo");
      }
    };
  }

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmarkwat
Comment options

Answer selected by dmarkwat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants