biz.gabrys.lesscss.extended.compiler.cache.CompiledCodeCache Maven / Gradle / Ivy
/*
* Extended LessCSS Compiler
* http://lesscss-extended-compiler.projects.gabrys.biz/
*
* Copyright (c) 2015 Adam Gabryś
*
* This file is licensed under the BSD 3-Clause (the "License").
* You may not use this file except in compliance with the License.
* You may obtain:
* - a copy of the License at project page
* - a template of the License at https://opensource.org/licenses/BSD-3-Clause
*/
package biz.gabrys.lesscss.extended.compiler.cache;
import biz.gabrys.lesscss.extended.compiler.source.LessSource;
/**
* Responsible for storing compiled CSS code.
* @since 1.0
*/
public interface CompiledCodeCache {
/**
* Saves compiled CSS code of the {@link LessSource}.
* @param source the {@link LessSource}.
* @param compiledCode the compiled CSS code.
* @since 1.0
*/
void saveCompiledCode(LessSource source, String compiledCode);
/**
* Tests whether cache contains compiled CSS code for the
* {@link LessSource}.
* @param source the {@link LessSource}.
* @return {@code true} whether cache contains compiled CSS code,
* otherwise {@code false}.
* @since 1.0
*/
boolean hasCompiledCode(LessSource source);
/**
* Returns a compiled CSS code of the {@link LessSource}.
* @param source the {@link LessSource}.
* @return the compiled CSS code.
* @since 1.0
*/
String getCompiledCode(LessSource source);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy