astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_clang_VarTemplateDecl_cxx_0xbcb144fa.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclBase.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/SourceManager.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(clang::VarTemplateDecl);
}
JNIEXPORT
void JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeDump0(JNIEnv*, jclass, jlong ptr, jlong arg0 /* Out0 */, jboolean arg1 /* Deserialize1 */, jint arg2 /* OutputFormat2 */) {
reinterpret_cast(ptr)->dump(*reinterpret_cast(arg0), (arg1 == JNI_TRUE ? true : false), static_cast(arg2));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetASTContext(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast(ptr)->getASTContext()));
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetAccess(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getAccess());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetAttrs(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(&(reinterpret_cast(ptr)->getAttrs()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetBeginLoc(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) clang::SourceLocation(reinterpret_cast(ptr)->getBeginLoc()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetDeclContext(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getDeclContext());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetDeclName(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) clang::DeclarationName(reinterpret_cast(ptr)->getDeclName()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetDefinition(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getDefinition());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetEndLoc(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) clang::SourceLocation(reinterpret_cast(ptr)->getEndLoc()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetIdentifier(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getIdentifier());
}
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetKind(JNIEnv*, jclass, jlong ptr) {
return (jint)(reinterpret_cast(ptr)->getKind());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetLocation(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) clang::SourceLocation(reinterpret_cast(ptr)->getLocation()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetMostRecentDecl(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getMostRecentDecl());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetName(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::StringRef(reinterpret_cast(ptr)->getName()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetNameAsString(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) std::string(reinterpret_cast(ptr)->getNameAsString()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetNextDeclInContext(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getNextDeclInContext());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetPreviousDecl(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getPreviousDecl());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetTemplateParameters(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getTemplateParameters());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetTemplatedDecl(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getTemplatedDecl());
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeGetTranslationUnitDecl(JNIEnv*, jclass, jlong ptr) {
return reinterpret_cast(reinterpret_cast(ptr)->getTranslationUnitDecl());
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeHasAttrs(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->hasAttrs()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeIsExplicitlyDeclaredInMainFile(JNIEnv*, jclass, jlong ptr) {
return (!reinterpret_cast(ptr)->isImplicit() && reinterpret_cast(ptr)->getASTContext().getSourceManager().isInMainFile(reinterpret_cast(ptr)->getLocation())) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeIsFirstDecl(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isFirstDecl()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeIsImplicit(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isImplicit()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeIsInAnonymousNamespace(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isInAnonymousNamespace()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeIsInStdNamespace(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isInStdNamespace()) ? JNI_TRUE : JNI_FALSE;
}
JNIEXPORT
jboolean JNICALL Java_com_alibaba_fastffi_clang_VarTemplateDecl_1cxx_10xbcb144fa_nativeIsThisDeclarationADefinition(JNIEnv*, jclass, jlong ptr) {
return (reinterpret_cast(ptr)->isThisDeclarationADefinition()) ? JNI_TRUE : JNI_FALSE;
}
#ifdef __cplusplus
}
#endif