com.alibaba.fastffi.clang.NestedNameSpecifier_cxx_0x158b942b Maven / Gradle / Ivy
The newest version!
package com.alibaba.fastffi.clang;
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::NestedNameSpecifier")
@FFISynthetic("com.alibaba.fastffi.clang.NestedNameSpecifier")
public class NestedNameSpecifier_cxx_0x158b942b extends FFIPointerImpl implements NestedNameSpecifier {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(NestedNameSpecifier_cxx_0x158b942b.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public NestedNameSpecifier_cxx_0x158b942b(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;
NestedNameSpecifier_cxx_0x158b942b that = (NestedNameSpecifier_cxx_0x158b942b) o;
return this.address == that.address;
}
public int hashCode() {
return (int) (address >> HASH_SHIFT);
}
public String toString() {
return getClass().getName() + "@" + Long.toHexString(address);
}
public IdentifierInfo getAsIdentifier() {
long ret$ = nativeGetAsIdentifier(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.IdentifierInfo_cxx_0xc7d01328(ret$));
}
public static native long nativeGetAsIdentifier(long ptr);
public NamespaceDecl getAsNamespace() {
long ret$ = nativeGetAsNamespace(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.NamespaceDecl_cxx_0xe9140c54(ret$));
}
public static native long nativeGetAsNamespace(long ptr);
public NamespaceAliasDecl getAsNamespaceAlias() {
long ret$ = nativeGetAsNamespaceAlias(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.NamespaceAliasDecl_cxx_0xf85a89b0(ret$));
}
public static native long nativeGetAsNamespaceAlias(long ptr);
public CXXRecordDecl getAsRecordDecl() {
long ret$ = nativeGetAsRecordDecl(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.CXXRecordDecl_cxx_0xa7f2634d(ret$));
}
public static native long nativeGetAsRecordDecl(long ptr);
public Type getAsType() {
long ret$ = nativeGetAsType(address); return com.alibaba.fastffi.clang.TypeRefiner.refine(ret$ == 0L ? null : new com.alibaba.fastffi.clang.Type_cxx_0x231072ab(ret$));
}
public static native long nativeGetAsType(long ptr);
public NestedNameSpecifier.SpecifierKind getKind() {
return SpecifierKind.get(nativeGetKind(address));
}
public static native int nativeGetKind(long ptr);
public NestedNameSpecifier getPrefix() {
long ret$ = nativeGetPrefix(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.NestedNameSpecifier_cxx_0x158b942b(ret$));
}
public static native long nativeGetPrefix(long ptr);
}