Search in sources :

Example 1 with BasedMatcher

use of com.navercorp.pinpoint.bootstrap.instrument.matcher.BasedMatcher in project pinpoint by naver.

the class MatchableTransformerRegistry method addTransformer.

private void addTransformer(final Matcher matcher, final ClassFileTransformer transformer) {
    if (!MatcherType.isBasedMatcher(matcher)) {
        throw new IllegalArgumentException("unsupported baseMatcher");
    }
    // class or package based.
    MatcherOperand matcherOperand = ((BasedMatcher) matcher).getMatcherOperand();
    addIndex(matcherOperand, transformer);
}
Also used : ClassInternalNameMatcherOperand(com.navercorp.pinpoint.bootstrap.instrument.matcher.operand.ClassInternalNameMatcherOperand) MatcherOperand(com.navercorp.pinpoint.bootstrap.instrument.matcher.operand.MatcherOperand) PackageInternalNameMatcherOperand(com.navercorp.pinpoint.bootstrap.instrument.matcher.operand.PackageInternalNameMatcherOperand) BasedMatcher(com.navercorp.pinpoint.bootstrap.instrument.matcher.BasedMatcher)

Aggregations

BasedMatcher (com.navercorp.pinpoint.bootstrap.instrument.matcher.BasedMatcher)1 ClassInternalNameMatcherOperand (com.navercorp.pinpoint.bootstrap.instrument.matcher.operand.ClassInternalNameMatcherOperand)1 MatcherOperand (com.navercorp.pinpoint.bootstrap.instrument.matcher.operand.MatcherOperand)1 PackageInternalNameMatcherOperand (com.navercorp.pinpoint.bootstrap.instrument.matcher.operand.PackageInternalNameMatcherOperand)1