class
Cruml::Entities::ClassInfo
- Cruml::Entities::ClassInfo
- Reference
- Object
Overview
This consists of obtaining information about the class.
Defined in:
entities/class_info.crConstructors
Instance Method Summary
-
#add_class_var(name : String, type : String) : Nil
Adds the name and the type of a class variable into the class vars array.
-
#add_included_module(module_name : String) : Nil
Adds a module name to the list of included modules.
-
#add_instance_var(name : String, type : String) : Nil
Adds the name and the type of a instance variable into the instance vars array.
-
#add_method(method : Cruml::Entities::MethodInfo) : Nil
Adds a method into an array of methods.
-
#add_parent_class(parent_class_name : String) : Nil
Adds a parent class into an array of parent classes.
-
#class_vars : Array({String, String})
All class variables in a class.
-
#included_modules : Array(String)
Included modules in a class.
-
#instance_vars : Array({String, String})
All instance variables in a class.
-
#methods : Array(Cruml::Entities::MethodInfo)
All methods in a class.
-
#name : String
Class name
-
#parent_classes : Array({String, String, Symbol})
Linked parent classes.
-
#type : Symbol
Class type
Constructor Detail
Instance Method Detail
Adds the name and the type of a class variable into the class vars array.
Adds a module name to the list of included modules.
Adds the name and the type of a instance variable into the instance vars array.
Adds a method into an array of methods.
Adds a parent class into an array of parent classes.