public short addInterfaceMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (interfaceMethodLocations.containsKey(method)) { return interfaceMethodLocations.get(method); } final short nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final short classIndex = addClassEntry(className); final short index = count++; constPoolSize++; entries.put(index, new InterfaceMethodRefEntry(classIndex, nameAndTypeIndex)); interfaceMethodLocations.put(method, index); return index; }
public Integer addFieldEntry(String className, String fieldName, String fieldType) { final NameAndType nameAndType = new NameAndType(fieldName, fieldType); final MemberInfo field = new MemberInfo(className, nameAndType); if (fieldLocations.containsKey(field)) { return fieldLocations.get(field); } final Integer nameAndTypeIndex = addNameAndTypeEntry(fieldName, fieldType); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new FieldRefEntry(classIndex, nameAndTypeIndex)); fieldLocations.put(field, index); return index; }
public short addFieldEntry(String className, String fieldName, String fieldType) { final NameAndType nameAndType = new NameAndType(fieldName, fieldType); final MemberInfo field = new MemberInfo(className, nameAndType); if (fieldLocations.containsKey(field)) { return fieldLocations.get(field); } final short nameAndTypeIndex = addNameAndTypeEntry(fieldName, fieldType); final short classIndex = addClassEntry(className); final short index = count++; constPoolSize++; entries.put(index, new FieldRefEntry(classIndex, nameAndTypeIndex)); fieldLocations.put(field, 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 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 addInterfaceMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (interfaceMethodLocations.containsKey(method)) { return interfaceMethodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new InterfaceMethodRefEntry(classIndex, nameAndTypeIndex)); interfaceMethodLocations.put(method, index); return index; }
public Integer addFieldEntry(String className, String fieldName, String fieldType) { final NameAndType nameAndType = new NameAndType(fieldName, fieldType); final MemberInfo field = new MemberInfo(className, nameAndType); if (fieldLocations.containsKey(field)) { return fieldLocations.get(field); } final Integer nameAndTypeIndex = addNameAndTypeEntry(fieldName, fieldType); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new FieldRefEntry(classIndex, nameAndTypeIndex)); fieldLocations.put(field, index); return index; }
public Integer addFieldEntry(String className, String fieldName, String fieldType) { final NameAndType nameAndType = new NameAndType(fieldName, fieldType); final MemberInfo field = new MemberInfo(className, nameAndType); if (fieldLocations.containsKey(field)) { return fieldLocations.get(field); } final Integer nameAndTypeIndex = addNameAndTypeEntry(fieldName, fieldType); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new FieldRefEntry(classIndex, nameAndTypeIndex)); fieldLocations.put(field, 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 addInterfaceMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (interfaceMethodLocations.containsKey(method)) { return interfaceMethodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new InterfaceMethodRefEntry(classIndex, nameAndTypeIndex)); interfaceMethodLocations.put(method, index); return index; }
public Integer addInterfaceMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (interfaceMethodLocations.containsKey(method)) { return interfaceMethodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new InterfaceMethodRefEntry(classIndex, nameAndTypeIndex)); interfaceMethodLocations.put(method, index); return index; }
public Integer addInterfaceMethodEntry(String className, String methodName, String descriptor) { final NameAndType nameAndType = new NameAndType(methodName, descriptor); final MemberInfo method = new MemberInfo(className, nameAndType); if (interfaceMethodLocations.containsKey(method)) { return interfaceMethodLocations.get(method); } final Integer nameAndTypeIndex = addNameAndTypeEntry(methodName, descriptor); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new InterfaceMethodRefEntry(classIndex, nameAndTypeIndex)); interfaceMethodLocations.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 addFieldEntry(String className, String fieldName, String fieldType) { final NameAndType nameAndType = new NameAndType(fieldName, fieldType); final MemberInfo field = new MemberInfo(className, nameAndType); if (fieldLocations.containsKey(field)) { return fieldLocations.get(field); } final Integer nameAndTypeIndex = addNameAndTypeEntry(fieldName, fieldType); final Integer classIndex = addClassEntry(className); final Integer index = count++; constPoolSize++; entries.put(index, new FieldRefEntry(classIndex, nameAndTypeIndex)); fieldLocations.put(field, 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; }