public class TypeUtil
extends java.lang.Object
Constructor and Description |
---|
TypeUtil() |
Modifier and Type | Method and Description |
---|---|
static com.sun.codemodel.JType |
getCommonBaseType(com.sun.codemodel.JCodeModel codeModel,
java.util.Collection<? extends com.sun.codemodel.JType> types)
Computes the common base type of two types.
|
static com.sun.codemodel.JType |
getCommonBaseType(com.sun.codemodel.JCodeModel codeModel,
com.sun.codemodel.JType... t)
Computes the common base type of types.
|
static com.sun.codemodel.JType |
getType(com.sun.codemodel.JCodeModel codeModel,
java.lang.String typeName,
ErrorReceiver errorHandler,
org.xml.sax.Locator errorSource)
Obtains a
JType object for the string representation
of a type. |
public static com.sun.codemodel.JType getCommonBaseType(com.sun.codemodel.JCodeModel codeModel, java.util.Collection<? extends com.sun.codemodel.JType> types)
types
- set of JType
objects.public static com.sun.codemodel.JType getCommonBaseType(com.sun.codemodel.JCodeModel codeModel, com.sun.codemodel.JType... t)
public static com.sun.codemodel.JType getType(com.sun.codemodel.JCodeModel codeModel, java.lang.String typeName, ErrorReceiver errorHandler, org.xml.sax.Locator errorSource)
JType
object for the string representation
of a type.