Sha256: e33f93821ad5bb03a959206edd0b3b097a2b9a5fb22b14449073cf21fac6a815

Contents?: true

Size: 702 Bytes

Versions: 5

Compression:

Stored size: 702 Bytes

Contents

module Mirah
  module JVM
    module Types
      class MetaType < Type
        attr_reader :unmeta

        def initialize(unmeta)
          @name = unmeta.name
          @unmeta = unmeta
        end

        def basic_type
          @unmeta.basic_type
        end

        def meta?
          true
        end

        def meta
          self
        end

        def superclass
          @unmeta.superclass.meta if @unmeta.superclass
        end

        def interfaces
          []
        end

        def jvm_type
          unmeta.jvm_type
        end

        def inner_class?
          basic_type.inner_class?
        end
      end

      class TypeDefMeta < MetaType
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mirah-0.0.12-java lib/mirah/jvm/types/meta_type.rb
mirah-0.0.11-java lib/mirah/jvm/types/meta_type.rb
mirah-0.0.10-java lib/mirah/jvm/types/meta_type.rb
mirah-0.0.9-java lib/mirah/jvm/types/meta_type.rb
mirah-0.0.8-java lib/mirah/jvm/types/meta_type.rb