Graham
8b5f3402e2
Rename getAccess to getMethodAccess
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
626202b451
Move isMethodRenamable below createMethodMapping for consistency
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
6be3f915f0
Add generate{Class,Field}Name methods
...
Before extracting this functionality out, some of the methods were quite
large.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
c4ea6cf150
Group isClassRenamable with populateClassMapping
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
b0dddff729
Add isFieldRenamable method
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
5c1768e824
Improve consistency of isClassRenamable and isMethodImmutable
...
This commit:
* Renames isMethodImmutable to isMethodRenamable and flips the value of
the boolean it outputs accordingly.
* Updates all uses of isMethodRenamable to account for this.
* Makes the internal implementation more similar to isClassRenamable.
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Major
9a1599880b
Don't rename classes containing native methods
...
Signed-off-by: Major <major@emulate.rs>
4 years ago
Graham
43646bbd9d
Format TypedRemapper
...
Signed-off-by: Graham <gpe@openrs2.dev>
4 years ago
Graham
a777ae362e
Add underscore separator to field names
...
This allows us to distinguish between aClass1_23 and aClass12_3, for
example.
4 years ago
Graham
fda857963b
Make ClassPath::get() return null if a class is not found
4 years ago
Graham
c7f5b0b6b3
Replace isNative() with more generic getAccess() method
4 years ago
Graham
3124624b5e
Make EXCLUDED_{METHODS,FIELDS} public
...
These will be required for the future static scrambling transformer.
4 years ago
Graham
abf803f017
Replace contains() calls with the in operator
...
These are artifacts of the Java port.
4 years ago
Graham
a99d5973ae
Replace Guice's repeat with Kotlin's
4 years ago
Graham
86fe02f32d
Remove @JvmStatic annotations
...
We only need to keep it on the main() methods for the moment.
4 years ago
Graham
b6d96ac4e6
Convert TypedRemapper to Kotlin
4 years ago
Graham
e05653cdcc
Rename util to common
4 years ago
Graham
e5af454815
Convert ClassMetadata to Kotlin
...
The dependency/interface properties are translated to getDependency and
getInterface. I don't know if it is possible to fix this, but it won't matter
when the rest of the codebase is converted to Kotlin.
4 years ago
Graham
e319493e81
Convert PrefixRemapper to Kotlin
4 years ago
Graham
72db700534
Remove capitalize() method
...
Kotlin already has a capitalize() method - we don't need to define our
own.
4 years ago
Graham
db971f6b2b
Convert indefiniteArticle() to an extension method
4 years ago
Graham
0cb0658f61
Add shorthand MemberDesc constructors
5 years ago
Graham
46ab5111e6
Add isMethodImmutable method to TypedRemapper
...
I'm going to use this in a new Transformer.
5 years ago
Graham
b97294457a
Make ClassNamePrefixer more similar to TypedRemapper
5 years ago
Graham
1319295d77
Separate remapping from the write{Pack,Jar} methods
...
This is a prerequisite for removing dummy arguments - before the methods
are remapped, removing an argument might cause the method to conflict
with another method with the same name and descriptor as the replacement
descriptor.
5 years ago
Graham
3242356c80
Remove unused throws declarations
5 years ago
Graham
517032959e
Use immutable collections types from Guava
5 years ago
Graham
12293bb3b1
Refactor package structure of the asm module
5 years ago
Graham
0c8d0f9cc3
Add initial support for whole program analysis in transformers
5 years ago
Graham
15ccc70c37
Add new remap package
5 years ago