org.teatrove.tea.compiler
Class TemplateCallExtractor

java.lang.Object
  extended by org.teatrove.tea.compiler.TemplateCallExtractor

public class TemplateCallExtractor
extends Object

Author:
Guy A. Molinari A utility class to facilitate generation of template metadata.

Nested Class Summary
static class TemplateCallExtractor.AppMethodInfo
           
 
Field Summary
static String TEMPLATE_PACKAGE
           
 
Constructor Summary
TemplateCallExtractor()
           
 
Method Summary
static TemplateCallExtractor.AppMethodInfo[] getAppMethodsCalled(String basePath, String templateName, String contextClass)
          Get the names of all application methods called within a template.
static MethodInfo getTemplateExecuteMethod(InputStream in)
          Find the execute method on the class file input stream.
static String[] getTemplatesCalled(String basePath, String templateName)
          Get the names of all templates called within a template.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEMPLATE_PACKAGE

public static final String TEMPLATE_PACKAGE
See Also:
Constant Field Values
Constructor Detail

TemplateCallExtractor

public TemplateCallExtractor()
Method Detail

getTemplateExecuteMethod

public static MethodInfo getTemplateExecuteMethod(InputStream in)
                                           throws IOException
Find the execute method on the class file input stream.

Throws:
IOException

getTemplatesCalled

public static String[] getTemplatesCalled(String basePath,
                                          String templateName)
Get the names of all templates called within a template.


getAppMethodsCalled

public static TemplateCallExtractor.AppMethodInfo[] getAppMethodsCalled(String basePath,
                                                                        String templateName,
                                                                        String contextClass)
Get the names of all application methods called within a template.



Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.