public class TypeUtil extends Object
Constructor and Description |
---|
TypeUtil() |
Modifier and Type | Method and Description |
---|---|
static JType |
getCommonBaseType(JCodeModel codeModel,
Collection<? extends JType> types)
Computes the common base type of two types.
|
static JType |
getCommonBaseType(JCodeModel codeModel,
JType... t)
Computes the common base type of types.
|
static JType |
getType(JCodeModel codeModel,
String typeName,
ErrorReceiver errorHandler,
Locator errorSource)
Obtains a
JType object for the string representation
of a type. |
public static JType getCommonBaseType(JCodeModel codeModel, Collection<? extends JType> types)
types
- set of JType
objects.public static JType getCommonBaseType(JCodeModel codeModel, JType... t)
public static JType getType(JCodeModel codeModel, String typeName, ErrorReceiver errorHandler, Locator errorSource)
JType
object for the string representation
of a type.Copyright © 2017 JBoss by Red Hat. All rights reserved.