|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.peaseplate.internal.model.CompileContext
public class CompileContext
Constructor Summary | |
---|---|
CompileContext(TemplateLocator locator)
|
Method Summary | |
---|---|
void |
addImportedResourceKey(ResourceKey descriptor)
Adds an imported resource key |
void |
addMacroBlock(MacroBlock macroBlock)
Adds a macro block |
void |
addVariable(java.lang.String... names)
|
boolean |
containsVariable(java.lang.String name)
|
java.util.List<ResourceKey> |
getImportedResourceKeys()
Returns an unmodifiable list of imported resource descriptors |
TemplateLocator |
getLocator()
Returns the template locator |
java.util.Map<java.lang.String,MacroBlock> |
getMacroBlocks()
Returns an unmodifiable map of macro blocks |
OutputStrategy |
getOutputStrategy()
|
java.lang.String[] |
popVariables()
|
void |
pushVariables()
|
void |
setOutputStrategy(java.lang.Class<? extends OutputStrategy> outputStrategyClass)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompileContext(TemplateLocator locator)
Method Detail |
---|
public TemplateLocator getLocator()
public void addImportedResourceKey(ResourceKey descriptor)
descriptor
- the imported resource keypublic java.util.List<ResourceKey> getImportedResourceKeys()
public void addMacroBlock(MacroBlock macroBlock)
macroBlock
- a macro blockpublic java.util.Map<java.lang.String,MacroBlock> getMacroBlocks()
public void addVariable(java.lang.String... names)
public boolean containsVariable(java.lang.String name)
public void pushVariables()
public java.lang.String[] popVariables()
public OutputStrategy getOutputStrategy()
public void setOutputStrategy(java.lang.Class<? extends OutputStrategy> outputStrategyClass) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |