1 //===-- SWIG Interface for SBDeclaration --------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 10 namespace lldb { 11 12 %feature("docstring", 13 "Specifies an association with a line and column for a variable." 14 ) SBDeclaration; 15 class SBDeclaration 16 { 17 public: 18 19 SBDeclaration (); 20 21 SBDeclaration (const lldb::SBDeclaration &rhs); 22 23 ~SBDeclaration (); 24 25 bool 26 IsValid () const; 27 28 lldb::SBFileSpec 29 GetFileSpec () const; 30 31 uint32_t 32 GetLine () const; 33 34 uint32_t 35 GetColumn () const; 36 37 bool 38 GetDescription (lldb::SBStream &description); 39 40 void 41 SetFileSpec (lldb::SBFileSpec filespec); 42 43 void 44 SetLine (uint32_t line); 45 46 void 47 SetColumn (uint32_t column); 48 49 bool 50 operator == (const lldb::SBDeclaration &rhs) const; 51 52 bool 53 operator != (const lldb::SBDeclaration &rhs) const; 54 55 %pythoncode %{ 56 __swig_getmethods__["file"] = GetFileSpec 57 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''') 58 59 __swig_getmethods__["line"] = GetLine 60 if _newclass: ling = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''') 61 62 __swig_getmethods__["column"] = GetColumn 63 if _newclass: column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''') 64 %} 65 66 }; 67 68 } // namespace lldb 69