Interface MethodMatcher
- All Superinterfaces:
MethodMatcherPredicate
-
Method Summary
Modifier and TypeMethodDescriptionand(MethodMatcher other) Creates a method matcher that matches if both matcher pass.and(Predicate<? super MethodTypeDesc> descPredicate) Creates a method matcher tha matches if both this matcher and the method descriptor predicate pass.static MethodMatcherBuilderbuilder()Predicate<? super MethodTypeDesc> static MethodMatchercreate(Collection<String> methodNames, Predicate<? super MethodTypeDesc> bytecodeDescPredicate) static MethodMatchercreate(Collection<String> methodNames, Predicate<? super MethodTypeDesc> bytecodeDescPredicate, OpcodePredicate opcodePredicate) static MethodMatcherbooleanmatches(int opcode, boolean isInvokeDynamic, String name, MethodTypeDesc descriptor) default booleanbooleanmatches(String name, MethodTypeDesc descriptor) default booleanor(MethodMatcher other) Creates a method matcher that matches if either matcher passes.static MethodMatchersingle(String name, Consumer<MethodMatcherBuilder.MatchBuilder> matchBuilderConsumer) Methods inherited from interface io.papermc.asm.rules.builder.matcher.method.targeted.MethodMatcherPredicate
and, negate
-
Method Details
-
builder
-
falseMatcher
-
single
static MethodMatcher single(String name, Consumer<MethodMatcherBuilder.MatchBuilder> matchBuilderConsumer) -
create
static MethodMatcher create(Collection<String> methodNames, Predicate<? super MethodTypeDesc> bytecodeDescPredicate) -
create
static MethodMatcher create(Collection<String> methodNames, Predicate<? super MethodTypeDesc> bytecodeDescPredicate, OpcodePredicate opcodePredicate) -
matches
-
matches
-
matches
- Specified by:
matchesin interfaceMethodMatcherPredicate
-
matches
-
methodNames
-
bytecodeDescPredicate
Predicate<? super MethodTypeDesc> bytecodeDescPredicate() -
opcodePredicate
OpcodePredicate opcodePredicate() -
or
Creates a method matcher that matches if either matcher passes.- Parameters:
other- the other matcher- Returns:
- a new "or" matcher
-
and
Creates a method matcher that matches if both matcher pass.- Parameters:
other- the other matcher- Returns:
- a new "and" matcher
- See Also:
-
and
Creates a method matcher tha matches if both this matcher and the method descriptor predicate pass.- Parameters:
descPredicate- the method descriptor predicate- Returns:
- a new "and" matcher
-