astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_Attr_cxx_0x2307bd62.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/AST/Attr.h"
#include "clang/Basic/AttributeCommonInfo.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_Attr_1cxx_10x2307bd62__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::Attr);
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_Attr_1cxx_10x2307bd62_nativeGetKind(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getKind());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_Attr_1cxx_10x2307bd62_nativeGetSpelling(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getSpelling());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Attr_1cxx_10x2307bd62_nativeIsImplicit(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isImplicit()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Attr_1cxx_10x2307bd62_nativeIsInherited(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isInherited()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Attr_1cxx_10x2307bd62_nativeIsLateParsed(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isLateParsed()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_Attr_1cxx_10x2307bd62_nativeIsPackExpansion(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isPackExpansion()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif