public String toString() { StringBuilder buf = new StringBuilder(name); if (args != null) { buf.append('('); Iterator<String> it = args.iterator(); while (it.hasNext()) { buf.append(it.next()); if (it.hasNext()) buf.append(", "); else if (isVariadic()) buf.append("..."); } buf.append(')'); } if (!tokens.isEmpty()) { buf.append(" => ").append(getText()); } return buf.toString(); }
public String toString() { StringBuilder buf = new StringBuilder(name); if (args != null) { buf.append('('); Iterator<String> it = args.iterator(); while (it.hasNext()) { buf.append(it.next()); if (it.hasNext()) buf.append(", "); else if (isVariadic()) buf.append("..."); } buf.append(')'); } if (!tokens.isEmpty()) { buf.append(" => ").append(getText()); } return buf.toString(); }
@Override public String toString() { StringBuilder buf = new StringBuilder(name); if (args != null) { buf.append('('); Iterator<String> it = args.iterator(); while (it.hasNext()) { buf.append(it.next()); if (it.hasNext()) buf.append(", "); else if (isVariadic()) buf.append("..."); } buf.append(')'); } if (!tokens.isEmpty()) { buf.append(" => ").append(getText()); } return buf.toString(); }
static void addDefines(JNAeratorConfig config, Map<String, Macro> macros, List<Define> defines, boolean verbose, TypeConversion typeConverter) { for (Map.Entry<String, Macro> e : macros.entrySet()) { Macro macro = e.getValue(); if (macro.getText() == null) { continue; String preprocessedMacro = preprocessSources(config, Collections.singletonList(macro.getText()), Collections.EMPTY_LIST, null, verbose, typeConverter, null, macros); Expression expression = new JNAeratorParser().newObjCppParser(typeConverter, preprocessedMacro, verbose, null).expression();//.expr; if (expression == null) {
static void addDefines(JNAeratorConfig config, Map<String, Macro> macros, List<Define> defines, boolean verbose, TypeConversion typeConverter) { for (Map.Entry<String, Macro> e : macros.entrySet()) { Macro macro = e.getValue(); if (macro.getText() == null) { continue; String preprocessedMacro = preprocessSources(config, Collections.singletonList(macro.getText()), Collections.EMPTY_LIST, null, verbose, typeConverter, null, macros); Expression expression = new JNAeratorParser().newObjCppParser(typeConverter, preprocessedMacro, verbose, null).expression();//.expr; if (expression == null) {