java.lang.Object
javax0.jamal.builtins.Use
- All Implemented Interfaces:
javax0.jamal.api.Identified
,javax0.jamal.api.Macro
,javax0.jamal.api.ServiceLoaded
This macro can be used to define a Java implemented macro class, which is not exported by the module system.
The macro code can contain use global com.my.class as name
or use com.my.class as name
to use the
class com.my.class
as a macro implementation. The class has to implement the Macro
interface. In case
it is defined as global
then it will get into the global level, otherwise to the local level.
If the class name does not contain any dot character then it is assument that this is not a class name, rather an
already loaded macro name. In that case the as alias
is not optional.
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax0.jamal.api.Identified
javax0.jamal.api.Identified.Undefined
Nested classes/interfaces inherited from interface javax0.jamal.api.Macro
javax0.jamal.api.Macro.Stateful
-
Field Summary
Fields inherited from interface javax0.jamal.api.Identified
DEFAULT_MACRO, MACRO_NAME_ARG1, MACRO_NAME_ARG2
Fields inherited from interface javax0.jamal.api.Macro
FETCH
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax0.jamal.api.Macro
fetch, getId, getIds, prefetch
-
Constructor Details
-
Use
public Use()
-
-
Method Details
-
evaluate
public String evaluate(javax0.jamal.api.Input input, javax0.jamal.api.Processor processor) throws javax0.jamal.api.BadSyntax - Specified by:
evaluate
in interfacejavax0.jamal.api.Macro
- Throws:
javax0.jamal.api.BadSyntax
-