org.eclipse.jet.compiler
Interface IJETCompilerState


public interface IJETCompilerState

Provides access to the JET compiler state. Saving the compiler state, and then passing it to a new instances of JET2Compiler will allow the compiler to do a correct incremental compilation.


Method Summary
 void addTemplate(java.lang.String templatePath, java.lang.String outputJavaClassName)
          Add the template and fully qualified Java class name to the template map.
 void addTemplateTagLibraryReferences(java.lang.String templatePath, TagLibraryReference[] references)
           
 void clear()
          Clear the compiler state, returning it to its initial condition.
 java.lang.String[] getAllReferencedTagLibraryIds()
           
 java.lang.String getTemplateFromClass(java.lang.String qualifiedName)
          Return the project relative template name given a fully qualified class name.
 java.util.Map getTemplateMap()
          Return a map of fully qualified Java class names keyed by project relative template path (as a string).
 void removeTemplate(java.lang.String templatePath)
          Remove the template from the template map.
 void setProjectTagLibraryReferences(TagLibraryReference[] tagLibraryReferences)
           
 

Method Detail

getTemplateMap

java.util.Map getTemplateMap()
Return a map of fully qualified Java class names keyed by project relative template path (as a string).

Returns:
an unmodifiable map.

addTemplate

void addTemplate(java.lang.String templatePath,
                 java.lang.String outputJavaClassName)
Add the template and fully qualified Java class name to the template map. This method is generally called by the compiler.

Parameters:
templatePath - the project relative template path.
outputJavaClassName - the fully qualified class name of the compiled Java output.

removeTemplate

void removeTemplate(java.lang.String templatePath)
Remove the template from the template map. If the template is not in the template map, then nothing happens.

Parameters:
templatePath - the project relative template path.

clear

void clear()
Clear the compiler state, returning it to its initial condition.


getTemplateFromClass

java.lang.String getTemplateFromClass(java.lang.String qualifiedName)
Return the project relative template name given a fully qualified class name.

Parameters:
qualifiedName - a fully qualified Java class name
Returns:
the corresponding template path, or null

setProjectTagLibraryReferences

void setProjectTagLibraryReferences(TagLibraryReference[] tagLibraryReferences)

addTemplateTagLibraryReferences

void addTemplateTagLibraryReferences(java.lang.String templatePath,
                                     TagLibraryReference[] references)

getAllReferencedTagLibraryIds

java.lang.String[] getAllReferencedTagLibraryIds()

Copyright 2006 IBM Corporation and others.
All Rights Reserved.