# Copyright (c) 2023 Yuki Kimoto
# MIT License

class Native::ClassVar : pointer {
  version_from SPVM;

  allow Native::BasicType;
  
  use Native::BasicType;
  use Fn;
  
  # Fields
  has runtime : Native::Runtime;
  
  # Class Methods
  private static method new_with_pointer : Native::ClassVar ($pointer : Address, $options : object[] = undef) {
    
    my $self = new Native::ClassVar;
    
    Fn->set_pointer($self, $pointer);
    
    return $self;
  }
  
  # Instance Methods
  native method get_index : int ();
  
  native method get_name : string ();
  
  native method get_basic_type : Native::BasicType ();
  
  native method get_type_dimension : int ();
  
  native method get_type_flag : int ();
  
  native method get_current_basic_type : Native::BasicType ();
  
  native method is_cache : int ();
  
}
