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 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 "";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy