All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax0.jamal.api.UserDefinedMacro Maven / Gradle / Ivy

package javax0.jamal.api;

import java.util.Optional;

/**
 * User defined macro.
 * 

* User defined macros have an identifier and are evaluable. * They are also debuggable, and they can be serialized and loaded from serialized form. */ public interface UserDefinedMacro extends Evaluable, Debuggable, Serializing { default Optional debuggable() { return Optional.empty(); } /** * Deserialize the macro from the serialized form. * * @param serialized the serialized form of the macro * @return the deserialized macro object * @throws BadSyntax if the serialized form is not correct */ default javax0.jamal.api.UserDefinedMacro deserialize(String serialized) throws BadSyntax { return this; } /** * Serialize the macro. * * @return the serialized form of the macro as a string. */ @Override default String serialize() { return ""; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy