diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma/translation')
| -rw-r--r-- | src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java b/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java index 52ec3e2..5904efe 100644 --- a/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java +++ b/src/main/java/cuchaz/enigma/translation/representation/entry/ClassEntry.java | |||
| @@ -125,6 +125,13 @@ public class ClassEntry extends ParentedEntry<ClassEntry> implements Comparable< | |||
| 125 | return parent; | 125 | return parent; |
| 126 | } | 126 | } |
| 127 | 127 | ||
| 128 | public ClassEntry getOutermostClass() { | ||
| 129 | if (parent == null) { | ||
| 130 | return this; | ||
| 131 | } | ||
| 132 | return parent.getOutermostClass(); | ||
| 133 | } | ||
| 134 | |||
| 128 | public ClassEntry buildClassEntry(List<ClassEntry> classChain) { | 135 | public ClassEntry buildClassEntry(List<ClassEntry> classChain) { |
| 129 | assert (classChain.contains(this)); | 136 | assert (classChain.contains(this)); |
| 130 | StringBuilder buf = new StringBuilder(); | 137 | StringBuilder buf = new StringBuilder(); |