com.alibaba.fastffi.clang.DirectoryLookup_cxx_0xe2daa36 Maven / Gradle / Ivy
The newest version!
package com.alibaba.fastffi.clang;
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 com.alibaba.fastffi.llvm.StringRef;
import java.lang.Object;
import java.lang.String;
import java.lang.UnsatisfiedLinkError;
@FFIForeignType("clang::DirectoryLookup")
@FFISynthetic("com.alibaba.fastffi.clang.DirectoryLookup")
public class DirectoryLookup_cxx_0xe2daa36 extends FFIPointerImpl implements DirectoryLookup {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(DirectoryLookup_cxx_0xe2daa36.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public DirectoryLookup_cxx_0xe2daa36(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;
DirectoryLookup_cxx_0xe2daa36 that = (DirectoryLookup_cxx_0xe2daa36) 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 StringRef getName() {
long ret$ = nativeGetName(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.llvm.StringRef_cxx_0xe9c826cb.SIZE)); return (new com.alibaba.fastffi.llvm.StringRef_cxx_0xe9c826cb(ret$));
}
@CXXValue
public static native long nativeGetName(long ptr, long rv_base);
public boolean isFramework() {
return nativeIsFramework(address);
}
public static native boolean nativeIsFramework(long ptr);
public boolean isNormalDir() {
return nativeIsNormalDir(address);
}
public static native boolean nativeIsNormalDir(long ptr);
public boolean isSystemHeaderDirectory() {
return nativeIsSystemHeaderDirectory(address);
}
public static native boolean nativeIsSystemHeaderDirectory(long ptr);
}