public class TypeGroup extends Object
Constructor | Description |
---|---|
TypeGroup(ClassLoader loader) |
create a type group for a rule containing all the basic types
|
Modifier and Type | Method | Description |
---|---|---|
void |
addExceptionTypes(String[] exceptionTypeNames) |
|
Type |
create(String name) |
create a type with a given name or return an existing type if the supplied
name can be matched.
|
Type |
create(String name,
Class clazz) |
create a type with a given name and class or return an existing type if the supplied
name and class can be matched.
|
Type |
createArray(Type baseType) |
|
Type |
ensureType(Class clazz) |
|
List<Type> |
getExceptionTypes() |
|
Type |
lookup(String name) |
lookup a type by name dereferencing it to its fully qualified type if that exists
|
Type |
match(String[] path) |
|
void |
resolveTypes() |
try to associate each type in the typegroup with a class
|
public TypeGroup(ClassLoader loader)
loader
- the class loader to use for type resolutionpublic Type lookup(String name)
name
- the type namepublic Type create(String name)
name
- the type namepublic Type create(String name, Class clazz)
name
- the type nameclazz
- the associated classpublic void resolveTypes()
public void addExceptionTypes(String[] exceptionTypeNames)
Copyright © 2018. All rights reserved.