RichFaces CDK Generator 4.2.0.CR1

org.richfaces.cdk.templatecompiler.statements
Class DefineObjectStatement

java.lang.Object
  extended by org.richfaces.cdk.templatecompiler.statements.StatementsContainer
      extended by org.richfaces.cdk.templatecompiler.statements.FreeMarkerTemplateStatementBase
          extended by org.richfaces.cdk.templatecompiler.statements.DefineObjectStatement
All Implemented Interfaces:
JavaStatement, RequireImports, Variables, TemplateStatement

public class DefineObjectStatement
extends FreeMarkerTemplateStatementBase

Author:
Nick Belaevski

Field Summary
 
Fields inherited from class org.richfaces.cdk.templatecompiler.statements.FreeMarkerTemplateStatementBase
parent
 
Fields inherited from interface org.richfaces.cdk.templatecompiler.statements.TemplateStatement
METHODS_TRANSFORM
 
Constructor Summary
DefineObjectStatement(org.richfaces.cdk.Logger log, FreeMarkerRenderer renderer, ELParser parser, TypesFactory typesFactory)
           
 
Method Summary
 TypedTemplateStatement getInitializationStatement()
          

 String getName()
           
 List<TemplateStatement> getStatements()
           
 ELType getType()
           
 boolean isCast()
           
 void setObject(String name, String type, String initializationExpression, boolean cast)
          

 
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 org.richfaces.cdk.templatecompiler.statements.StatementsContainer
addStatement, addStatement, getParent, getVariable, isDefined, isEmpty, setParent, setVariable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefineObjectStatement

@Inject
public DefineObjectStatement(org.richfaces.cdk.Logger log,
                                    FreeMarkerRenderer renderer,
                                    ELParser parser,
                                    TypesFactory typesFactory)
Method Detail

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()

RichFaces CDK Generator 4.2.0.CR1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.