< prev index next >

test/jdk/com/sun/tools/jextract/jclang-ffi/src/jdk/internal/clang/Type.java

Print this page




  84     public String spelling() {
  85         return LibClang.CXStrToString(LibClang.lib.clang_getTypeSpelling(type));
  86     }
  87 
  88     public int kind1() {
  89         return type.kind$get();
  90     }
  91 
  92     public long size() {
  93         return LibClang.lib.clang_Type_getSizeOf(type);
  94     }
  95 
  96     public TypeKind kind() {
  97         int v = kind1();
  98         return TypeKind.valueOf(v);
  99     }
 100 
 101     public Cursor getDeclarationCursor() {
 102         return new Cursor(LibClang.lib.clang_getTypeDeclaration(type));
 103     }
















 104 }


  84     public String spelling() {
  85         return LibClang.CXStrToString(LibClang.lib.clang_getTypeSpelling(type));
  86     }
  87 
  88     public int kind1() {
  89         return type.kind$get();
  90     }
  91 
  92     public long size() {
  93         return LibClang.lib.clang_Type_getSizeOf(type);
  94     }
  95 
  96     public TypeKind kind() {
  97         int v = kind1();
  98         return TypeKind.valueOf(v);
  99     }
 100 
 101     public Cursor getDeclarationCursor() {
 102         return new Cursor(LibClang.lib.clang_getTypeDeclaration(type));
 103     }
 104 
 105     @Override
 106     public boolean equals(Object other) {
 107         if (this == other) {
 108             return true;
 109         }
 110         if (!(other instanceof Type)) {
 111             return false;
 112         }
 113         return LibClang.lib.clang_equalTypes(type, ((Type)other).type) != 0;
 114     }
 115 
 116     @Override
 117     public int hashCode() {
 118         return spelling().hashCode();
 119     }
 120 }
< prev index next >