Class: Duby::JVM::Types::MetaType

Inherits:
Type show all
Defined in:
lib/duby/jvm/types.rb

Direct Known Subclasses

TypeDefMeta

Constant Summary

Constants inherited from AST::TypeReference

AST::TypeReference::BlockType, AST::TypeReference::ErrorType, AST::TypeReference::NoType, AST::TypeReference::NullType, AST::TypeReference::UnreachableType

Instance Attribute Summary collapse

Attributes inherited from Type

#inner_class

Attributes inherited from AST::TypeReference

#array

Attributes included from AST::Named

#name

Attributes inherited from AST::Node

#children, #inferred_type, #newline, #parent, #position

Instance Method Summary collapse

Methods inherited from Type

#add_enumerable_macros, #add_intrinsics, #add_macro, #add_method, #aload, #array?, #array_type, #assignable_from?, #astore, #compatible?, #component_type, #constructor, #declared_class_methods, #declared_constructors, #declared_instance_methods, #declared_intrinsics, #dynamic?, #expand_each, #field_getter, #field_setter, #get_method, #init_value, #inner_class_getter, #inspect, #interface?, #intrinsics, #is_parent, #iterable?, #java_method, #load, #log, #newarray, #prefix, #primitive?, #return, #store, #to_source, #void?, #wide?

Methods included from MethodLookup

#each_is_exact, #each_is_exact_or_subtype_or_convertible, #field_lookup, #find_jls, #find_method, #inner_class, #is_more_specific?, #log, #phase1, #phase2, #phase3, #primitive_convertible?

Methods inherited from AST::TypeReference

#==, #block?, #compatible?, #component_type, #eql?, #error?, #hash, #is_parent, #iterable?, #narrow, #null?, #primitive?, #to_s, #unreachable?

Methods included from AST::Named

#to_s

Methods inherited from AST::Node

#<<, ===, #[], #_set_parent, child, child_name, #each, #empty?, #expr?, #initialize_copy, #insert, #inspect, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #temp, #to_s

Constructor Details

#initialize(unmeta) ⇒ MetaType

Returns a new instance of MetaType.



192
193
194
195
# File 'lib/duby/jvm/types.rb', line 192

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

Instance Attribute Details

#unmetaObject (readonly)

Returns the value of attribute unmeta.



190
191
192
# File 'lib/duby/jvm/types.rb', line 190

def unmeta
  @unmeta
end

Instance Method Details

#basic_typeObject



197
198
199
# File 'lib/duby/jvm/types.rb', line 197

def basic_type
  @unmeta.basic_type
end

#inner_class?Boolean

Returns:



221
222
223
# File 'lib/duby/jvm/types.rb', line 221

def inner_class?
  basic_type.inner_class?
end

#interfacesObject



213
214
215
# File 'lib/duby/jvm/types.rb', line 213

def interfaces
  []
end

#jvm_typeObject



217
218
219
# File 'lib/duby/jvm/types.rb', line 217

def jvm_type
  unmeta.jvm_type
end

#metaObject



205
206
207
# File 'lib/duby/jvm/types.rb', line 205

def meta
  self
end

#meta?Boolean

Returns:



201
202
203
# File 'lib/duby/jvm/types.rb', line 201

def meta?
  true
end

#superclassObject



209
210
211
# File 'lib/duby/jvm/types.rb', line 209

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