public class TypeGroup extends Object
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,Type> |
typeTable |
Constructor and Description |
---|
TypeGroup(ClassLoader loader)
create a type group for a rule containing all the basic types
|
Modifier and Type | Method and 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)
public Type lookup(String name)
name
- public Type create(String name)
name
- public Type create(String name, Class clazz)
name
- clazz
- public void resolveTypes()
public void addExceptionTypes(String[] exceptionTypeNames)
Copyright © 2017. All Rights Reserved.