java.lang.Object
org.evrete.util.TypeResolverWrapper
- All Implemented Interfaces:
Copyable<TypeResolver>,TypeResolver
Deprecated.
TypeResolverWrapper is a wrapper class for
TypeResolver. It delegates method calls to the
underlying TypeResolver instance.
Developers can utilize this class to customize or modify the behavior of the resolver.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopyOf()Deprecated.<T> Type<T>Deprecated.Declares and registers newTypewith the given type name and Java class<T> Type<T>Deprecated.Declares and registers newTypewith the given logical type name and Java class name.Collection<Type<?>>Deprecated.Returns a collection of all known types.<T> Type<T>getType(int typeId) Deprecated.<T> Type<T>Deprecated.<T> Type<T>Deprecated.voidwrapType(TypeWrapper<?> typeWrapper) Deprecated.Wraps a given TypeWrapper instance and delegates the calls to another Type implementation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.evrete.api.TypeResolver
declare, getOrDeclare, getOrDeclare, getOrDeclare, getOrDeclare
-
Constructor Details
-
TypeResolverWrapper
Deprecated.
-
-
Method Details
-
getType
Deprecated.- Specified by:
getTypein interfaceTypeResolver- Type Parameters:
T- type parameter- Parameters:
typeId- type id- Returns:
- existing
Type
-
wrapType
Deprecated.Description copied from interface:TypeResolverWraps a given TypeWrapper instance and delegates the calls to another Type implementation.- Specified by:
wrapTypein interfaceTypeResolver- Parameters:
typeWrapper- the TypeWrapper instance to be wrapped
-
getType
Deprecated.- Specified by:
getTypein interfaceTypeResolver- Type Parameters:
T- type parameter- Parameters:
name- type's declared name- Returns:
- existing
Typeornullif not found
-
resolve
Deprecated.- Specified by:
resolvein interfaceTypeResolver- Type Parameters:
T- type parameter- Parameters:
o- object to resolve- Returns:
- Type of the argument or null if object's type is unknown
-
getKnownTypes
Deprecated.Description copied from interface:TypeResolverReturns a collection of all known types.- Specified by:
getKnownTypesin interfaceTypeResolver- Returns:
- a collection of Type instances representing the known types
-
declare
Deprecated.Description copied from interface:TypeResolverDeclares and registers new
Typewith the given logical type name and Java class name. The existence of the corresponding Java class will be checked lazily, when the engine requires access to the class's properties.- Specified by:
declarein interfaceTypeResolver- Type Parameters:
T- java class type parameter- Parameters:
typeName- logical type namejavaType- Java class name- Returns:
- new logical type
-
copyOf
Deprecated.- Specified by:
copyOfin interfaceCopyable<TypeResolver>
-
declare
Deprecated.Description copied from interface:TypeResolverDeclares and registers new
Typewith the given type name and Java class- Specified by:
declarein interfaceTypeResolver- Type Parameters:
T- java class type parameter- Parameters:
typeName- logical type namejavaType- Java class- Returns:
- new internal type
-
RuntimeContext.configureTypes(Consumer)method instead to configure the context's types and their fields.