public Integer addMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (methodLocations.containsKey(method)) { return methodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new MethodRefEntry(classIndex, nameAndTypeIndex)); methodLocations.put(method, index); return index; }
public short addMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (methodLocations.containsKey(method)) { return methodLocations.get(method); } final short nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final short classIndex = addClassEntry(className); final short index = count++; constPoolSize++; entries.put(index, new MethodRefEntry(classIndex, nameAndTypeIndex)); methodLocations.put(method, index); return index; }
public Integer addMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (methodLocations.containsKey(method)) { return methodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new MethodRefEntry(classIndex, nameAndTypeIndex)); methodLocations.put(method, index); return index; }
public Integer addMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (methodLocations.containsKey(method)) { return methodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new MethodRefEntry(classIndex, nameAndTypeIndex)); methodLocations.put(method, index); return index; }
public Integer addMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (methodLocations.containsKey(method)) { return methodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new MethodRefEntry(classIndex, nameAndTypeIndex)); methodLocations.put(method, index); return index; }