Codota Logo
Function.accept
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: nativelibs4java/JNAerator

/**
 * @return true if the functionSignature changed and triggerered
 * revisitation
 */
private boolean chooseNameIfMissing(FunctionSignature functionSignature) {
  Function function = functionSignature.getFunction();
  Element parent = functionSignature.getParentElement();
  if (function != null && (isNull(function.getName()) || parent instanceof VariablesDeclaration || parent instanceof Arg)) {
    String name = null;
    String exact = JNAeratorUtils.getExactTypeDefName(functionSignature);
    if (exact != null) {
      name = exact;
    } else {
      List<String> ownerNames = JNAeratorUtils.guessOwnerName(function);
      if (function.getName() != null) {
        ownerNames.add(function.getName().toString());
      }
      name = chooseName(functionSignature, ownerNames, true);
    }
    if (name != null) {
      function.setName(ident(name));
      function.accept(this);
      return true;
    }
  }
  return false;
}
Map<String, Integer> nextUnnamedId = new LinkedHashMap<String, Integer>();
origin: com.nativelibs4java/jnaerator

/**
 * @return true if the functionSignature changed and triggerered
 * revisitation
 */
private boolean chooseNameIfMissing(FunctionSignature functionSignature) {
  Function function = functionSignature.getFunction();
  Element parent = functionSignature.getParentElement();
  if (function != null && (isNull(function.getName()) || parent instanceof VariablesDeclaration || parent instanceof Arg)) {
    String name = null;
    String exact = JNAeratorUtils.getExactTypeDefName(functionSignature);
    if (exact != null) {
      name = exact;
    } else {
      List<String> ownerNames = JNAeratorUtils.guessOwnerName(function);
      if (function.getName() != null) {
        ownerNames.add(function.getName().toString());
      }
      name = chooseName(functionSignature, ownerNames, true);
    }
    if (name != null) {
      function.setName(ident(name));
      function.accept(this);
      return true;
    }
  }
  return false;
}
Map<String, Integer> nextUnnamedId = new LinkedHashMap<String, Integer>();
com.ochafik.lang.jnaerator.parserFunctionaccept

Popular methods of Function

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • ImageIO (javax.imageio)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now