com.alibaba.fastffi.clang.Preprocessor_cxx_0x25c4c3c0 Maven / Gradle / Ivy
The newest version!
package com.alibaba.fastffi.clang;
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::Preprocessor")
@FFISynthetic("com.alibaba.fastffi.clang.Preprocessor")
public class Preprocessor_cxx_0x25c4c3c0 extends FFIPointerImpl implements Preprocessor {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(Preprocessor_cxx_0x25c4c3c0.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public Preprocessor_cxx_0x25c4c3c0(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;
Preprocessor_cxx_0x25c4c3c0 that = (Preprocessor_cxx_0x25c4c3c0) o;
return this.address == that.address;
}
public int hashCode() {
return (int) (address >> HASH_SHIFT);
}
public String toString() {
return getClass().getName() + "@" + Long.toHexString(address);
}
@CXXReference
public HeaderSearch getHeaderSearchInfo() {
long ret$ = nativeGetHeaderSearchInfo(address); return (new com.alibaba.fastffi.clang.HeaderSearch_cxx_0xd12d3906(ret$));
}
@CXXReference
public static native long nativeGetHeaderSearchInfo(long ptr);
}