# Method of an `ObjcClass`
class ObjcMethod
- super Property
+ super ObjcProperty
# Scope: '+' for a static class method, and '-' for an instance method
var scope: Char is noinit, writable
# Parameters of the method
- var params = new Array[Param]
+ var params = new Array[ObjcParam]
# Return type as a `String`
var return_type: String is noinit, writable
# Attribute of an `ObjcClass`
class ObjcAttribute
- super Property
+ super ObjcProperty
# Name of this attribute
var name: String is noinit, writable
end
# Property of an `ObjcClass`
-class Property
+class ObjcProperty
# Is this property to be commented out?
var is_commented = false is writable
end
# Parameter of an `ObjcMethod`
-class Param
+class ObjcParam
# Parameter name, used by the caller (e.g. `withObject` in `withObject: (NSObject*) obj`)
var name: String is noinit, writable
method.is_commented = true
# Use a placeholder for easier debugging
- param = new Param
+ param = new ObjcParam
param.name = "UNKNOWN"
param.return_type = "UNKNOWN"
param.variable_name = "UNKNOWN"
redef class Nparameter
# Return null if type is not yet unsupported
- private fun to_param: nullable Param do return null
+ private fun to_param: nullable ObjcParam do return null
end
# Parameters with both a public and an internal name
redef class Nparameter_named
redef fun to_param
do
- var param = new Param
+ var param = new ObjcParam
param.variable_name = n_right.collect_text
param.name = n_left.collect_text
redef class Nparameter_single
redef fun to_param
do
- var param = new Param
+ var param = new ObjcParam
param.name = n_term.collect_text
param.is_single = true
return param