@Override public void visitFunction(Function function) { switch (function.getType()) { case CFunction: case CppMethod:
String getFileCommentContent(File file, Element e) { if (file != null) { String path = result.config.relativizeFileForSourceComments(file.getAbsolutePath()); String inCategoryStr = ""; if (e instanceof Function) { Function fc = (Function) e; Struct parent; if (fc.getType() == Type.ObjCMethod && ((parent = as(fc.getParentElement(), Struct.class)) != null) && (parent.getCategoryName() != null)) { inCategoryStr = "from " + parent.getCategoryName() + " "; } } return "<i>" + inCategoryStr + "native declaration : " + path + (e == null || e.getElementLine() < 0 ? "" : ":" + e.getElementLine()) + "</i>"; } else if (e != null && e.getElementLine() >= 0) { return "<i>native declaration : <input>:" + e.getElementLine() + "</i>"; } return null; }
@Override public void visitFunction(Function function) { switch (function.getType()) { case CFunction: case CppMethod:
String getFileCommentContent(File file, Element e) { if (file != null) { String path = result.config.relativizeFileForSourceComments(file.getAbsolutePath()); String inCategoryStr = ""; if (e instanceof Function) { Function fc = (Function) e; Struct parent; if (fc.getType() == Type.ObjCMethod && ((parent = as(fc.getParentElement(), Struct.class)) != null) && (parent.getCategoryName() != null)) { inCategoryStr = "from " + parent.getCategoryName() + " "; } } return "<i>" + inCategoryStr + "native declaration : " + path + (e == null || e.getElementLine() < 0 ? "" : ":" + e.getElementLine()) + "</i>"; } else if (e != null && e.getElementLine() >= 0) { return "<i>native declaration : <input>:" + e.getElementLine() + "</i>"; } return null; }
List<Modifier> modifiers = e.getModifiers(); if (e.getType() == null) { append("<no function type>"); return; switch (e.getType()) { case StaticInit: implode(modifiers, " "); case CppMethod: case JavaMethod: if (name != null && name.equals("operator") && e.getType() == Function.Type.CppMethod) { append(name); space(); switch (e.getType()) { case JavaMethod: if (!e.getThrown().isEmpty()) { break; default: throw new RuntimeException(e.getType().toString());
boolean isObjectiveC = function.getType() == Type.ObjCMethod; Set<String> argNames = new TreeSet<String>();
boolean isObjectiveC = function.getType() == Type.ObjCMethod; Set<String> argNames = new TreeSet<String>();
boolean isObjectiveC = function.getType() == Type.ObjCMethod;
boolean isObjectiveC = function.getType() == Type.ObjCMethod;