org.richfaces.cdk.templatecompiler
Class RendererClassVisitor

java.lang.Object
  extended by org.richfaces.cdk.templatecompiler.RendererClassVisitor
All Implemented Interfaces:
TemplateVisitor

public class RendererClassVisitor
extends java.lang.Object
implements TemplateVisitor

Author:
asmirnov@exadel.com

Constructor Summary
RendererClassVisitor(CompositeInterface compositeInterface, java.util.Collection<PropertyBase> attributes, java.lang.ClassLoader classLoader, JAXB jaxbBinding, org.richfaces.cdk.Logger log)
           
 
Method Summary
static void clearCaches()
           
 void endElement(AnyElement anyElement)
           
 void endElement(CdkBodyElement cdkBodyElement)
           
 void endElement(CdkChooseElement cdkChooseElement)
           
 void endElement(CdkForEachElement cdkForEachElement)
           
 void endElement(CdkIfElement cdkIfElement)
           
 void endElement(CdkOtherwiseElement cdkOtherwiseElement)
           
 void endElement(CdkWhenElement cdkWhenElement)
           
 JavaClass getGeneratedClass()
          

protected  void popStatement()
           
 void postProcess(CompositeImplementation impl)
           
 void preProcess(CompositeImplementation impl)
           
protected  void pushStatement(MethodBodyStatementsContainer container)
           
 void startElement(AnyElement anyElement)
           
 void startElement(CdkBodyElement cdkBodyElement)
           
 void startElement(CdkChooseElement cdkChooseElement)
           
 void startElement(CdkForEachElement cdkForEachElement)
           
 void startElement(CdkIfElement cdkIfElement)
           
 void startElement(CdkOtherwiseElement cdkOtherwiseElement)
           
 void startElement(CdkWhenElement cdkWhenElement)
           
 void visitElement(CdkCallElement cdkCallElement)
           
 void visitElement(CdkObjectElement cdkObjectElement)
           
 void visitElement(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RendererClassVisitor

public RendererClassVisitor(CompositeInterface compositeInterface,
                            java.util.Collection<PropertyBase> attributes,
                            java.lang.ClassLoader classLoader,
                            JAXB jaxbBinding,
                            org.richfaces.cdk.Logger log)
Method Detail

pushStatement

protected void pushStatement(MethodBodyStatementsContainer container)

popStatement

protected void popStatement()

getGeneratedClass

public JavaClass getGeneratedClass()

Returns:
the rendererClass

startElement

public void startElement(CdkBodyElement cdkBodyElement)
                  throws CdkException
Specified by:
startElement in interface TemplateVisitor
Throws:
CdkException

endElement

public void endElement(CdkBodyElement cdkBodyElement)
                throws CdkException
Specified by:
endElement in interface TemplateVisitor
Throws:
CdkException

startElement

public void startElement(AnyElement anyElement)
                  throws CdkException
Specified by:
startElement in interface TemplateVisitor
Throws:
CdkException

endElement

public void endElement(AnyElement anyElement)
                throws CdkException
Specified by:
endElement in interface TemplateVisitor
Throws:
CdkException

visitElement

public void visitElement(java.lang.String text)
                  throws CdkException
Specified by:
visitElement in interface TemplateVisitor
Throws:
CdkException

visitElement

public void visitElement(CdkCallElement cdkCallElement)
                  throws CdkException
Specified by:
visitElement in interface TemplateVisitor
Throws:
CdkException

startElement

public void startElement(CdkIfElement cdkIfElement)
Specified by:
startElement in interface TemplateVisitor

endElement

public void endElement(CdkIfElement cdkIfElement)
Specified by:
endElement in interface TemplateVisitor

startElement

public void startElement(CdkChooseElement cdkChooseElement)
Specified by:
startElement in interface TemplateVisitor

endElement

public void endElement(CdkChooseElement cdkChooseElement)
Specified by:
endElement in interface TemplateVisitor

startElement

public void startElement(CdkWhenElement cdkWhenElement)
Specified by:
startElement in interface TemplateVisitor

endElement

public void endElement(CdkWhenElement cdkWhenElement)
Specified by:
endElement in interface TemplateVisitor

startElement

public void startElement(CdkOtherwiseElement cdkOtherwiseElement)
Specified by:
startElement in interface TemplateVisitor

endElement

public void endElement(CdkOtherwiseElement cdkOtherwiseElement)
Specified by:
endElement in interface TemplateVisitor

visitElement

public void visitElement(CdkObjectElement cdkObjectElement)
Specified by:
visitElement in interface TemplateVisitor

startElement

public void startElement(CdkForEachElement cdkForEachElement)
Specified by:
startElement in interface TemplateVisitor

endElement

public void endElement(CdkForEachElement cdkForEachElement)
Specified by:
endElement in interface TemplateVisitor

preProcess

public void preProcess(CompositeImplementation impl)
Specified by:
preProcess in interface TemplateVisitor

postProcess

public void postProcess(CompositeImplementation impl)
Specified by:
postProcess in interface TemplateVisitor

clearCaches

public static void clearCaches()


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.