Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
pymake.data.StringExpansion Class Reference

List of all members.

Public Member Functions

def __init__
def lstrip
def rstrip
def isempty
def resolve
def resolvestr
def resolvesplit
def clone
def __len__
def __getitem__
def __str__

Public Attributes

 s
 loc

Static Public Attributes

 simple = True

Static Private Attributes

tuple __slots__ = ('loc', 's',)

Detailed Description

Definition at line 65 of file data.py.


Constructor & Destructor Documentation

def pymake.data.StringExpansion.__init__ (   self,
  s,
  loc 
)

Definition at line 69 of file data.py.

00069 
00070     def __init__(self, s, loc):
00071         assert isinstance(s, str)
00072         self.s = s
00073         self.loc = loc


Member Function Documentation

def pymake.data.StringExpansion.__getitem__ (   self,
  i 
)

Definition at line 100 of file data.py.

00100 
00101     def __getitem__(self, i):
00102         assert i == 0
00103         return self.s, False

Definition at line 97 of file data.py.

00097 
00098     def __len__(self):
00099         return 1

Definition at line 104 of file data.py.

00104 
00105     def __str__(self):
00106         return "Exp<%s>(%r)" % (self.loc, self.s)

Definition at line 92 of file data.py.

00092 
00093     def clone(self):
00094         e = Expansion(self.loc)
00095         e.appendstr(self.s)
00096         return e

Definition at line 80 of file data.py.

00080 
00081     def isempty(self):
00082         return self.s == ''

Definition at line 74 of file data.py.

00074 
00075     def lstrip(self):
00076         self.s = self.s.lstrip()

def pymake.data.StringExpansion.resolve (   self,
  i,
  j,
  fd,
  k = None 
)

Definition at line 83 of file data.py.

00083 
00084     def resolve(self, i, j, fd, k=None):
00085         fd.write(self.s)

Here is the caller graph for this function:

def pymake.data.StringExpansion.resolvesplit (   self,
  i,
  j,
  k = None 
)

Definition at line 89 of file data.py.

00089 
00090     def resolvesplit(self, i, j, k=None):
00091         return self.s.split()

def pymake.data.StringExpansion.resolvestr (   self,
  i,
  j,
  k = None 
)

Definition at line 86 of file data.py.

00086 
00087     def resolvestr(self, i, j, k=None):
00088         return self.s

Here is the caller graph for this function:

Definition at line 77 of file data.py.

00077 
00078     def rstrip(self):
00079         self.s = self.s.rstrip()


Member Data Documentation

tuple pymake.data.StringExpansion.__slots__ = ('loc', 's',) [static, private]

Definition at line 66 of file data.py.

Definition at line 72 of file data.py.

Definition at line 71 of file data.py.

Definition at line 67 of file data.py.


The documentation for this class was generated from the following file: