com.mysema.query.codegen
Class SimpleTypeModel
java.lang.Object
com.mysema.query.codegen.AbstractTypeModel
com.mysema.query.codegen.SimpleTypeModel
- All Implemented Interfaces:
- TypeModel
@Immutable
public class SimpleTypeModel
- extends AbstractTypeModel
SimpleTypeModel represents a java type
- Author:
- tiwe
SimpleTypeModel
public SimpleTypeModel(TypeCategory typeCategory,
String name,
String packageName,
String simpleName,
boolean finalClass,
TypeModel... parameters)
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.