void addConstructor(Struct s, Function f) { Identifier structName = getActualTaggedTypeName(s); f.setName(structName); s.addDeclaration(f); }
public void addMissingMethods( Class<?> originalLib, Signatures existingSignatures, Struct outputLib) { for (Pair<Function, String> f : getMethodsAndTheirSignatures(originalLib).getFirst()) if (existingSignatures.addMethod(f.getSecond())) outputLib.addDeclaration(f.getFirst().clone()); }