com.mysema.query.codegen
Class ClassTypeModel

java.lang.Object
  extended by com.mysema.query.codegen.AbstractTypeModel
      extended by com.mysema.query.codegen.ClassTypeModel
All Implemented Interfaces:
TypeModel

@Immutable
public class ClassTypeModel
extends AbstractTypeModel

ClassTypeModel is a minimal implementation of the TypeModel interface

Author:
tiwe

Constructor Summary
ClassTypeModel(TypeCategory typeCategory, Class<?> clazz)
           
ClassTypeModel(TypeCategory typeCategory, Class<?> clazz, Class<?> primitiveClass)
           
 
Method Summary
 TypeModel as(TypeCategory category)
           
 boolean equals(Object o)
           
 TypeCategory getCategory()
           
 String getFullName()
           
<T extends Appendable>
T
getLocalGenericName(TypeModel context, T builder, boolean asArgType)
           
<T extends Appendable>
T
getLocalRawName(TypeModel context, T builder)
           
 String getPackageName()
           
 TypeModel getParameter(int i)
           
 int getParameterCount()
           
 String getPrimitiveName()
           
 TypeModel getSelfOrValueType()
           
 String getSimpleName()
           
 boolean hasEntityFields()
           
 int hashCode()
           
 boolean isFinal()
           
 boolean isPrimitive()
           
 
Methods inherited from class com.mysema.query.codegen.AbstractTypeModel
getLocalGenericName, getLocalRawName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.mysema.query.codegen.TypeModel
toString
 

Constructor Detail

ClassTypeModel

public ClassTypeModel(TypeCategory typeCategory,
                      Class<?> clazz)

ClassTypeModel

public ClassTypeModel(TypeCategory typeCategory,
                      Class<?> clazz,
                      @Nullable
                      Class<?> primitiveClass)
Method Detail

as

public TypeModel as(TypeCategory category)
Returns:

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getCategory

public TypeCategory getCategory()
Returns:

getFullName

public String getFullName()
Returns:

getLocalGenericName

public <T extends Appendable> T getLocalGenericName(TypeModel context,
                                                    T builder,
                                                    boolean asArgType)
                                         throws IOException
Returns:
Throws:
IOException

getLocalRawName

public <T extends Appendable> T getLocalRawName(TypeModel context,
                                                T builder)
                                     throws IOException
Returns:
Throws:
IOException

getPackageName

public String getPackageName()
Returns:

getParameter

public TypeModel getParameter(int i)
Returns:

getParameterCount

public int getParameterCount()
Returns:

getPrimitiveName

public String getPrimitiveName()
Returns:

getSelfOrValueType

public TypeModel getSelfOrValueType()
Returns:

getSimpleName

public String getSimpleName()
Returns:

hasEntityFields

public boolean hasEntityFields()
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isFinal

public boolean isFinal()
Returns:

isPrimitive

public boolean isPrimitive()
Returns:


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.