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

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

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

import com.alibaba.fastffi.CXXOperator;
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 com.alibaba.fastffi.llvm.StringRef;
import java.lang.Object;
import java.lang.String;
import java.lang.UnsatisfiedLinkError;

@FFIForeignType("clang::Sema")
@FFISynthetic("com.alibaba.fastffi.clang.Sema")
public class Sema_cxx_0x230fb2d7 extends FFIPointerImpl implements Sema {
  public static final int SIZE;

  public static final int HASH_SHIFT;

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

  public Sema_cxx_0x230fb2d7(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;
    Sema_cxx_0x230fb2d7 that = (Sema_cxx_0x230fb2d7) 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 InstantiateAttrs(@CXXReference MultiLevelTemplateArgumentList TemplateArgs,
      Decl Pattern, Decl Inst, LateInstantiatedAttrVec LateAttrs,
      LocalInstantiationScope OuterMostScope) {
    native_InstantiateAttrs(address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address, ((com.alibaba.fastffi.FFIPointerImpl) Pattern).address, ((com.alibaba.fastffi.FFIPointerImpl) Inst).address, ((com.alibaba.fastffi.FFIPointerImpl) LateAttrs).address, ((com.alibaba.fastffi.FFIPointerImpl) OuterMostScope).address);
  }

  public static native void native_InstantiateAttrs(long ptr, long TemplateArgs0, long Pattern1,
      long Inst2, long LateAttrs3, long OuterMostScope4);

  public void InstantiateAttrsForDecl(@CXXReference MultiLevelTemplateArgumentList TemplateArgs,
      Decl Pattern, Decl Inst, LateInstantiatedAttrVec LateAttrs,
      LocalInstantiationScope OuterMostScope) {
    native_InstantiateAttrsForDecl(address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address, ((com.alibaba.fastffi.FFIPointerImpl) Pattern).address, ((com.alibaba.fastffi.FFIPointerImpl) Inst).address, ((com.alibaba.fastffi.FFIPointerImpl) LateAttrs).address, ((com.alibaba.fastffi.FFIPointerImpl) OuterMostScope).address);
  }

  public static native void native_InstantiateAttrsForDecl(long ptr, long TemplateArgs0,
      long Pattern1, long Inst2, long LateAttrs3, long OuterMostScope4);

  public boolean InstantiateClass(@CXXValue SourceLocation PointOfInstantiation,
      CXXRecordDecl Instantiation, CXXRecordDecl Pattern,
      @CXXReference MultiLevelTemplateArgumentList TemplateArgs,
      @CXXValue TemplateSpecializationKind TSK, boolean Complain) {
    return native_InstantiateClass(address, ((com.alibaba.fastffi.FFIPointerImpl) PointOfInstantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Instantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Pattern).address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address, TSK.getValue(), Complain);
  }

  public static native boolean native_InstantiateClass(long ptr, long PointOfInstantiation0,
      long Instantiation1, long Pattern2, long TemplateArgs3, int TSK4, boolean Complain5);

  public void InstantiateClassMembers(@CXXValue SourceLocation PointOfInstantiation,
      CXXRecordDecl Instantiation, @CXXReference MultiLevelTemplateArgumentList TemplateArgs,
      @CXXValue TemplateSpecializationKind TSK) {
    native_InstantiateClassMembers(address, ((com.alibaba.fastffi.FFIPointerImpl) PointOfInstantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Instantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address, TSK.getValue());
  }

  public static native void native_InstantiateClassMembers(long ptr, long PointOfInstantiation0,
      long Instantiation1, long TemplateArgs2, int TSK3);

  public boolean InstantiateClassTemplateSpecialization(
      @CXXReference SourceLocation PointOfInstantiation,
      ClassTemplateSpecializationDecl ClassTemplateSpec, @CXXValue TemplateSpecializationKind TSK,
      boolean Complain) {
    return native_InstantiateClassTemplateSpecialization(address, ((com.alibaba.fastffi.FFIPointerImpl) PointOfInstantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) ClassTemplateSpec).address, TSK.getValue(), Complain);
  }

  public static native boolean native_InstantiateClassTemplateSpecialization(long ptr,
      long PointOfInstantiation0, long ClassTemplateSpec1, int TSK2, boolean Complain3);

  public void InstantiateClassTemplateSpecializationMembers(
      @CXXValue SourceLocation PointOfInstantiation,
      ClassTemplateSpecializationDecl ClassTemplateSpec, @CXXValue TemplateSpecializationKind TSK) {
    native_InstantiateClassTemplateSpecializationMembers(address, ((com.alibaba.fastffi.FFIPointerImpl) PointOfInstantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) ClassTemplateSpec).address, TSK.getValue());
  }

  public static native void native_InstantiateClassTemplateSpecializationMembers(long ptr,
      long PointOfInstantiation0, long ClassTemplateSpec1, int TSK2);

  public boolean InstantiateDefaultArgument(@CXXValue SourceLocation CallLoc, FunctionDecl FD,
      ParmVarDecl Param) {
    return native_InstantiateDefaultArgument(address, ((com.alibaba.fastffi.FFIPointerImpl) CallLoc).address, ((com.alibaba.fastffi.FFIPointerImpl) FD).address, ((com.alibaba.fastffi.FFIPointerImpl) Param).address);
  }

  public static native boolean native_InstantiateDefaultArgument(long ptr, long CallLoc0, long FD1,
      long Param2);

  public boolean InstantiateEnum(@CXXValue SourceLocation PointOfInstantiation,
      EnumDecl Instantiation, EnumDecl Pattern,
      @CXXReference MultiLevelTemplateArgumentList TemplateArgs,
      @CXXValue TemplateSpecializationKind TSK) {
    return native_InstantiateEnum(address, ((com.alibaba.fastffi.FFIPointerImpl) PointOfInstantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Instantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Pattern).address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address, TSK.getValue());
  }

  public static native boolean native_InstantiateEnum(long ptr, long PointOfInstantiation0,
      long Instantiation1, long Pattern2, long TemplateArgs3, int TSK4);

  public void InstantiateExceptionSpec(@CXXValue SourceLocation PointOfInstantiation,
      FunctionDecl Function) {
    native_InstantiateExceptionSpec(address, ((com.alibaba.fastffi.FFIPointerImpl) PointOfInstantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Function).address);
  }

  public static native void native_InstantiateExceptionSpec(long ptr, long PointOfInstantiation0,
      long Function1);

  public boolean InstantiateInClassInitializer(@CXXValue SourceLocation PointOfInstantiation,
      FieldDecl Instantiation, FieldDecl Pattern,
      @CXXReference MultiLevelTemplateArgumentList TemplateArgs) {
    return native_InstantiateInClassInitializer(address, ((com.alibaba.fastffi.FFIPointerImpl) PointOfInstantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Instantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Pattern).address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address);
  }

  public static native boolean native_InstantiateInClassInitializer(long ptr,
      long PointOfInstantiation0, long Instantiation1, long Pattern2, long TemplateArgs3);

  public void PerformPendingInstantiations(boolean LocalOnly) {
    native_PerformPendingInstantiations(address, LocalOnly);
  }

  public static native void native_PerformPendingInstantiations(long ptr, boolean LocalOnly0);

  @CXXValue
  public QualType ReplaceAutoType(@CXXValue QualType TypeWithAuto, @CXXValue QualType Replacement) {
    long ret$ = native_ReplaceAutoType(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a.SIZE), ((com.alibaba.fastffi.FFIPointerImpl) TypeWithAuto).address, ((com.alibaba.fastffi.FFIPointerImpl) Replacement).address); return (new com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a(ret$));
  }

  @CXXValue
  public static native long native_ReplaceAutoType(long ptr, long rv_base, long TypeWithAuto0,
      long Replacement1);

  public boolean RequireCompleteType(@CXXValue SourceLocation Loc, @CXXValue QualType T,
      @CXXReference TypeDiagnoser Diagnoser) {
    return native_RequireCompleteType0(address, ((com.alibaba.fastffi.FFIPointerImpl) Loc).address, ((com.alibaba.fastffi.FFIPointerImpl) T).address, ((com.alibaba.fastffi.FFIPointerImpl) Diagnoser).address);
  }

  public static native boolean native_RequireCompleteType0(long ptr, long Loc0, long T1,
      long Diagnoser2);

  public boolean RequireCompleteType(@CXXValue SourceLocation Loc, @CXXValue QualType T,
      @CXXValue Sema.CompleteTypeKind Kind, @CXXReference TypeDiagnoser Diagnoser) {
    return native_RequireCompleteType1(address, ((com.alibaba.fastffi.FFIPointerImpl) Loc).address, ((com.alibaba.fastffi.FFIPointerImpl) T).address, Kind.getValue(), ((com.alibaba.fastffi.FFIPointerImpl) Diagnoser).address);
  }

  public static native boolean native_RequireCompleteType1(long ptr, long Loc0, long T1, int Kind2,
      long Diagnoser3);

  public boolean RequireCompleteType(@CXXValue SourceLocation Loc, @CXXValue QualType T,
      @CXXValue Sema.CompleteTypeKind Kind, int DiagID) {
    return native_RequireCompleteType2(address, ((com.alibaba.fastffi.FFIPointerImpl) Loc).address, ((com.alibaba.fastffi.FFIPointerImpl) T).address, Kind.getValue(), DiagID);
  }

  public static native boolean native_RequireCompleteType2(long ptr, long Loc0, long T1, int Kind2,
      int DiagID3);

  public boolean RequireCompleteType(@CXXValue SourceLocation Loc, @CXXValue QualType T,
      @CXXValue int DiagID) {
    return native_RequireCompleteType3(address, ((com.alibaba.fastffi.FFIPointerImpl) Loc).address, ((com.alibaba.fastffi.FFIPointerImpl) T).address, DiagID);
  }

  public static native boolean native_RequireCompleteType3(long ptr, long Loc0, long T1,
      int DiagID2);

  @CXXValue
  public QualType SubstAutoType(@CXXValue QualType TypeWithAuto, @CXXValue QualType Replacement) {
    long ret$ = native_SubstAutoType(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a.SIZE), ((com.alibaba.fastffi.FFIPointerImpl) TypeWithAuto).address, ((com.alibaba.fastffi.FFIPointerImpl) Replacement).address); return (new com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a(ret$));
  }

  @CXXValue
  public static native long native_SubstAutoType(long ptr, long rv_base, long TypeWithAuto0,
      long Replacement1);

  public boolean SubstBaseSpecifiers(CXXRecordDecl Instantiation, CXXRecordDecl Pattern,
      @CXXReference MultiLevelTemplateArgumentList TemplateArgs) {
    return native_SubstBaseSpecifiers(address, ((com.alibaba.fastffi.FFIPointerImpl) Instantiation).address, ((com.alibaba.fastffi.FFIPointerImpl) Pattern).address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address);
  }

  public static native boolean native_SubstBaseSpecifiers(long ptr, long Instantiation0,
      long Pattern1, long TemplateArgs2);

  public Decl SubstDecl(Decl D, DeclContext Owner,
      @CXXReference MultiLevelTemplateArgumentList TemplateArgs) {
    long ret$ = native_SubstDecl(address, ((com.alibaba.fastffi.FFIPointerImpl) D).address, ((com.alibaba.fastffi.FFIPointerImpl) Owner).address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address); return com.alibaba.fastffi.clang.DeclTypeRefiner.refine(ret$ == 0L ? null : new com.alibaba.fastffi.clang.Decl_cxx_0x2308e01b(ret$));
  }

  public static native long native_SubstDecl(long ptr, long D0, long Owner1, long TemplateArgs2);

  public FunctionDecl SubstSpaceshipAsEqualEqual(CXXRecordDecl RD, FunctionDecl Spaceship) {
    long ret$ = native_SubstSpaceshipAsEqualEqual(address, ((com.alibaba.fastffi.FFIPointerImpl) RD).address, ((com.alibaba.fastffi.FFIPointerImpl) Spaceship).address); return (ret$ == 0L ? null : new com.alibaba.fastffi.clang.FunctionDecl_cxx_0x4dde1b13(ret$));
  }

  public static native long native_SubstSpaceshipAsEqualEqual(long ptr, long RD0, long Spaceship1);

  @CXXValue
  public QualType SubstType(@CXXValue QualType T,
      @CXXReference MultiLevelTemplateArgumentList TemplateArgs, @CXXValue SourceLocation Loc,
      @CXXValue DeclarationName Entity) {
    long ret$ = native_SubstType(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a.SIZE), ((com.alibaba.fastffi.FFIPointerImpl) T).address, ((com.alibaba.fastffi.FFIPointerImpl) TemplateArgs).address, ((com.alibaba.fastffi.FFIPointerImpl) Loc).address, ((com.alibaba.fastffi.FFIPointerImpl) Entity).address); return (new com.alibaba.fastffi.clang.QualType_cxx_0x46a6a81a(ret$));
  }

  @CXXValue
  public static native long native_SubstType(long ptr, long rv_base, long T0, long TemplateArgs1,
      long Loc2, long Entity3);

  public void addImplicitTypedef(@CXXValue StringRef Name, @CXXValue QualType T) {
    nativeAddImplicitTypedef(address, ((com.alibaba.fastffi.FFIPointerImpl) Name).address, ((com.alibaba.fastffi.FFIPointerImpl) T).address);
  }

  public static native void nativeAddImplicitTypedef(long ptr, long Name0, long T1);

  @CXXOperator("delete")
  public void delete() {
    nativeDelete(address);
  }

  @CXXOperator("delete")
  public static native void nativeDelete(long ptr);

  @CXXReference
  public ASTContext getASTContext() {
    long ret$ = nativeGetASTContext(address); return (new com.alibaba.fastffi.clang.ASTContext_cxx_0xb01a2b7e(ret$));
  }

  @CXXReference
  public static native long nativeGetASTContext(long ptr);

  public boolean inTemplateInstantiation() {
    return nativeInTemplateInstantiation(address);
  }

  public static native boolean nativeInTemplateInstantiation(long ptr);

  public boolean isCompleteType(@CXXValue SourceLocation Loc, @CXXValue QualType T,
      @CXXValue Sema.CompleteTypeKind Kind) {
    return nativeIsCompleteType(address, ((com.alibaba.fastffi.FFIPointerImpl) Loc).address, ((com.alibaba.fastffi.FFIPointerImpl) T).address, Kind.getValue());
  }

  public static native boolean nativeIsCompleteType(long ptr, long Loc0, long T1, int Kind2);

  public boolean isConstantEvaluated() {
    return nativeIsConstantEvaluated(address);
  }

  public static native boolean nativeIsConstantEvaluated(long ptr);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy