From 3db6b2c3816307f94a2b52bfb5e3f70f9eaa8e3f Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 7 Jun 2020 15:52:39 +0100 Subject: [PATCH] Add Any{Class,Member}Filter Signed-off-by: Graham --- asm/src/main/java/dev/openrs2/asm/filter/AnyClassFilter.kt | 7 +++++++ .../main/java/dev/openrs2/asm/filter/AnyMemberFilter.kt | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 asm/src/main/java/dev/openrs2/asm/filter/AnyClassFilter.kt create mode 100644 asm/src/main/java/dev/openrs2/asm/filter/AnyMemberFilter.kt diff --git a/asm/src/main/java/dev/openrs2/asm/filter/AnyClassFilter.kt b/asm/src/main/java/dev/openrs2/asm/filter/AnyClassFilter.kt new file mode 100644 index 0000000000..9b1a718ce5 --- /dev/null +++ b/asm/src/main/java/dev/openrs2/asm/filter/AnyClassFilter.kt @@ -0,0 +1,7 @@ +package dev.openrs2.asm.filter + +object AnyClassFilter : ClassFilter { + override fun matches(name: String): Boolean { + return true + } +} diff --git a/asm/src/main/java/dev/openrs2/asm/filter/AnyMemberFilter.kt b/asm/src/main/java/dev/openrs2/asm/filter/AnyMemberFilter.kt new file mode 100644 index 0000000000..b7aa2f8016 --- /dev/null +++ b/asm/src/main/java/dev/openrs2/asm/filter/AnyMemberFilter.kt @@ -0,0 +1,7 @@ +package dev.openrs2.asm.filter + +object AnyMemberFilter : MemberFilter { + override fun matches(owner: String, name: String, desc: String): Boolean { + return true + } +}