Argument
public class Argument : CType
data type representing a function/method argument or return type
-
Declaration
Swift
public override var kind: String { get }
-
Undocumented
Declaration
Swift
public let instance: Bool
-
< is this an instance parameter?
Declaration
Swift
public let _varargs: Bool
-
< is this a varargs (…) parameter? indicate whether the given parameter is varargs
Declaration
Swift
public var varargs: Bool { get }
-
default constructor
Declaration
Swift
public init(name: String, type: String, ctype: String, instance: Bool, comment: String, introspectable: Bool = false, deprecated: String? = nil, varargs: Bool = false)
-
XML constructor
Declaration
Swift
public init(node: XMLElement, atIndex i: Int)
-
XML constructor for functions/methods/callbacks
Declaration
Swift
public init(node: XMLElement, atIndex i: Int, varargs: Bool)
-
/ return the known type of the argument (nil if not known)
-
/ return the known class/record of the argument (nil if not known)
-
indicates whether the receiver is a known type
Declaration
Swift
var isKnownType: Bool { get }
-
indicates whether the receiver is a known class or record
Declaration
Swift
var isKnownRecord: Bool { get }
-
indicates whether the receiver is any known kind of pointer
Declaration
Swift
var isAnyKindOfPointer: Bool { get }
-
indicates whether the receiver is an array of scalar values
Declaration
Swift
var isScalarArray: Bool { get }
-
return a non-clashing argument name
Declaration
Swift
var nonClashingName: String { get }
-
return the non-prefixed argument name
Declaration
Swift
var argumentName: String { get }
-
return the, potentially prefixed argument name to use in a method declaration
Declaration
Swift
var prefixedArgumentName: String { get }
-
return the swift (known) type of the receiver
Declaration
Swift
var argumentType: String { get }
-
return whether the receiver is an instance of the given record (class)
-
return whether the receiver is an instance of the given record (class) or any of its ancestors