org.richfaces.cdk.templatecompiler.statements
Class DefineObjectStatement
java.lang.Object
org.richfaces.cdk.templatecompiler.statements.StatementsContainer
org.richfaces.cdk.templatecompiler.statements.FreeMarkerTemplateStatementBase
org.richfaces.cdk.templatecompiler.statements.DefineObjectStatement
- All Implemented Interfaces:
- JavaStatement, RequireImports, Variables, TemplateStatement
public class DefineObjectStatement
- extends FreeMarkerTemplateStatementBase
- Author:
- Nick Belaevski
| Methods inherited from class org.richfaces.cdk.templatecompiler.statements.FreeMarkerTemplateStatementBase |
addConstant, addImport, addImports, addRequiredMethod, addRequiredMethods, getCode, getModelItem, getRequiredFields, getRequiredImports, getRequiredMethods, setTemplateName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefineObjectStatement
@Inject
public DefineObjectStatement(org.richfaces.cdk.Logger log,
FreeMarkerRenderer renderer,
ELParser parser,
TypesFactory typesFactory)
setObject
public void setObject(String name,
String type,
String initializationExpression,
boolean cast)
- Parameters:
initializationExpression - the initializationExpression to set
- Throws:
ParsingException
getType
public ELType getType()
- Returns:
- the type
getName
public String getName()
- Returns:
- the name
getInitializationStatement
public TypedTemplateStatement getInitializationStatement()
- Returns:
- the initializationStatement
getStatements
public List<TemplateStatement> getStatements()
- Overrides:
getStatements in class StatementsContainer
isCast
public boolean isCast()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.