1 32 33 package com.jeantessier.classreader; 34 35 import java.util.*; 36 37 public class LoadEvent extends EventObject { 38 private String groupName; 39 private String filename; 40 private Classfile classfile; 41 private int size; 42 43 public LoadEvent(Object source, String groupName, int size) { 44 this(source, groupName, null, null, size); 45 } 46 47 public LoadEvent(Object source, String groupName, String filename, Classfile classfile) { 48 this(source, groupName, filename, classfile, -1); 49 } 50 51 public LoadEvent(Object source, String groupName, String filename, Classfile classfile, int size) { 52 super(source); 53 54 this.groupName = groupName; 55 this.filename = filename; 56 this.classfile = classfile; 57 this.size = size; 58 } 59 60 public String getGroupName() { 61 return groupName; 62 } 63 64 public String getFilename() { 65 return filename; 66 } 67 68 public Classfile getClassfile() { 69 return classfile; 70 } 71 72 public int getSize() { 73 return size; 74 } 75 } 76 | Popular Tags |