com.alibaba.fastffi.clang.TemplateArgumentLoc_cxx_0xeaf9ced8 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.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::TemplateArgumentLoc")
@FFISynthetic("com.alibaba.fastffi.clang.TemplateArgumentLoc")
public class TemplateArgumentLoc_cxx_0xeaf9ced8 extends FFIPointerImpl implements TemplateArgumentLoc {
public static final int SIZE;
public static final int HASH_SHIFT;
static {
try {
System.loadLibrary("llvm4jni");
} catch (UnsatisfiedLinkError e) {
System.load(FFITypeFactory.findNativeLibrary(TemplateArgumentLoc_cxx_0xeaf9ced8.class, "llvm4jni"));
}
}
static {
SIZE = _elementSize$$$();
assert SIZE > 0;
HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
assert HASH_SHIFT > 0;
}
public TemplateArgumentLoc_cxx_0xeaf9ced8(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;
TemplateArgumentLoc_cxx_0xeaf9ced8 that = (TemplateArgumentLoc_cxx_0xeaf9ced8) o;
return this.address == that.address;
}
public int hashCode() {
return (int) (address >> HASH_SHIFT);
}
public String toString() {
return getClass().getName() + "@" + Long.toHexString(address);
}
@CXXReference
public TemplateArgument getArgument() {
long ret$ = nativeGetArgument(address); return (new com.alibaba.fastffi.clang.TemplateArgument_cxx_0xc958b748(ret$));
}
@CXXReference
public static native long nativeGetArgument(long ptr);
@CXXValue
public SourceLocation getLocation() {
long ret$ = nativeGetLocation(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.SourceLocation_cxx_0xcb172b21.SIZE)); return (new com.alibaba.fastffi.clang.SourceLocation_cxx_0xcb172b21(ret$));
}
@CXXValue
public static native long nativeGetLocation(long ptr, long rv_base);
@CXXValue
public SourceRange getSourceRange() {
long ret$ = nativeGetSourceRange(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.SourceRange_cxx_0x266a4551.SIZE)); return (new com.alibaba.fastffi.clang.SourceRange_cxx_0x266a4551(ret$));
}
@CXXValue
public static native long nativeGetSourceRange(long ptr, long rv_base);
@CXXValue
public SourceLocation getTemplateEllipsisLoc() {
long ret$ = nativeGetTemplateEllipsisLoc(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.SourceLocation_cxx_0xcb172b21.SIZE)); return (new com.alibaba.fastffi.clang.SourceLocation_cxx_0xcb172b21(ret$));
}
@CXXValue
public static native long nativeGetTemplateEllipsisLoc(long ptr, long rv_base);
@CXXValue
public SourceLocation getTemplateNameLoc() {
long ret$ = nativeGetTemplateNameLoc(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.SourceLocation_cxx_0xcb172b21.SIZE)); return (new com.alibaba.fastffi.clang.SourceLocation_cxx_0xcb172b21(ret$));
}
@CXXValue
public static native long nativeGetTemplateNameLoc(long ptr, long rv_base);
public TypeSourceInfo getTypeSourceInfo() {
long ret$ = nativeGetTypeSourceInfo(address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.TypeSourceInfo_cxx_0xffaf074(ret$));
}
public static native long nativeGetTypeSourceInfo(long ptr);
}