コード例 #1
0
  void addConstructor(Struct s, Function f) {
    Identifier structName = getActualTaggedTypeName(s);

    f.setName(structName);
    s.addDeclaration(f);
  }
コード例 #2
0
 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());
 }