    class ParseEventHandler:
        def __init__(self, ctxt, parser):
        def addGenerator(self, gen):
        def handleExpression(self, start, stop, attrs):
        def handleCharData(self, start, stop, chars):
        def handleComment(self, start, stop):
        def handleInclude(self, attrs,param):
        def handleInsert(self, attrs,param):
        def importHandler(self, imports, start, stop):
        def extendsHandler(self,bc,start,stop):
        def mainMethodHandler(self, method, start, stop):
        def threadSafeHandler(self, bool, start, stop):
        def instanceSafeHandler(self, bool, start, stop):
        def indentTypeHandler(self,type,start, stop):
        def indentSpacesHandler(self,amount,start,stop):
        def gobbleWhitespaceHandler(self, value, start, stop):
        def formatterHandler(self, value, start, stop):
        def handleDirective(self, directive, start, stop, attrs):
        def handleScript(self, start, stop, attrs):
        def handleEndBlock(self):
        def handleMethod(self, start, stop, attrs):
        def handleMethodEnd(self, start, stop, attrs):
        def beginProcessing(self):
        def endProcessing(self):
        def setTemplateInfo(self, start, stop):
        def generateHeader(self):
        def generateDeclarations(self):
        def generateInitPSP(self):
        def generateMainMethod(self):
        def generateFooter(self):
        def generateAll(self,phase):
        def optimizeCharData(self):
        def gobbleWhitespace(self):
    def checkForTextHavingOnlyGivenChars(text, ws=string.whitespace):