summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/mapping/ConstructorEntry.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuchaz/enigma/mapping/ConstructorEntry.java')
-rw-r--r--src/cuchaz/enigma/mapping/ConstructorEntry.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cuchaz/enigma/mapping/ConstructorEntry.java b/src/cuchaz/enigma/mapping/ConstructorEntry.java
index ad029e1..d99d1c3 100644
--- a/src/cuchaz/enigma/mapping/ConstructorEntry.java
+++ b/src/cuchaz/enigma/mapping/ConstructorEntry.java
@@ -43,6 +43,12 @@ public class ConstructorEntry implements BehaviorEntry, Serializable
43 m_signature = other.m_signature; 43 m_signature = other.m_signature;
44 } 44 }
45 45
46 public ConstructorEntry( ConstructorEntry other, String newClassName )
47 {
48 m_classEntry = new ClassEntry( newClassName );
49 m_signature = other.m_signature;
50 }
51
46 @Override 52 @Override
47 public ClassEntry getClassEntry( ) 53 public ClassEntry getClassEntry( )
48 { 54 {
@@ -77,6 +83,12 @@ public class ConstructorEntry implements BehaviorEntry, Serializable
77 } 83 }
78 84
79 @Override 85 @Override
86 public ConstructorEntry cloneToNewClass( ClassEntry classEntry )
87 {
88 return new ConstructorEntry( this, classEntry.getName() );
89 }
90
91 @Override
80 public int hashCode( ) 92 public int hashCode( )
81 { 93 {
82 if( isStatic() ) 94 if( isStatic() )