com.alibaba.fastffi.clang.DeclContext_cxx_0x7beaa914 Maven / Gradle / Ivy
The newest version!
package com.alibaba.fastffi.clang;
import com.alibaba.fastffi.CXXReference;
import com.alibaba.fastffi.CXXValue;
import com.alibaba.fastffi.FFIForeignType;
import com.alibaba.fastffi.FFIPointerImpl;
import com.alibaba.fastffi.FFISynthetic;
import com.alibaba.fastffi.FFITypeFactory;
import java.lang.Object;
import java.lang.String;
import java.lang.UnsatisfiedLinkError;
@FFIForeignType("clang::DeclContext")
@FFISynthetic("com.alibaba.fastffi.clang.DeclContext")
public class DeclContext_cxx_0x7beaa914 extends FFIPointerImpl implements DeclContext {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(DeclContext_cxx_0x7beaa914.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public DeclContext_cxx_0x7beaa914(final long address) {
super(address);
}
private static final native int _elementSize$$$();
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeclContext_cxx_0x7beaa914 that = (DeclContext_cxx_0x7beaa914) o;
return this.address == that.address;
}
public int hashCode() {
return (int) (address >> HASH_SHIFT);
}
public String toString() {
return getClass().getName() + "@" + Long.toHexString(address);
}
@CXXValue
public DeclContext.decl_iterator decls_begin() {
long ret$ = nativeDecls_begin(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.DeclContext_decl_iterator_cxx_0x893c298f.SIZE)); return (new com.alibaba.fastffi.clang.DeclContext_decl_iterator_cxx_0x893c298f(ret$));
}
@CXXValue
public static native long nativeDecls_begin(long ptr, long rv_base);
public boolean decls_empty() {
return nativeDecls_empty(address);
}
public static native boolean nativeDecls_empty(long ptr);
@CXXValue
public DeclContext.decl_iterator decls_end() {
long ret$ = nativeDecls_end(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.DeclContext_decl_iterator_cxx_0x893c298f.SIZE)); return (new com.alibaba.fastffi.clang.DeclContext_decl_iterator_cxx_0x893c298f(ret$));
}
@CXXValue
public static native long nativeDecls_end(long ptr, long rv_base);
public Decl.Kind getDeclKind() {
return com.alibaba.fastffi.clang.Decl.Kind.get(nativeGetDeclKind(address));
}
public static native int nativeGetDeclKind(long ptr);
public LinkageSpecDecl getExternCContext() {
long ret$ = nativeGetExternCContext(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.LinkageSpecDecl_cxx_0xae862cd9(ret$));
}
public static native long nativeGetExternCContext(long ptr);
public DeclContext getLexicalParent() {
long ret$ = nativeGetLexicalParent(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.DeclContext_cxx_0x7beaa914(ret$));
}
public static native long nativeGetLexicalParent(long ptr);
public DeclContext getLookupParent() {
long ret$ = nativeGetLookupParent(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.DeclContext_cxx_0x7beaa914(ret$));
}
public static native long nativeGetLookupParent(long ptr);
public DeclContext getParent() {
long ret$ = nativeGetParent(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.DeclContext_cxx_0x7beaa914(ret$));
}
public static native long nativeGetParent(long ptr);
@CXXReference
public ASTContext getParentASTContext() {
long ret$ = nativeGetParentASTContext(address); return (new com.alibaba.fastffi.clang.ASTContext_cxx_0xb01a2b7e(ret$));
}
@CXXReference
public static native long nativeGetParentASTContext(long ptr);
public DeclContext getPrimaryContext() {
long ret$ = nativeGetPrimaryContext(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.DeclContext_cxx_0x7beaa914(ret$));
}
public static native long nativeGetPrimaryContext(long ptr);
public DeclContext getRedeclContext() {
long ret$ = nativeGetRedeclContext(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.DeclContext_cxx_0x7beaa914(ret$));
}
public static native long nativeGetRedeclContext(long ptr);
public boolean isClosure() {
return nativeIsClosure(address);
}
public static native boolean nativeIsClosure(long ptr);
public boolean isDependentContext() {
return nativeIsDependentContext(address);
}
public static native boolean nativeIsDependentContext(long ptr);
public boolean isExternCContext() {
return nativeIsExternCContext(address);
}
public static native boolean nativeIsExternCContext(long ptr);
public boolean isExternCXXContext() {
return nativeIsExternCXXContext(address);
}
public static native boolean nativeIsExternCXXContext(long ptr);
public boolean isFileContext() {
return nativeIsFileContext(address);
}
public static native boolean nativeIsFileContext(long ptr);
public boolean isFunctionOrMethod() {
return nativeIsFunctionOrMethod(address);
}
public static native boolean nativeIsFunctionOrMethod(long ptr);
public boolean isInlineNamespace() {
return nativeIsInlineNamespace(address);
}
public static native boolean nativeIsInlineNamespace(long ptr);
public boolean isLookupContext() {
return nativeIsLookupContext(address);
}
public static native boolean nativeIsLookupContext(long ptr);
public boolean isNamespace() {
return nativeIsNamespace(address);
}
public static native boolean nativeIsNamespace(long ptr);
public boolean isObjCContainer() {
return nativeIsObjCContainer(address);
}
public static native boolean nativeIsObjCContainer(long ptr);
public boolean isRecord() {
return nativeIsRecord(address);
}
public static native boolean nativeIsRecord(long ptr);
public boolean isStdNamespace() {
return nativeIsStdNamespace(address);
}
public static native boolean nativeIsStdNamespace(long ptr);
public boolean isTranslationUnit() {
return nativeIsTranslationUnit(address);
}
public static native boolean nativeIsTranslationUnit(long ptr);
public boolean isTransparentContext() {
return nativeIsTransparentContext(address);
}
public static native boolean nativeIsTransparentContext(long ptr);
}