summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/mapper/data/MethodData.java
blob: 670ecd201634bed66487d243e6275b998625cf81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package ftbsc.lll.mapper.data;

/**
 * Container class for method data.
 */
public class MethodData {

   /**
    * The internal name of the parent class.
    */
   public final ClassData parentClass;

   /**
    * The signature of the method.
    */
   public final MethodSignature signature;

   /**
    * The mapped name of the method.
    */
   public final String nameMapped;

   /**
    * Constructs a new {@link MethodData}.
    * @param parentClass the {@link ClassData} representation of the parent class
    * @param name the method name
    * @param nameMapped the mapped method name
    * @param descriptor the method's descriptor
    */
   public MethodData(ClassData parentClass, String name, String nameMapped, String descriptor) {
      this.parentClass = parentClass;
      this.signature = new MethodSignature(name, descriptor);
      this.nameMapped = nameMapped;
   }
}