com.mysema.query.codegen
Class SimpleTypeModel

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

@Immutable
public class SimpleTypeModel
extends AbstractTypeModel

SimpleTypeModel represents a java type

Author:
tiwe

Constructor Summary
SimpleTypeModel(TypeCategory typeCategory, String name, String packageName, String simpleName, boolean finalClass, TypeModel... parameters)
           
 
Method Summary
 SimpleTypeModel 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()
           
 String toString()
           
 
Methods inherited from class com.mysema.query.codegen.AbstractTypeModel
getLocalGenericName, getLocalRawName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleTypeModel

public SimpleTypeModel(TypeCategory typeCategory,
                       String name,
                       String packageName,
                       String simpleName,
                       boolean finalClass,
                       TypeModel... parameters)
Method Detail

as

public SimpleTypeModel 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:

toString

public String toString()
Specified by:
toString in interface TypeModel
Overrides:
toString in class Object


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