Class: Mirah::JVM::Types::UnreachableType
- Inherits:
-
Type
- Object
- AST::Node
- AST::TypeReference
- Type
- Mirah::JVM::Types::UnreachableType
- Defined in:
- lib/mirah/jvm/types/unreachable_type.rb
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
Attributes inherited from Type
Attributes inherited from AST::TypeReference
Attributes included from AST::Named
Attributes inherited from AST::Node
#children, #inferred_type, #newline, #parent, #position
Instance Method Summary collapse
- #assignable_from?(other) ⇒ Boolean
- #compatible?(other) ⇒ Boolean
-
#initialize ⇒ UnreachableType
constructor
A new instance of UnreachableType.
- #to_s ⇒ Object
- #unreachable? ⇒ Boolean
Methods inherited from Type
#abstract?, #add_compiled_macro, #add_enumerable_macros, #add_intrinsics, #add_macro, #add_method, #aload, #array?, #array_type, #astore, #basic_type, #component_type, #constructor, #declared_class_methods, #declared_constructors, #declared_instance_methods, #declared_intrinsics, #dynamic?, #expand_each, #field_getter, #field_setter, #full_name, #get_method, #include, #init_value, #inner_class?, #inner_class_getter, #inspect, #interface?, #interfaces, #intrinsics, #is_parent, #iterable?, #java_method, #jvm_type, #load, #load_extensions, #log, #meta, #meta?, #newarray, #pop, #prefix, #primitive?, #return, #store, #superclass, #to_source, #unmeta, #void?, #wide?, #wrap_with_scoped_body
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
#==, #_dump, _load, #basic_type, #block?, #component_type, #eql?, #error?, #full_name, #hash, #is_parent, #iterable?, #meta?, #narrow, #null?, #primitive?, #type_reference, #unmeta, #void?
Methods included from AST::Named
Methods inherited from AST::Node
#<<, ===, #[], #[]=, #_dump, _load, #_set_parent, child, child_name, #child_nodes, #each, #empty?, #expr?, #inferred_type!, #initialize_copy, #insert, #inspect, #inspect_children, #line_number, #log, #precompile, #resolve_if, #resolved!, #resolved?, #simple_name, #string_value, #temp, #top_level?, #validate_child, #validate_children
Constructor Details
#initialize ⇒ UnreachableType
Returns a new instance of UnreachableType.
5 6 7 |
# File 'lib/mirah/jvm/types/unreachable_type.rb', line 5 def initialize super('java.lang.Object') end |
Instance Method Details
#assignable_from?(other) ⇒ Boolean
21 22 23 |
# File 'lib/mirah/jvm/types/unreachable_type.rb', line 21 def assignable_from?(other) true end |
#compatible?(other) ⇒ Boolean
17 18 19 |
# File 'lib/mirah/jvm/types/unreachable_type.rb', line 17 def compatible?(other) true end |
#to_s ⇒ Object
9 10 11 |
# File 'lib/mirah/jvm/types/unreachable_type.rb', line 9 def to_s "Type(null)" end |
#unreachable? ⇒ Boolean
13 14 15 |
# File 'lib/mirah/jvm/types/unreachable_type.rb', line 13 def unreachable? true end |