com.alibaba.fastffi.clang.LocalInstantiationScope_cxx_0x88f69cc1 Maven / Gradle / Ivy
The newest version!
package com.alibaba.fastffi.clang;
import com.alibaba.fastffi.CXXOperator;
import com.alibaba.fastffi.CXXReference;
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::LocalInstantiationScope")
@FFISynthetic("com.alibaba.fastffi.clang.LocalInstantiationScope")
public class LocalInstantiationScope_cxx_0x88f69cc1 extends FFIPointerImpl implements LocalInstantiationScope {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(LocalInstantiationScope_cxx_0x88f69cc1.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public LocalInstantiationScope_cxx_0x88f69cc1(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;
LocalInstantiationScope_cxx_0x88f69cc1 that = (LocalInstantiationScope_cxx_0x88f69cc1) o;
return this.address == that.address;
}
public int hashCode() {
return (int) (address >> HASH_SHIFT);
}
public String toString() {
return getClass().getName() + "@" + Long.toHexString(address);
}
public void InstantiatedLocal(Decl D, Decl Inst) {
native_InstantiatedLocal(address, ((com.alibaba.fastffi.FFIPointerImpl) D).address, ((com.alibaba.fastffi.FFIPointerImpl) Inst).address);
}
public static native void native_InstantiatedLocal(long ptr, long D0, long Inst1);
@CXXOperator("delete")
public void delete() {
nativeDelete(address);
}
@CXXOperator("delete")
public static native void nativeDelete(long ptr);
@CXXReference
public Sema getSema() {
long ret$ = nativeGetSema(address); return (new com.alibaba.fastffi.clang.Sema_cxx_0x230fb2d7(ret$));
}
@CXXReference
public static native long nativeGetSema(long ptr);
}