com.alibaba.fastffi.clang.DiagnosticsEngine_cxx_0xf7e98b3d 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::DiagnosticsEngine")
@FFISynthetic("com.alibaba.fastffi.clang.DiagnosticsEngine")
public class DiagnosticsEngine_cxx_0xf7e98b3d extends FFIPointerImpl implements DiagnosticsEngine {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(DiagnosticsEngine_cxx_0xf7e98b3d.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public DiagnosticsEngine_cxx_0xf7e98b3d(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;
DiagnosticsEngine_cxx_0xf7e98b3d that = (DiagnosticsEngine_cxx_0xf7e98b3d) o;
return this.address == that.address;
}
public int hashCode() {
return (int) (address >> HASH_SHIFT);
}
public String toString() {
return getClass().getName() + "@" + Long.toHexString(address);
}
public int getNumWarnings() {
return nativeGetNumWarnings(address);
}
public static native int nativeGetNumWarnings(long ptr);
public boolean hasErrorOccurred() {
return nativeHasErrorOccurred(address);
}
public static native boolean nativeHasErrorOccurred(long ptr);
public boolean hasFatalErrorOccurred() {
return nativeHasFatalErrorOccurred(address);
}
public static native boolean nativeHasFatalErrorOccurred(long ptr);
public boolean hasUncompilableErrorOccurred() {
return nativeHasUncompilableErrorOccurred(address);
}
public static native boolean nativeHasUncompilableErrorOccurred(long ptr);
public boolean hasUnrecoverableErrorOccurred() {
return nativeHasUnrecoverableErrorOccurred(address);
}
public static native boolean nativeHasUnrecoverableErrorOccurred(long ptr);
}