Class: Mirah::JVM::Types::DynamicType
- Inherits:
-
Type
- Object
- Type
- Mirah::JVM::Types::DynamicType
show all
- Defined in:
- lib/mirah/jvm/types/dynamic_type.rb
Constant Summary
Logging::Logged::VLEVELS
Instance Attribute Summary
Attributes inherited from Type
#inner_class, #name, #type_system
Instance Method Summary
collapse
Methods inherited from Type
#abstract?, #add_compiled_macro, #add_enumerable_macros, #add_intrinsics, #add_method, #add_method_listener, #aload, #ancestors_and_interfaces, #array?, #array_type, #assignableFrom, #astore, #compatible?, #component_type, #constructor, #declared_class_methods, #declared_constructors, #declared_instance_methods, #declared_intrinsics, #declared_macros, #error?, #expand_each, #field_getter, #field_setter, #find_callable_macros, #find_callable_macros2, #find_callable_methods, #find_callable_methods2, #generic, #generic?, #get_method, #include, #init_value, #inner_class?, #inner_class_getter, #inspect, #interface?, #intrinsics, #isArray, #isBlock, #isError, #isGeneric, #isMeta, #iterable?, #java_method, #load, #load_extensions, #macro, #macros, #matchesAnything, #meta, #meta?, #method_listeners, #method_updated, #newarray, #pop, #prefix, #primitive?, #read_macrodef_annotation, #return, #store, #to_s, #type_parameters, #ungeneric, #unmeta, #void?, #wide?, #widen
#error, #info, #log, #logger, #logger_name, #logging?, #vlog, #warning
#each_is_exact, #each_is_exact_or_subtype_or_convertible, #field_lookup, #find_jls, #find_jls2, #find_method, #find_method2, #inner_class, #is_more_specific?, #phase1, #phase2, #phase3, #primitive_convertible?
Constructor Details
Returns a new instance of DynamicType.
5
6
7
8
9
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 5
def initialize(types)
super(types, "java.lang.Object")
@object_type ||= types.type(nil, 'java.lang.Object')
end
|
Instance Method Details
#assignable_from?(other) ⇒ Boolean
19
20
21
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 19
def assignable_from?(other)
@object_type.assignable_from?(other)
end
|
#basic_type ⇒ Object
11
12
13
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 11
def basic_type
self
end
|
#dynamic? ⇒ Boolean
31
32
33
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 31
def dynamic?
true
end
|
#full_name ⇒ Object
27
28
29
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 27
def full_name
"dynamic"
end
|
#interfaces(include_parent = true) ⇒ Object
39
40
41
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 39
def interfaces(include_parent=true)
@object_type.interfaces
end
|
#is_parent(other) ⇒ Object
15
16
17
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 15
def is_parent(other)
@object_type.assignable_from?(other)
end
|
#jvm_type ⇒ Object
23
24
25
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 23
def jvm_type
java.lang.Object
end
|
#superclass ⇒ Object
35
36
37
|
# File 'lib/mirah/jvm/types/dynamic_type.rb', line 35
def superclass
@object_type
end
|