javax0.jamal.api.UserDefinedMacro Maven / Gradle / Ivy
package javax0.jamal.api;
import java.util.Optional;
/**
* User defined macros. User defined macros have an identifier and are evaluable. They are also debuggable.
*/
public interface UserDefinedMacro extends Evaluable, Debuggable, Serializing {
default Optional debuggable() {
return Optional.empty();
}
default javax0.jamal.api.UserDefinedMacro deserialize(String serialized) throws BadSyntax {
return this;
}
@Override
default String serialize() {
return "";
}
}