org.richfaces.cdk.templatecompiler.statements
Class FreeMarkerTemplateStatementBase
java.lang.Object
org.richfaces.cdk.templatecompiler.statements.StatementsContainer
org.richfaces.cdk.templatecompiler.statements.FreeMarkerTemplateStatementBase
- All Implemented Interfaces:
- JavaStatement, RequireImports, Variables, TemplateStatement
- Direct Known Subclasses:
- AddAttributesToScriptHashStatement, CaseStatement, ConstantReturnMethodBodyStatement, DefineObjectStatement, ElementStatement, EncodeMethodPrefaceStatement, ForEachStatement, IfElseStatement, ScriptObjectStatement, ScriptOptionStatement, SwitchStatement, WriteAttributesSetStatement, WriteAttributeStatement, WriteTextStatement
public class FreeMarkerTemplateStatementBase
- extends StatementsContainer
- Author:
- Nick Belaevski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected StatementsContainer parent
FreeMarkerTemplateStatementBase
protected FreeMarkerTemplateStatementBase(FreeMarkerRenderer renderer,
java.lang.String templateName)
getCode
public java.lang.String getCode()
- Specified by:
getCode in interface JavaStatement- Overrides:
getCode in class StatementsContainer
getModelItem
public java.lang.Object getModelItem()
Some templates use modelItem variable
- Returns:
getRequiredImports
public java.lang.Iterable<JavaImport> getRequiredImports()
- Specified by:
getRequiredImports in interface RequireImports- Overrides:
getRequiredImports in class StatementsContainer
getRequiredFields
public java.lang.Iterable<JavaField> getRequiredFields()
- Specified by:
getRequiredFields in interface TemplateStatement- Overrides:
getRequiredFields in class StatementsContainer
getRequiredMethods
public java.lang.Iterable<HelperMethod> getRequiredMethods()
- Specified by:
getRequiredMethods in interface TemplateStatement- Overrides:
getRequiredMethods in class StatementsContainer
addRequiredMethods
protected void addRequiredMethods(HelperMethod... methods)
setTemplateName
public void setTemplateName(java.lang.String templateName)
addConstant
public void addConstant(java.lang.String type,
java.lang.String name,
java.lang.String code)
addImport
public void addImport(java.lang.String name)
addImports
protected void addImports(java.lang.Iterable<JavaImport> requiredImports)
addRequiredMethod
public void addRequiredMethod(java.lang.String helperMethodName)
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.