Class: Mirah::JVM::Types::InterfaceDefinition
- Inherits:
-
TypeDefinition
- Object
- Type
- TypeDefinition
- Mirah::JVM::Types::InterfaceDefinition
- Defined in:
- lib/mirah/jvm/types/interface_definition.rb
Constant Summary
Constants included from Logging::Logged
Instance Attribute Summary
Attributes inherited from TypeDefinition
Attributes inherited from Type
#inner_class, #name, #type_system
Instance Method Summary collapse
- #define(builder) ⇒ Object
-
#initialize(types, scope, name, node) ⇒ InterfaceDefinition
constructor
A new instance of InterfaceDefinition.
- #interface? ⇒ Boolean
Methods inherited from TypeDefinition
#abstract?, #constructor, #constructors, #declare_field, #declare_method, #declare_static_method, #declared_class_methods, #declared_fields, #declared_instance_methods, #field_getter, #field_setter, #getDeclaredField, #getDeclaredFields, #hasStaticField, #instance_methods, #interfaces, #java_method, #java_static_method, #meta, #name, #static_methods, #superclass
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, #assignable_from?, #astore, #basic_type, #class_id, #compatible?, #component_type, #constructor, #declared_class_methods, #declared_constructors, #declared_instance_methods, #declared_intrinsics, #declared_macros, #dynamic?, #error?, #expand_each, #field_getter, #field_setter, #find_callable_macros, #find_callable_macros2, #find_callable_methods, #find_callable_methods2, #find_callable_static_methods, #flags, #full_name, #generic, #generic?, #getAsmType, #getDeclaredField, #getDeclaredFields, #get_method, #hasStaticField, #include, #init_value, #inner_class?, #inner_class_getter, #inspect, #interfaces, #internal_name, #intrinsics, #isAnnotation, #isArray, #isBlock, #isEnum, #isError, #isGeneric, #isMeta, #isPrimitive, #is_parent, #iterable?, #java_method, #jvm_type, #load, #load_extensions, #macro, #macros, #matchesAnything, #meta, #meta?, #method_listeners, #method_updated, #newarray, #pop, #prefix, #primitive?, #read_macrodef_annotation, #retention, #return, #store, #superclass, #to_s, #type_parameters, #ungeneric, #unmeta, #void?, #wide?, #widen
Methods included from Logging::Logged
#error, #info, #log, #logger, #logger_name, #logging?, #vlog, #warning
Methods included from MethodLookup
#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
#initialize(types, scope, name, node) ⇒ InterfaceDefinition
Returns a new instance of InterfaceDefinition.
5 6 7 |
# File 'lib/mirah/jvm/types/interface_definition.rb', line 5 def initialize(types, scope, name, node) super(types, scope, name, node) end |
Instance Method Details
#define(builder) ⇒ Object
9 10 11 12 |
# File 'lib/mirah/jvm/types/interface_definition.rb', line 9 def define(builder) class_name = @name.tr('.', '/') @type ||= builder.public_interface(class_name, *interfaces) end |
#interface? ⇒ Boolean
14 15 16 |
# File 'lib/mirah/jvm/types/interface_definition.rb', line 14 def interface? true end |