| Modifier and Type | Field and Description |
|---|---|
| private static final Comparator | typeComparator
Compares |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Set | |
| private static void | getAssignableTypes(JClass t, Set<JClass> s)
Returns the set of all classes/interfaces that a given type implements/extends, including itself. |
| public static JType | getCommonBaseType(JCodeModel codeModel, Collection<? extends JType>
set of types)JType objects.Computes the common base type of two types. |
| public static JType | |
| public static JType | getType(JCodeModel codeModel, String typeName, ErrorReceiver errorHandler, Locator errorSource)
Obtains a |
| private static JClass |
| typeComparator | back to summary |
|---|---|
| private static final Comparator<JType> typeComparator Compares | |
| TypeUtil | back to summary |
|---|---|
| private TypeUtil() | |
| getAssignableTypes | back to summary |
|---|---|
| private static Set | |
| getAssignableTypes | back to summary |
|---|---|
| private static void getAssignableTypes(JClass t, Set<JClass> s) Returns the set of all classes/interfaces that a given type implements/extends, including itself. For example, if you pass java.io.FilterInputStream, then the returned set will contain java.lang.Object, java.lang.InputStream, and java.lang.FilterInputStream. | |
| getCommonBaseType | back to summary |
|---|---|
| public static JType getCommonBaseType(JCodeModel codeModel, Collection<? extends JType> types) Computes the common base type of two types.
| |
| getCommonBaseType | back to summary |
|---|---|
| public static JType getCommonBaseType(JCodeModel codeModel, JType... t) Computes the common base type of types. Todo this is a very interesting problem. Since one type has possibly multiple base types, it's not an easy problem. The current implementation is very naive. To make the result deterministic across differente JVMs, we have to use a Set whose ordering is deterministic. | |
| getType | back to summary |
|---|---|
| public static JType getType(JCodeModel codeModel, String typeName, ErrorReceiver errorHandler, Locator errorSource) Obtains a | |
| pickOne | back to summary |
|---|---|
| private static JClass pickOne(Set<JClass> s) | |