summaryrefslogtreecommitdiff
path: root/test/cuchaz/enigma/EntryFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/cuchaz/enigma/EntryFactory.java')
-rw-r--r--test/cuchaz/enigma/EntryFactory.java44
1 files changed, 18 insertions, 26 deletions
diff --git a/test/cuchaz/enigma/EntryFactory.java b/test/cuchaz/enigma/EntryFactory.java
index 5a8a427..d9317ef 100644
--- a/test/cuchaz/enigma/EntryFactory.java
+++ b/test/cuchaz/enigma/EntryFactory.java
@@ -18,45 +18,37 @@ import cuchaz.enigma.mapping.ConstructorEntry;
18import cuchaz.enigma.mapping.FieldEntry; 18import cuchaz.enigma.mapping.FieldEntry;
19import cuchaz.enigma.mapping.MethodEntry; 19import cuchaz.enigma.mapping.MethodEntry;
20 20
21public class EntryFactory 21public class EntryFactory {
22{ 22
23 public static ClassEntry newClass( String name ) 23 public static ClassEntry newClass(String name) {
24 { 24 return new ClassEntry(name);
25 return new ClassEntry( name );
26 } 25 }
27 26
28 public static FieldEntry newField( String className, String fieldName ) 27 public static FieldEntry newField(String className, String fieldName) {
29 { 28 return new FieldEntry(newClass(className), fieldName);
30 return new FieldEntry( newClass( className ), fieldName );
31 } 29 }
32 30
33 public static MethodEntry newMethod( String className, String methodName, String methodSignature ) 31 public static MethodEntry newMethod(String className, String methodName, String methodSignature) {
34 { 32 return new MethodEntry(newClass(className), methodName, methodSignature);
35 return new MethodEntry( newClass( className ), methodName, methodSignature );
36 } 33 }
37 34
38 public static ConstructorEntry newConstructor( String className, String signature ) 35 public static ConstructorEntry newConstructor(String className, String signature) {
39 { 36 return new ConstructorEntry(newClass(className), signature);
40 return new ConstructorEntry( newClass( className ), signature );
41 } 37 }
42 38
43 public static EntryReference<FieldEntry,BehaviorEntry> newFieldReferenceByMethod( FieldEntry fieldEntry, String callerClassName, String callerName, String callerSignature ) 39 public static EntryReference<FieldEntry,BehaviorEntry> newFieldReferenceByMethod(FieldEntry fieldEntry, String callerClassName, String callerName, String callerSignature) {
44 { 40 return new EntryReference<FieldEntry,BehaviorEntry>(fieldEntry, "", newMethod(callerClassName, callerName, callerSignature));
45 return new EntryReference<FieldEntry,BehaviorEntry>( fieldEntry, "", newMethod( callerClassName, callerName, callerSignature ) );
46 } 41 }
47 42
48 public static EntryReference<FieldEntry,BehaviorEntry> newFieldReferenceByConstructor( FieldEntry fieldEntry, String callerClassName, String callerSignature ) 43 public static EntryReference<FieldEntry,BehaviorEntry> newFieldReferenceByConstructor(FieldEntry fieldEntry, String callerClassName, String callerSignature) {
49 { 44 return new EntryReference<FieldEntry,BehaviorEntry>(fieldEntry, "", newConstructor(callerClassName, callerSignature));
50 return new EntryReference<FieldEntry,BehaviorEntry>( fieldEntry, "", newConstructor( callerClassName, callerSignature ) );
51 } 45 }
52 46
53 public static EntryReference<BehaviorEntry,BehaviorEntry> newBehaviorReferenceByMethod( BehaviorEntry behaviorEntry, String callerClassName, String callerName, String callerSignature ) 47 public static EntryReference<BehaviorEntry,BehaviorEntry> newBehaviorReferenceByMethod(BehaviorEntry behaviorEntry, String callerClassName, String callerName, String callerSignature) {
54 { 48 return new EntryReference<BehaviorEntry,BehaviorEntry>(behaviorEntry, "", newMethod(callerClassName, callerName, callerSignature));
55 return new EntryReference<BehaviorEntry,BehaviorEntry>( behaviorEntry, "", newMethod( callerClassName, callerName, callerSignature ) );
56 } 49 }
57 50
58 public static EntryReference<BehaviorEntry,BehaviorEntry> newBehaviorReferenceByConstructor( BehaviorEntry behaviorEntry, String callerClassName, String callerSignature ) 51 public static EntryReference<BehaviorEntry,BehaviorEntry> newBehaviorReferenceByConstructor(BehaviorEntry behaviorEntry, String callerClassName, String callerSignature) {
59 { 52 return new EntryReference<BehaviorEntry,BehaviorEntry>(behaviorEntry, "", newConstructor(callerClassName, callerSignature));
60 return new EntryReference<BehaviorEntry,BehaviorEntry>( behaviorEntry, "", newConstructor( callerClassName, callerSignature ) );
61 } 53 }
62} 54}