Package lemon :: Package external :: Package Cheetah :: Module Compiler :: Class MethodCompiler
[show private | hide private]
[frames | no frames]

Class MethodCompiler

              GenUtils --+
                         |
_SettingsCollector --+   |
                     |   |
       SettingsManager --+
                         |
                        MethodCompiler

Known Subclasses:
AutoMethodCompiler

Method Summary
  __init__(self, methodName, classCompiler, settings)
  __str__(self)
  addChunk(self, chunk)
  addElse(self, expr)
  addExcept(self, expr)
  addFilteredChunk(self, chunk, rawExpr)
  addFinally(self, expr)
  addFor(self, expr)
  addIf(self, expr)
  addIndentingDirective(self, expr)
  addLocalVars(self, varnameList)
  addMethComment(self, comm)
  addMethDocString(self, line)
  addPSP(self, PSP)
  addRawChunk(self, chunk)
  addReIndentingDirective(self, expr)
  addReturn(self, expr)
  addSet(self, LVALUE, OP, RVALUE, isGlobal)
  addSilent(self, expr)
  addStrConst(self, strConst)
  addTry(self, expr)
  addWhile(self, expr)
  addWriteChunk(self, chunk)
  appendToPrevChunk(self, appendage)
  appendToPrevStrConst(self, strConst)
  cacheID(self)
  cleanupState(self)
  commitStrConst(self)
  dedent(self)
  delLeadingWS(self)
  docString(self)
  endCacheRegion(self)
  indent(self)
  indentation(self)
  localVars(self)
  methodBody(self)
  methodDef(self)
  methodName(self)
  methodSignature(self)
  nextCacheID(self)
  setMethodName(self, name)
  setMethodSignature(self, signature)
  setupState(self)
  startCacheRegion(self, cacheInfo, lineCol)
  wrapCode(self)
    Inherited from SettingsManager
  copySettings(self)
Returns a shallow copy of the settings dictionary...
  deepcopySettings(self)
Returns a deep copy of the settings dictionary...
  getConfigString(self)
Return a string with the settings in .ini file format.
  hasSetting(self, key)
True/False...
  setSetting(self, name, value)
Set a setting in self._settings.
  setting(self, name, default)
Get a setting from self._settings, with or without a default value.
  settings(self)
Return a reference to the settings dictionary...
  updateSettings(self, newSettings, merge)
Update the settings with a selective merge or a complete overwrite.
  updateSettingsFromConfigFile(self, path, **kw)
Update the settings from a text file using the syntax accepted by Python's standard ConfigParser module (like Windows .ini files).
  updateSettingsFromConfigFileObj(self, inFile, convert, merge)
See the docstring for .updateSettingsFromConfigFile() The caller of this method is responsible for closing the inFile file object.
  updateSettingsFromConfigStr(self, configStr, convert, merge)
See the docstring for .updateSettingsFromConfigFile()...
  updateSettingsFromPySrcFile(self, path, merge)
Update the settings from variables in a Python source file.
  updateSettingsFromPySrcStr(self, theString, merge)
Update the settings from a code in a Python src string.
  writeConfigFile(self, path)
Write all the settings that can be represented as strings to an .ini style config file.
    Inherited from GenUtils
  genCacheInfo(self, cacheToken)
Decipher a placeholder cachetoken...
  genCacheInfoFromArgList(self, argList)
  genCheetahVar(self, nameChunks, plain)
  genNameMapperVar(self, nameChunks)
Generate valid Python code for a Cheetah $var, using NameMapper (Unified Dotted Notation with the SearchList).
  genPlainVar(self, nameChunks)
Generate Python code for a Cheetah $var without using NameMapper (Unified Dotted Notation with the SearchList).
  genTimeInterval(self, timeString)
  unescapeCheetahVars(self, theString)
Unescape any escaped Cheetah \$vars in the string.
  unescapeDirectives(self, theString)
Unescape any escaped Cheetah \$vars in the string.

Generated by Epydoc 2.0 on Mon Nov 10 15:07:54 2003 http://epydoc.sf.net