com.mysema.query.codegen
Class ClassType

java.lang.Object
  extended by com.mysema.query.codegen.AbstractType
      extended by com.mysema.query.codegen.ClassType
All Implemented Interfaces:
Type

@Immutable
public final class ClassType
extends AbstractType

ClassType is a minimal implementation of the Type interface

Author:
tiwe

Constructor Summary
ClassType(TypeCategory typeCategory, Class<?> clazz, Class<?> primitiveClass, Type... params)
           
ClassType(TypeCategory typeCategory, Class<?> clazz, Type... params)
           
 
Method Summary
 void appendLocalGenericName(Type context, Appendable builder, boolean asArgType)
           
 void appendLocalRawName(Type context, Appendable builder)
           
 Type as(TypeCategory category)
           
 Type asArrayType()
           
 boolean equals(Object o)
           
 TypeCategory getCategory()
           
 String getFullName()
           
 String getPackageName()
           
 Type getParameter(int i)
           
 int getParameterCount()
           
 String getPrimitiveName()
           
 Type getSelfOrValueType()
           
 String getSimpleName()
           
 boolean hasEntityFields()
           
 int hashCode()
           
 boolean isFinal()
           
 boolean isPrimitive()
           
 
Methods inherited from class com.mysema.query.codegen.AbstractType
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.Type
toString
 

Constructor Detail

ClassType

public ClassType(TypeCategory typeCategory,
                 Class<?> clazz,
                 Type... params)

ClassType

public ClassType(TypeCategory typeCategory,
                 Class<?> clazz,
                 @Nullable
                 Class<?> primitiveClass,
                 Type... params)
Method Detail

asArrayType

public Type asArrayType()
Returns:

as

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

appendLocalGenericName

public void appendLocalGenericName(Type context,
                                   Appendable builder,
                                   boolean asArgType)
                            throws IOException
Throws:
IOException

appendLocalRawName

public void appendLocalRawName(Type context,
                               Appendable builder)
                        throws IOException
Throws:
IOException

getPackageName

public String getPackageName()
Returns:

getParameter

public Type getParameter(int i)
Returns:

getParameterCount

public int getParameterCount()
Returns:

getPrimitiveName

public String getPrimitiveName()
Returns:

getSelfOrValueType

public Type 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.