rawMethod.addAnnotation(new Annotation(typeRef(Optional.class))); nativeMethod.addModifiers(isCallback ? ModifierType.Abstract : ModifierType.Native); if (isOptional && !isCallback) { nativeMethod.addAnnotation(new Annotation(typeRef(Optional.class)));
rawMethod.addAnnotation(new Annotation(typeRef(Optional.class))); nativeMethod.addModifiers(isCallback ? ModifierType.Abstract : ModifierType.Native); if (isOptional && !isCallback) { nativeMethod.addAnnotation(new Annotation(typeRef(Optional.class)));
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)));
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)));
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)));
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)));
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;
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;