-
String representation of member
MethodsDeclaration
Swift
public override var kind: String { get } -
Original C function name
Declaration
Swift
public let cname: String -
Return type
Declaration
Swift
public let returns: Argument -
All associated arguments (parameters) in order
Declaration
Swift
public let args: [Argument] -
trueif this method throws an errorDeclaration
Swift
public let throwsError: Bool -
Designated initialiser
Declaration
Parameters
nameThe name of the method
cnameC function name
argsArray of parameters
commentDocumentation text for the method
introspectableSet to
trueif introspectabledeprecatedDocumentation on deprecation status if non-
nilthrowsAnErrorSet to
trueif this method can throw an errorReturn Value
return type
-
Initialiser to construct a method type from XML
Declaration
Swift
public override init(node: XMLElement, atIndex i: Int)Parameters
nodeXMLElementto construct this constant fromiIndex within the siblings of the
node -
indicate whether this is an unref method
Declaration
Swift
public var isUnref: Bool { get } -
indicate whether this is a ref method
Declaration
Swift
public var isRef: Bool { get } -
indicate whether this is a getter method
Declaration
Swift
public var isGetter: Bool { get } -
indicate whether this is a setter method
Declaration
Swift
public var isSetter: Bool { get } -
indicate whether this is a setter method for the given getter
Declaration
Swift
public func isSetterFor(getter: String) -> Bool -
indicate whether this is a getter method for the given setter
Declaration
Swift
public func isGetterFor(setter: String) -> Bool
-
Undocumented
Declaration
Swift
var isDesignatedConstructor: Bool { get } -
is this a bare factory method that is not the default constructor
Declaration
Swift
var isBareFactory: Bool { get } -
return whether the method is a constructor of the given record
-
return whether the method is a factory of the given record
View on GitHub
Install in Dash
Method Class Reference