Package Cheetah :: Module Compiler :: Class ClassCompiler
[show private | hide private]
[frames | no frames]

Class ClassCompiler

GenUtils --+
           |
          ClassCompiler

Known Subclasses:
AutoClassCompiler

Method Summary
  __init__(self, className, mainMethodName, moduleCompiler, fileName, settingsManager)
  __getattr__(self, name)
Provide access to the methods and attributes of the MethodCompiler at the top of the activeMethods stack: one-way namespace sharing
  __str__(self)
  addAttribute(self, attribExpr)
  addChunkToInit(self, chunk)
  addClassDocString(self, line)
  addDecorator(self, decoratorExpr)
Set the decorator to be used with the next method in the source.
  addErrorCatcherCall(self, codeChunk, rawCode, lineCol)
  attributes(self)
  classDef(self)
  classDocstring(self)
  className(self)
  classSignature(self)
  cleanupState(self)
  closeBlock(self)
  closeDef(self)
  methodDefs(self)
  setBaseClass(self, baseClassName)
  setClassName(self, name)
  setMainMethodName(self, methodName)
  setting(self, key)
  startMethodDef(self, methodName, argsList, parserComment)
  wrapClassDef(self)
    Inherited from GenUtils
  addGetTextVar(self, nameChunks)
Output something that gettext can recognize.
  genCacheInfo(self, cacheTokenParts)
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)

Class Variable Summary
classobj methodCompilerClass = Cheetah.Compiler.AutoMethodCompiler
classobj methodCompilerClassForInit = Cheetah.Compiler.MethodCompiler

Method Details

__getattr__(self, name)
(Qualification operator)

Provide access to the methods and attributes of the MethodCompiler at the top of the activeMethods stack: one-way namespace sharing

WARNING: Use .setMethods to assign the attributes of the MethodCompiler from the methods of this class!!! or you will be assigning to attributes of this object instead.

addDecorator(self, decoratorExpr)

Set the decorator to be used with the next method in the source.

See _spawnMethodCompiler() and MethodCompiler for the details of how this is used.


Generated by Epydoc 2.1 on Sat Mar 4 13:36:27 2006 http://epydoc.sf.net