com.mysema.query.codegen
Class TypeAdapter
java.lang.Object
com.mysema.query.codegen.TypeAdapter
- All Implemented Interfaces:
- Type
- Direct Known Subclasses:
- EntityType, TypeExtends, TypeSuper
public class TypeAdapter
- extends Object
- implements Type
TypeAdapter is a basic adapter implementation for the Type interface
- Author:
- tiwe
TypeAdapter
public TypeAdapter(Type type)
appendLocalGenericName
public void appendLocalGenericName(Type context,
Appendable builder,
boolean asArgType)
throws IOException
- Specified by:
appendLocalGenericName
in interface Type
- Throws:
IOException
appendLocalRawName
public void appendLocalRawName(Type context,
Appendable builder)
throws IOException
- Specified by:
appendLocalRawName
in interface Type
- Throws:
IOException
as
public Type as(TypeCategory category)
- Specified by:
as
in interface Type
- Returns:
asArrayType
public Type asArrayType()
- Specified by:
asArrayType
in interface Type
- Returns:
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
getCategory
public TypeCategory getCategory()
- Specified by:
getCategory
in interface Type
- Returns:
getFullName
public String getFullName()
- Specified by:
getFullName
in interface Type
- Returns:
getLocalGenericName
public String getLocalGenericName(Type context,
boolean asArgType)
- Specified by:
getLocalGenericName
in interface Type
- Returns:
getLocalRawName
public String getLocalRawName(Type context)
- Specified by:
getLocalRawName
in interface Type
- Returns:
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interface Type
- Returns:
getParameter
public Type getParameter(int i)
- Specified by:
getParameter
in interface Type
- Returns:
getParameterCount
public int getParameterCount()
- Specified by:
getParameterCount
in interface Type
- Returns:
getPrimitiveName
public String getPrimitiveName()
- Specified by:
getPrimitiveName
in interface Type
- Returns:
getSelfOrValueType
public Type getSelfOrValueType()
- Specified by:
getSelfOrValueType
in interface Type
- Returns:
getSimpleName
public String getSimpleName()
- Specified by:
getSimpleName
in interface Type
- Returns:
getType
protected Type getType()
hasEntityFields
public boolean hasEntityFields()
- Specified by:
hasEntityFields
in interface Type
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isFinal
public boolean isFinal()
- Specified by:
isFinal
in interface Type
- Returns:
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitive
in interface Type
- Returns:
toString
public String toString()
- Specified by:
toString
in interface Type
- Overrides:
toString
in class Object
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.