com.alibaba.fastffi.llvm.ObjectCastingGen_cxx_0x2609c9ac Maven / Gradle / Ivy
The newest version!
package com.alibaba.fastffi.llvm;
import com.alibaba.fastffi.CXXTemplate;
import com.alibaba.fastffi.FFINameAlias;
import com.alibaba.fastffi.FFISkip;
import com.alibaba.fastffi.FFISynthetic;
import com.alibaba.fastffi.FFITypeAlias;
import com.alibaba.fastffi.FFITypeFactory;
import java.lang.UnsatisfiedLinkError;
@FFISynthetic("com.alibaba.fastffi.llvm.ObjectCastingGen")
public class ObjectCastingGen_cxx_0x2609c9ac implements ObjectCastingGen {
public static final ObjectCastingGen INSTANCE;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(ObjectCastingGen_cxx_0x2609c9ac.class, "llvm4jni"));
}
}
static {
INSTANCE = new ObjectCastingGen_cxx_0x2609c9ac();
}
public ObjectCastingGen_cxx_0x2609c9ac() {
}
@FFITypeAlias("llvm::object::ObjectFile")
@CXXTemplate(
cxx = "llvm::object::ObjectFile",
java = "ObjectFile"
)
@FFINameAlias("dyn_cast")
public ObjectFile dyn_cast(@FFITypeAlias("llvm::object::Binary") Binary from,
@FFITypeAlias("llvm::object::ObjectFile") @FFISkip ObjectFile unused) {
long ret$ = nativeDyn_cast0(((com.alibaba.fastffi.FFIPointerImpl) from).address); return (ret$ == 0L ? null : new com.alibaba.fastffi.llvm.ObjectFile_cxx_0xa2731771(ret$));
}
@FFITypeAlias("llvm::object::ObjectFile")
@CXXTemplate(
cxx = "llvm::object::ObjectFile",
java = "ObjectFile"
)
@FFINameAlias("dyn_cast")
public static native long nativeDyn_cast0(long from0);
}