Tabnine Logo
Function.getType
Code IndexAdd Tabnine to your IDE (free)

How to use
getType
method
in
com.ochafik.lang.jnaerator.parser.Function

Best Java code snippets using com.ochafik.lang.jnaerator.parser.Function.getType (Showing top 9 results out of 315)

origin: com.nativelibs4java/jnaerator

@Override
public void visitFunction(Function function) {
  switch (function.getType()) {
    case CFunction:
    case CppMethod:
origin: nativelibs4java/JNAerator

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;
}
origin: nativelibs4java/JNAerator

@Override
public void visitFunction(Function function) {
  switch (function.getType()) {
    case CFunction:
    case CppMethod:
origin: com.nativelibs4java/jnaerator

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;
}
origin: nativelibs4java/JNAerator

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());
origin: nativelibs4java/JNAerator

boolean isObjectiveC = function.getType() == Type.ObjCMethod;
Set<String> argNames = new TreeSet<String>();
origin: com.nativelibs4java/jnaerator

boolean isObjectiveC = function.getType() == Type.ObjCMethod;
Set<String> argNames = new TreeSet<String>();
origin: com.nativelibs4java/jnaerator

boolean isObjectiveC = function.getType() == Type.ObjCMethod;
origin: nativelibs4java/JNAerator

boolean isObjectiveC = function.getType() == Type.ObjCMethod;
com.ochafik.lang.jnaerator.parserFunctiongetType

Popular methods of Function

  • <init>
  • addArg
  • addModifiers
  • getModifiers
  • getName
  • getValueType
  • setBody
  • getArgs
  • getAsmName
  • getBody
  • importDetails
  • setArgs
  • importDetails,
  • setArgs,
  • setCommentBefore,
  • setName,
  • setType,
  • setValueType,
  • accept,
  • addAnnotation,
  • addThrown

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now