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

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

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

origin: nativelibs4java/JNAerator

    rawMethod.addAnnotation(new Annotation(typeRef(Optional.class)));
nativeMethod.addModifiers(isCallback ? ModifierType.Abstract : ModifierType.Native);
if (isOptional && !isCallback) {
  nativeMethod.addAnnotation(new Annotation(typeRef(Optional.class)));
origin: com.nativelibs4java/jnaerator

    rawMethod.addAnnotation(new Annotation(typeRef(Optional.class)));
nativeMethod.addModifiers(isCallback ? ModifierType.Abstract : ModifierType.Native);
if (isOptional && !isCallback) {
  nativeMethod.addAnnotation(new Annotation(typeRef(Optional.class)));
origin: com.nativelibs4java/jnaerator

Boolean alreadyRetained = Result.getMap(result.retainedRetValFunctions, library).get(functionName.toString());
if (alreadyRetained != null && alreadyRetained) {
  natFunc.addAnnotation(new Annotation(typeRef(AlreadyRetained.class), expr(alreadyRetained)));
      natFunc.addAnnotation(new Annotation(typeRef(Deprecated.class)));
origin: nativelibs4java/JNAerator

Boolean alreadyRetained = Result.getMap(result.retainedRetValFunctions, library).get(functionName.toString());
if (alreadyRetained != null && alreadyRetained) {
  natFunc.addAnnotation(new Annotation(typeRef(AlreadyRetained.class), expr(alreadyRetained)));
      natFunc.addAnnotation(new Annotation(typeRef(Deprecated.class)));
origin: nativelibs4java/JNAerator

convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Length),
    new OpaqueExpression("{" + StringUtils.implode(conv.arrayLengths, ", ") + "}")));
convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Bits), conv.bits));
convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.ByValue)));
convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Field), expr(fieldIndex)));
origin: com.nativelibs4java/jnaerator

convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Length),
    new OpaqueExpression("{" + StringUtils.implode(conv.arrayLengths, ", ") + "}")));
convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Bits), conv.bits));
convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.ByValue)));
convDecl.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Field), expr(fieldIndex)));
origin: nativelibs4java/JNAerator

boolean commentOut = false;
if (isVirtual) {
  method.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Virtual), expr(iVirtual)));
} else if (method.getValueType() == null) {
  method.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Constructor), expr(iConstructor)));
  isConstructor = true;
origin: com.nativelibs4java/jnaerator

boolean commentOut = false;
if (isVirtual) {
  method.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Virtual), expr(iVirtual)));
} else if (method.getValueType() == null) {
  method.addAnnotation(new Annotation(result.config.runtime.typeRef(JNAeratorConfig.Runtime.Ann.Constructor), expr(iConstructor)));
  isConstructor = true;
com.ochafik.lang.jnaerator.parserFunctionaddAnnotation

Popular methods of Function

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setRequestProperty (URLConnection)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top plugins for Android Studio
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