All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.fastffi.clang.TemplateParameterList_cxx_0x8e223c Maven / Gradle / Ivy

The newest version!
package com.alibaba.fastffi.clang;

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::TemplateParameterList")
@FFISynthetic("com.alibaba.fastffi.clang.TemplateParameterList")
public class TemplateParameterList_cxx_0x8e223c extends FFIPointerImpl implements TemplateParameterList {
  public static final int SIZE;

  public static final int HASH_SHIFT;

  static {
    try {
      System.loadLibrary("llvm4jni");
    } catch (UnsatisfiedLinkError e) {
      System.load(FFITypeFactory.findNativeLibrary(TemplateParameterList_cxx_0x8e223c.class, "llvm4jni"));
    }
  }
  static {
    SIZE = _elementSize$$$();
    assert SIZE > 0;
    HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
    assert HASH_SHIFT > 0;
  }

  public TemplateParameterList_cxx_0x8e223c(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;
    TemplateParameterList_cxx_0x8e223c that = (TemplateParameterList_cxx_0x8e223c) o;
    return this.address == that.address;
  }

  public int hashCode() {
    return (int) (address >> HASH_SHIFT);
  }

  public String toString() {
    return getClass().getName() + "@" + Long.toHexString(address);
  }

  public int getMinRequiredArguments() {
    return nativeGetMinRequiredArguments(address);
  }

  public static native int nativeGetMinRequiredArguments(long ptr);

  public NamedDecl getParam(int idx) {
    long ret$ = nativeGetParam(address, idx); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.NamedDecl_cxx_0x236b9eb2(ret$));
  }

  public static native long nativeGetParam(long ptr, int idx0);

  public boolean hasParameterPack() {
    return nativeHasParameterPack(address);
  }

  public static native boolean nativeHasParameterPack(long ptr);

  public int size() {
    return nativeSize(address);
  }

  public static native int nativeSize(long ptr);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy