com.mysema.query.codegen
Class SimpleType

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

@Immutable
public final class SimpleType
extends AbstractType

SimpleType represents a java type

Author:
tiwe

Constructor Summary
SimpleType(TypeCategory typeCategory, String name, String packageName, String simpleName, boolean finalClass, Type... parameters)
           
 
Method Summary
 void appendLocalGenericName(Type context, Appendable builder, boolean asArgType)
           
 void appendLocalRawName(Type context, Appendable builder)
           
 SimpleType 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()
           
 String toString()
           
 
Methods inherited from class com.mysema.query.codegen.AbstractType
getLocalGenericName, getLocalRawName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleType

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

as

public SimpleType as(TypeCategory category)
Returns:

asArrayType

public Type asArrayType()
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:

toString

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


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