forked from neoforged/JavaSourceTransformer
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flag to inherit access transformers on methods (#1)
Useful for modifying methods exposed by types with a lot of children to avoid specifying them all.
- Loading branch information
Showing
18 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
tests/data/accesstransformer/methods_inheritance/accesstransformer.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public Parent flag()Z |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_inheritance/expected/Child.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Child extends Parent { | ||
@Override | ||
public boolean flag() { | ||
return true; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_inheritance/expected/Grandchild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Grandchild extends Child { | ||
@Override | ||
public boolean flag() { | ||
return false; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/data/accesstransformer/methods_inheritance/expected/Parent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Parent { | ||
public boolean flag() { | ||
return false; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_inheritance/source/Child.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Child extends Parent { | ||
@Override | ||
protected boolean flag() { | ||
return true; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_inheritance/source/Grandchild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Grandchild extends Child { | ||
@Override | ||
protected boolean flag() { | ||
return false; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/data/accesstransformer/methods_inheritance/source/Parent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Parent { | ||
protected boolean flag() { | ||
return false; | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
tests/data/accesstransformer/methods_no_inheritance/accesstransformer.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
public Parent flag()Z |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_no_inheritance/expected/Child.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Child extends Parent { | ||
@Override | ||
protected boolean flag() { | ||
return true; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_no_inheritance/expected/Grandchild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Grandchild extends Child { | ||
@Override | ||
protected boolean flag() { | ||
return false; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/data/accesstransformer/methods_no_inheritance/expected/Parent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Parent { | ||
public boolean flag() { | ||
return false; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_no_inheritance/source/Child.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Child extends Parent { | ||
@Override | ||
protected boolean flag() { | ||
return true; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
tests/data/accesstransformer/methods_no_inheritance/source/Grandchild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Grandchild extends Child { | ||
@Override | ||
protected boolean flag() { | ||
return false; | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/data/accesstransformer/methods_no_inheritance/source/Parent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Parent { | ||
protected boolean flag() { | ||
return false; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters