GIR
public class GIR
Representation of a GIR file
-
The parsed XML document represented by the receiver
Declaration
Swift
public let xml: XMLDocument
-
Preample boilerplate to output before any generated code
Declaration
Swift
public var preamble: String
-
Namespace prefix defined by the receiver
Declaration
Swift
public var prefix: String
-
Collection of identifier prefixes
Declaration
Swift
public var identifierPrefixes: [String]
-
Collection of symbol prefixes
Declaration
Swift
public var symbolPrefixes: [String]
-
Type-erased sequence of namespaces
Declaration
Swift
public var namespaces: AnySequence<XMLNameSpace>
-
Aliases defined by this GIR file
Declaration
Swift
public var aliases: [GIR.Alias]
-
Constants defined by this GIR file
Declaration
Swift
public var constants: [GIR.Constant]
-
Enums defined by this GIR file
Declaration
Swift
public var enumerations: [GIR.Enumeration]
-
Bitfields defined by this GIR file
Declaration
Swift
public var bitfields: [GIR.Bitfield]
-
Interfaces defined by this GIR file
Declaration
Swift
public var interfaces: [GIR.Interface]
-
Records defined by this GIR file
Declaration
Swift
public var records: [GIR.Record]
-
Classes defined by this GIR file
Declaration
Swift
public var classes: [GIR.Class]
-
Free functions defined by this GIR file
Declaration
Swift
public var functions: [GIR.Function]
-
Callbacs defined by this GIR file
Declaration
Swift
public var callbacks: [GIR.Callback]
-
names of black-listed identifiers
Declaration
Swift
public static var Blacklist: Set<String>
-
names of constants to be taken verbatim
Declaration
Swift
public static var VerbatimConstants: Set<String>
-
context of known types
Declaration
Swift
public static var KnownTypes: [String : GIR.Datatype]
-
context of known records
Declaration
Swift
public static var KnownRecords: [String : GIR.Record]
-
context of known functions
Declaration
Swift
public static var KnownFunctions: [String : GIR.Function]
-
Type of
GError
Declaration
Swift
public static var GErrorType: String
-
designated constructor
Declaration
Swift
public init(xmlDocument: XMLDocument, quiet: Bool = false)
-
convenience constructor to read a gir file
Declaration
Swift
public convenience init?(fromFile name: String)
-
convenience constructor to read from memory
Declaration
Swift
public convenience init?(buffer content: UnsafeBufferPointer<CChar>, quiet q: Bool = false)
-
GIR named thing class
See moreDeclaration
Swift
public class Thing : Hashable, Comparable
-
a bitfield is defined akin to an enumeration
See moreDeclaration
Swift
public class Bitfield : Enumeration
-
code boiler plate
Declaration
Swift
var boilerPlate: String { get }
-
return the documentation for the given child nodes
Declaration
Swift
public class func docs(children: LazySequence<AnySequence<XMLElement>>) -> String
-
return the documentation for the given child nodes
Declaration
Swift
public class func deprecatedDocumentation(children: LazySequence<AnySequence<XMLElement>>) -> String?
-
return the documentation for the given child nodes
Declaration
Swift
public class func documentation(name: String, children: LazySequence<AnySequence<XMLElement>>) -> String
-
return the method/function arguments for the given child nodes
Declaration
Swift
public class func args(children: LazySequence<AnySequence<XMLElement>>) -> [Argument]
-
dump Swift code
Declaration
Swift
public func dumpSwift() -> String