public abstract class BuiltinRegistry extends Object
| Modifier and Type | Field and Description |
|---|---|
static BuiltinRegistry |
theRegistry
The default base registry
|
| Constructor and Description |
|---|
BuiltinRegistry() |
| Modifier and Type | Method and Description |
|---|---|
abstract Builtin |
getImplementation(String functor)
Find the implementation of the given builtin functor.
|
abstract Builtin |
getImplementationByURI(String uri)
Find the implementation of the given builtin functor.
|
abstract void |
register(Builtin impl)
Register an implementation for a given builtin using its default name.
|
abstract void |
register(String functor,
Builtin impl)
Register an implementation for a given builtin functor.
|
public static BuiltinRegistry theRegistry
public abstract void register(Builtin impl)
impl - the implementation of the builtinpublic abstract void register(String functor, Builtin impl)
functor - the name of the functor used to invoke the builtinimpl - the implementation of the builtinpublic abstract Builtin getImplementation(String functor)
functor - the name of the functor being invoked.Licenced under the Apache License, Version 2.0