astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_SourceRange_cxx_0x266a4551.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/Basic/SourceLocation.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_SourceRange_1cxx_10x266a4551__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::SourceRange);
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceRange_1cxx_10x266a4551_nativeFullyContains(JNIEnv*, jclass, jlong ptr, jlong arg0 /* other0 */) {
return (reinterpret_cast(ptr)->fullyContains(*reinterpret_cast(arg0))) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_SourceRange_1cxx_10x266a4551_nativeGetBegin(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) clang::SourceLocation(reinterpret_cast(ptr)->getBegin()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_SourceRange_1cxx_10x266a4551_nativeGetEnd(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) clang::SourceLocation(reinterpret_cast(ptr)->getEnd()));
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceRange_1cxx_10x266a4551_nativeIsInvalid(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isInvalid()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_SourceRange_1cxx_10x266a4551_nativeIsValid(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isValid()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_SourceRange_1cxx_10x266a4551_nativePrintToString(JNIEnv*, jclass, jlong ptr, jlong rv_base, jlong arg0 /* SM0 */) {
return reinterpret_cast(new((void*)rv_base) std::string(reinterpret_cast(ptr)->printToString(*reinterpret_cast(arg0))));
}
#ifdef __cplusplus
}
#endif