com.cedarsoft.codegen
Class NewInstanceFactory

java.lang.Object
  extended by com.cedarsoft.codegen.NewInstanceFactory

public class NewInstanceFactory
extends Object


Field Summary
static String CONSTANT_NAME_TRUE
           
static char DEFAULT_VALUE_CHAR
           
static double DEFAULT_VALUE_DOUBLE
           
static float DEFAULT_VALUE_FLOAT
           
static int DEFAULT_VALUE_INTEGER
           
static long DEFAULT_VALUE_LONG
           
static String METHOD_NAME_AS_LIST
           
static String METHOD_NAME_VALUE_OF
           
 
Constructor Summary
NewInstanceFactory(com.sun.codemodel.JCodeModel codeModel, ClassRefSupport classRefSupport)
           
 
Method Summary
 com.sun.codemodel.JExpression create(com.sun.codemodel.JType type, String simpleName)
           
 com.sun.codemodel.JExpression create(com.sun.mirror.type.TypeMirror type, String simpleName)
           
 com.sun.codemodel.JExpression createCollectionInvocation(com.sun.codemodel.JType collectionParamType, String simpleName, boolean isSet)
           
 com.sun.codemodel.JExpression createCollectionInvocation(com.sun.mirror.type.TypeMirror collectionParamType, String simpleName, boolean isSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

METHOD_NAME_VALUE_OF

@NonNls
public static final String METHOD_NAME_VALUE_OF
See Also:
Constant Field Values

METHOD_NAME_AS_LIST

@NonNls
public static final String METHOD_NAME_AS_LIST
See Also:
Constant Field Values

CONSTANT_NAME_TRUE

@NonNls
public static final String CONSTANT_NAME_TRUE
See Also:
Constant Field Values

DEFAULT_VALUE_INTEGER

public static final int DEFAULT_VALUE_INTEGER
See Also:
Constant Field Values

DEFAULT_VALUE_FLOAT

public static final float DEFAULT_VALUE_FLOAT
See Also:
Constant Field Values

DEFAULT_VALUE_LONG

public static final long DEFAULT_VALUE_LONG
See Also:
Constant Field Values

DEFAULT_VALUE_DOUBLE

public static final double DEFAULT_VALUE_DOUBLE
See Also:
Constant Field Values

DEFAULT_VALUE_CHAR

public static final char DEFAULT_VALUE_CHAR
See Also:
Constant Field Values
Constructor Detail

NewInstanceFactory

public NewInstanceFactory(@NotNull
                          com.sun.codemodel.JCodeModel codeModel,
                          @NotNull
                          ClassRefSupport classRefSupport)
Method Detail

create

@NotNull
public com.sun.codemodel.JExpression create(@NotNull
                                                    com.sun.codemodel.JType type,
                                                    @NotNull@NonNls
                                                    String simpleName)

createCollectionInvocation

@NotNull
public com.sun.codemodel.JExpression createCollectionInvocation(@NotNull
                                                                        com.sun.codemodel.JType collectionParamType,
                                                                        @NotNull@NonNls
                                                                        String simpleName,
                                                                        boolean isSet)

create

@NotNull
public com.sun.codemodel.JExpression create(@NotNull
                                                    com.sun.mirror.type.TypeMirror type,
                                                    @NotNull@NonNls
                                                    String simpleName)

createCollectionInvocation

@NotNull
public com.sun.codemodel.JExpression createCollectionInvocation(@NotNull
                                                                        com.sun.mirror.type.TypeMirror collectionParamType,
                                                                        @NotNull@NonNls
                                                                        String simpleName,
                                                                        boolean isSet)


Copyright © 2010 cedarsoft GmbH. All Rights Reserved.