com.alibaba.fastffi.clang.Expr_cxx_0x23099d66 Maven / Gradle / Ivy
The newest version!
package com.alibaba.fastffi.clang;
import com.alibaba.fastffi.CXXReference;
import com.alibaba.fastffi.CXXValue;
import com.alibaba.fastffi.FFIForeignType;
import com.alibaba.fastffi.FFISynthetic;
import com.alibaba.fastffi.FFITypeFactory;
import com.alibaba.fastffi.llvm.StringOStream;
import java.lang.Object;
import java.lang.String;
import java.lang.UnsatisfiedLinkError;
@FFIForeignType("clang::Expr")
@FFISynthetic("com.alibaba.fastffi.clang.Expr")
public class Expr_cxx_0x23099d66 extends Stmt_cxx_0x230feb39 implements Expr {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(Expr_cxx_0x23099d66.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public Expr_cxx_0x23099d66(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;
Expr_cxx_0x23099d66 that = (Expr_cxx_0x23099d66) o;
return this.address == that.address;
}
public int hashCode() {
return (int) (address >> HASH_SHIFT);
}
public String toString() {
return getClass().getName() + "@" + Long.toHexString(address);
}
public void dump(@CXXReference StringOStream Out, @CXXReference ASTContext Context) {
nativeDump1(address, ((com.alibaba.fastffi.FFIPointerImpl) Out).address, ((com.alibaba.fastffi.FFIPointerImpl) Context).address);
}
public static native void nativeDump1(long ptr, long Out0, long Context1);
@CXXValue
public QualType getType() {
long ret$ = nativeGetType(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a.SIZE)); return (new com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a(ret$));
}
@CXXValue
public static native long nativeGetType(long ptr, long rv_base);
}