Package org.jboss.byteman.rule.type
Class TypeGroup
- java.lang.Object
-
- org.jboss.byteman.rule.type.TypeGroup
-
public class TypeGroup extends Object
the collection of types associated with an ECA rule
-
-
Constructor Summary
Constructors Constructor Description TypeGroup(ClassLoader loader)
create a type group for a rule containing all the basic types
-
Method Summary
All Methods Instance Methods Concrete Methods 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 existsType
match(String[] path)
void
resolveTypes()
try to associate each type in the typegroup with a class
-
-
-
Constructor Detail
-
TypeGroup
public TypeGroup(ClassLoader loader)
create a type group for a rule containing all the basic types- Parameters:
loader
- the class loader to use for type resolution
-
-
Method Detail
-
lookup
public Type lookup(String name)
lookup a type by name dereferencing it to its fully qualified type if that exists- Parameters:
name
- the type name- Returns:
- the type
-
create
public Type create(String name)
create a type with a given name or return an existing type if the supplied name can be matched. if the type name is qualified ensure that any existing type with an unqualified name matching this entry is not already aliased to another type.- Parameters:
name
- the type name- Returns:
- the type if created or matched or null if there is an alias mismatch
-
create
public 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. if the type name is qualified ensure that any existing type with an unqualified name matching this entry is not already aliased to another type.- Parameters:
name
- the type nameclazz
- the associated class- Returns:
- the type if created or matched or null if there is a class or alias mismatch
-
resolveTypes
public void resolveTypes()
try to associate each type in the typegroup with a class
-
addExceptionTypes
public void addExceptionTypes(String[] exceptionTypeNames)
-
-