com.alibaba.fastffi.clang.HeaderSearch_cxx_0xd12d3906 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 java.lang.Object;
import java.lang.String;
import java.lang.UnsatisfiedLinkError;
@FFIForeignType("clang::HeaderSearch")
@FFISynthetic("com.alibaba.fastffi.clang.HeaderSearch")
public class HeaderSearch_cxx_0xd12d3906 extends FFIPointerImpl implements HeaderSearch {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(HeaderSearch_cxx_0xd12d3906.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public HeaderSearch_cxx_0xd12d3906(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;
HeaderSearch_cxx_0xd12d3906 that = (HeaderSearch_cxx_0xd12d3906) 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 HeaderSearch.search_dir_iterator angled_dir_begin() {
long ret$ = nativeAngled_dir_begin(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeAngled_dir_begin(long ptr, long rv_base);
@CXXValue
public HeaderSearch.search_dir_iterator angled_dir_end() {
long ret$ = nativeAngled_dir_end(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeAngled_dir_end(long ptr, long rv_base);
@CXXValue
public HeaderSearch.search_dir_iterator quoted_dir_begin() {
long ret$ = nativeQuoted_dir_begin(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeQuoted_dir_begin(long ptr, long rv_base);
@CXXValue
public HeaderSearch.search_dir_iterator quoted_dir_end() {
long ret$ = nativeQuoted_dir_end(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeQuoted_dir_end(long ptr, long rv_base);
@CXXValue
public HeaderSearch.search_dir_iterator search_dir_begin() {
long ret$ = nativeSearch_dir_begin(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeSearch_dir_begin(long ptr, long rv_base);
@CXXValue
public HeaderSearch.search_dir_iterator search_dir_end() {
long ret$ = nativeSearch_dir_end(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeSearch_dir_end(long ptr, long rv_base);
public int search_dir_size() {
return nativeSearch_dir_size(address);
}
public static native int nativeSearch_dir_size(long ptr);
@CXXValue
public HeaderSearch.search_dir_iterator system_dir_begin() {
long ret$ = nativeSystem_dir_begin(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeSystem_dir_begin(long ptr, long rv_base);
@CXXValue
public HeaderSearch.search_dir_iterator system_dir_end() {
long ret$ = nativeSystem_dir_end(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091.SIZE)); return (new com.alibaba.fastffi.clang.HeaderSearch_search_dir_iterator_cxx_0xb9f091(ret$));
}
@CXXValue
public static native long nativeSystem_dir_end(long ptr, long rv_base);
}