diff --git a/.gitignore b/.gitignore index 4c17448..ea9874b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ /images /main.lesscache /urltester -/helper.lesscache \ No newline at end of file +/helper.lesscache +/target/surefire-reports \ No newline at end of file diff --git a/src/main/java/cz/muni/fi/lessappcache/Main.java b/src/main/java/cz/muni/fi/lessappcache/Main.java index 2b63a4f..60d9e3b 100644 --- a/src/main/java/cz/muni/fi/lessappcache/Main.java +++ b/src/main/java/cz/muni/fi/lessappcache/Main.java @@ -55,6 +55,7 @@ public static void main(String[] args) { System.out.println(s); } } catch (IOException ex) { + System.err.println("File not found "+ ex.getMessage()); } } diff --git a/src/main/java/cz/muni/fi/lessappcache/filesystem/PathUtils.java b/src/main/java/cz/muni/fi/lessappcache/filesystem/PathUtils.java index adf60a3..843ac3c 100644 --- a/src/main/java/cz/muni/fi/lessappcache/filesystem/PathUtils.java +++ b/src/main/java/cz/muni/fi/lessappcache/filesystem/PathUtils.java @@ -35,19 +35,16 @@ public class PathUtils { * in the same folder it relativizes as "../" * In future this method could be replaced by absolutization and the relativizing. * - * @param basePath the path to be relativized against - * @param otherPath the path to be relativized + * @param relativized the path to be relativized + * @param base the path to be relativized against * @return Path describing the relative path from one folder to other one. */ - public static Path relativizeFolders(Path basePath, Path otherPath) { - Path difference = basePath.relativize(otherPath).normalize(); - difference = difference.getParent(); - if (difference == null || difference.getNameCount() <= 1) { - difference = Paths.get(""); - } else { - difference = difference.subpath(1, difference.getNameCount()); + public static Path getParent(Path path) { + Path parent = path.getParent(); + if (parent == null || parent.getNameCount() < 1) { + parent = Paths.get(""); } - return difference; + return parent; } /** diff --git a/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkDir.java b/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkDir.java index 3b305f9..393b01c 100644 --- a/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkDir.java +++ b/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkDir.java @@ -50,6 +50,7 @@ public List execute(final String[] args, Path context) throws FilterExec List result = new ArrayList<>(); String pathName = args[1]; pathName = PathUtils.processResource(pathName, context); + logger.fatal(pathName); final Path path = Paths.get(pathName); Path pathRelative = Paths.get(args[1]); diff --git a/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkTree.java b/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkTree.java index 89a6fec..87b1665 100644 --- a/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkTree.java +++ b/src/main/java/cz/muni/fi/lessappcache/filters/AbstractWalkTree.java @@ -50,7 +50,9 @@ public abstract class AbstractWalkTree implements Filter { @Override public List execute(String[] args, Path context) throws FilterExecutionException { List result = new ArrayList<>(); + // pattern in args[2] Finder f = new Finder(args[2]); + // directory path in args[1] String pathName = args[1]; pathName = PathUtils.processResource(pathName, context); @@ -83,7 +85,7 @@ public List result() { return results; } - // Compares the glob pattern against + // Compares the pattern against // the file name. void find(Path file) { Path name = file.getFileName(); @@ -92,16 +94,14 @@ void find(Path file) { } } - // Invoke the pattern matching - // method on each file. + // Invoke the pattern matching method on each file. @Override public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { find(file); return CONTINUE; } - // Invoke the pattern matching - // method on each directory. + // Ignores directory names @Override public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) { return CONTINUE; diff --git a/src/main/java/cz/muni/fi/lessappcache/filters/FilterFactory.java b/src/main/java/cz/muni/fi/lessappcache/filters/FilterFactory.java index a420bea..275e737 100644 --- a/src/main/java/cz/muni/fi/lessappcache/filters/FilterFactory.java +++ b/src/main/java/cz/muni/fi/lessappcache/filters/FilterFactory.java @@ -41,12 +41,8 @@ public static Filter getFilterInstance(String filterName) throws FilterException try { Class filter = loader.loadClass(filterName); filters.put(filterName, (Filter) filter.newInstance()); - } catch (ClassNotFoundException ex) { - throw new FilterException("Filter " + filterName + " not found!", ex); - } catch (InstantiationException ex) { - throw new FilterException("Could not instantiate " + filterName, ex); - } catch (IllegalAccessException ex) { - throw new FilterException("Illegal access to filter " + filterName, ex); + } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) { + throw new FilterException("There was an error when calling filter " + filterName, ex); } } return filters.get(filterName); diff --git a/src/main/java/cz/muni/fi/lessappcache/importer/ImportedFile.java b/src/main/java/cz/muni/fi/lessappcache/importer/ImportedFile.java index f987792..8123706 100644 --- a/src/main/java/cz/muni/fi/lessappcache/importer/ImportedFile.java +++ b/src/main/java/cz/muni/fi/lessappcache/importer/ImportedFile.java @@ -24,10 +24,19 @@ * * @author Petr Kunc */ -public class ImportedFile { +public final class ImportedFile { private List lines; private Path filePath; + /** + * Contstructor of ImportedFile definig resource to be imported. + * + * @param filePath of file to be imported + */ + public ImportedFile(Path filePath) { + setFilePath(filePath); + } + /** * Getter for lines * diff --git a/src/main/java/cz/muni/fi/lessappcache/importer/Importer.java b/src/main/java/cz/muni/fi/lessappcache/importer/Importer.java index 66fcb73..e8deaf9 100644 --- a/src/main/java/cz/muni/fi/lessappcache/importer/Importer.java +++ b/src/main/java/cz/muni/fi/lessappcache/importer/Importer.java @@ -32,7 +32,7 @@ public class Importer { private final static Logger logger = Logger.getLogger(Importer.class.getName()); - private final static Set importedFiles = new HashSet<>(); + private final static Set importedFiles = new HashSet<>(); /** * Method serves to detect whether given file is already imported @@ -41,7 +41,7 @@ public class Importer { * @return true if file is already imported, false otherwise */ public static boolean isImported(Path filePath) { - return importedFiles.contains(filePath.normalize()); + return importedFiles.contains(new ImportedFile(filePath)); } /** @@ -75,11 +75,10 @@ public static ImportedFile importFile(String fileName) throws IOException { */ public static ImportedFile importFile(Path path) throws IOException { logger.info("Importing file: "+ path); - ImportedFile imported = new ImportedFile(); - imported.setFilePath(path); + ImportedFile imported = new ImportedFile(path); imported.setLines(FileUtils.readFile(path)); logger.info("Importing complete"); - importedFiles.add(imported.getFilePath()); + importedFiles.add(imported); return imported; } } \ No newline at end of file diff --git a/src/main/java/cz/muni/fi/lessappcache/parser/ManifestParser.java b/src/main/java/cz/muni/fi/lessappcache/parser/ManifestParser.java index 9b6d8ec..217f9d1 100644 --- a/src/main/java/cz/muni/fi/lessappcache/parser/ManifestParser.java +++ b/src/main/java/cz/muni/fi/lessappcache/parser/ManifestParser.java @@ -143,19 +143,18 @@ public List execute() throws IOException { } /** - * Processes lesscache file. Given context describes the relative path between this file and file which imported this file + * Processes lesscache file. * * @param context * @return lines of processed manifest file in given context * @throws IOException when accessing of any file or resource stated in the lesscache file failed and application was not able to continue parsing */ - public List processFileInContextOf(Path context) throws IOException { + public List processFile() throws IOException { List processed = new ArrayList<>(); //returned Imported File has loaded lines and normalized path saved ImportedFile imported = Importer.importFile(filePath); - Path relative = PathUtils.relativizeFolders(context, imported.getFilePath()); - Path pathToImport = relative.resolve(imported.getFilePath().getFileName()); - processed.add("# Imported file: " + pathToImport); + Path parent = PathUtils.getParent(filePath); + processed.add("# Imported file: " + filePath); //make sure that imported file starts with mode set to CACHE: String oldMode = mode; if (!"CACHE:".equals(mode)) { @@ -166,30 +165,20 @@ public List processFileInContextOf(Path context) throws IOException { for (String line : imported.getLines()) { lineNumber++; try { - processed.addAll(processLine(line, relative, lineNumber)); + processed.addAll(processLine(line, parent, lineNumber)); } catch (ModuleException ex) { logger.error("Error while processing " + imported.getFilePath() + " on line " + lineNumber + ": " + ex.getMessage()); } } - processed.add("# End of imported file: " + pathToImport); + processed.add("# End of imported file: " + filePath); //make sure to get back to mode we got while importing - if (!mode.equals(oldMode) && !filePath.equals(context)) { + if (!mode.equals(oldMode)) { mode = oldMode; processed.add(oldMode); } return processed; } - /** - * Processes the file set in construstor in context of its own directory - * - * @return lines of processed manifest file - * @throws IOException when accessing of any file or resource stated in the lesscache file failed and application was not able to continue parsing - */ - public List processFile() throws IOException { - return processFileInContextOf(filePath); - } - /** * Processes line of the manifest file by executing module parsers. * @@ -207,7 +196,7 @@ public List processLine(String line, Path context, int lineNumber) throw ModuleOutput mo = m.parse(line, new ParsingContext(loadedResources, mode, context)); for (Map.Entry entry : mo.getLoadedResources().entrySet()) { - getLoadedResources().put(entry.getKey(), filePath.toString() + ", line: " + lineNumber + ", info: " + entry.getValue() + "\n"); + getLoadedResources().put(entry.getKey(), filePath.toString() + ", line: " + lineNumber + ", info: " + entry.getValue()); } if (mo.getMode() != null) { @@ -223,7 +212,7 @@ public List processLine(String line, Path context, int lineNumber) throw } break; } else { - //TODO: add? + // DEFINE: to add or not to add? //output.addAll(mo.getOutput()); } } diff --git a/src/main/java/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.java b/src/main/java/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.java index 66c947f..baaa0f0 100644 --- a/src/main/java/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.java +++ b/src/main/java/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.java @@ -32,7 +32,7 @@ public class ExplicitModule extends AbstractModule implements Module { * Constructs module and sets priority */ public ExplicitModule() { - setPriority(1.3); + setPriority(1.0); } @Override diff --git a/src/main/java/cz/muni/fi/lessappcache/parser/modules/FallbackModule.java b/src/main/java/cz/muni/fi/lessappcache/parser/modules/FallbackModule.java index 05227b8..3947206 100644 --- a/src/main/java/cz/muni/fi/lessappcache/parser/modules/FallbackModule.java +++ b/src/main/java/cz/muni/fi/lessappcache/parser/modules/FallbackModule.java @@ -36,7 +36,7 @@ public class FallbackModule extends AbstractModule implements Module { * Constructs module and sets priority */ public FallbackModule() { - setPriority(1.1); + setPriority(1.0); } @Override diff --git a/src/main/java/cz/muni/fi/lessappcache/parser/modules/FilterModule.java b/src/main/java/cz/muni/fi/lessappcache/parser/modules/FilterModule.java index 8f1c6d8..92f0276 100644 --- a/src/main/java/cz/muni/fi/lessappcache/parser/modules/FilterModule.java +++ b/src/main/java/cz/muni/fi/lessappcache/parser/modules/FilterModule.java @@ -52,7 +52,7 @@ public ModuleOutput parse(String line, ParsingContext pc) throws ModuleException output.getOutput().add(s); } } catch (FilterException ex) { - throw new ModuleException("Filter could not be loader! "+ line, ex); + throw new ModuleException("Filter could not be loaded! "+ line, ex); } catch (FilterExecutionException ex) { throw new ModuleException("Error during filter execution.", ex); } @@ -62,7 +62,7 @@ public ModuleOutput parse(String line, ParsingContext pc) throws ModuleException private List loadFilter(String line, Path context) throws FilterException, FilterExecutionException { List output = new ArrayList<>(); - String[] split = line.split(" "); + String[] split = line.split("\\s+"); //singleton FilterFactory to ensure that each filter has only one instance to support variables and so on in the future Filter filterInstance = FilterFactory.getFilterInstance(split[0]); output.addAll(filterInstance.execute(split, context)); diff --git a/src/main/java/cz/muni/fi/lessappcache/parser/modules/ImportModule.java b/src/main/java/cz/muni/fi/lessappcache/parser/modules/ImportModule.java index 871ea78..d5cd97e 100644 --- a/src/main/java/cz/muni/fi/lessappcache/parser/modules/ImportModule.java +++ b/src/main/java/cz/muni/fi/lessappcache/parser/modules/ImportModule.java @@ -20,6 +20,8 @@ import cz.muni.fi.lessappcache.parser.ManifestParser; import cz.muni.fi.lessappcache.parser.ParsingContext; import java.io.IOException; +import java.nio.file.Path; +import java.nio.file.Paths; import org.apache.log4j.Logger; /** @@ -45,7 +47,8 @@ public ModuleOutput parse(String line, ParsingContext pc) throws ModuleException if (line.startsWith("@import")) { output.setControl(ModuleControl.STOP); String url = line.replaceAll("(?i)^@import\\s+(.*)$", "$1"); - String file = (PathUtils.isAbsoluteOrRemote(url) ? "" : pc.getContext()) + url; + Path base = PathUtils.isAbsoluteOrRemote(url) ? Paths.get("") : pc.getContext(); + Path file = base.resolve(Paths.get(url)); if (Importer.isImported(file)) { logger.warn("File "+file+" already imported. Skipping..."); return output; @@ -54,7 +57,7 @@ public ModuleOutput parse(String line, ParsingContext pc) throws ModuleException try { mp.getLoadedResources().putAll(pc.getLoadedResources()); mp.setMode(pc.getMode()); - output.getOutput().addAll(mp.processFileInContextOf(pc.getContext())); + output.getOutput().addAll(mp.processFile()); output.setLoadedResources(mp.getLoadedResources()); output.setMode(mp.getMode()); } catch (IOException ex) { diff --git a/src/main/java/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.java b/src/main/java/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.java index 662b84d..17e4f3a 100644 --- a/src/main/java/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.java +++ b/src/main/java/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.java @@ -1,3 +1,4 @@ + /* * Copyright 2013 Petr Kunc. * @@ -19,6 +20,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; /** * Class representing the output of modules. Contains generated lines, newly loaded resources and mode the parser should switch to. @@ -95,4 +97,45 @@ public String getMode() { public void setMode(String mode) { this.mode = mode; } + + @Override + public int hashCode() { + int hash = 7; + hash = 37 * hash + Objects.hashCode(this.output); + hash = 37 * hash + Objects.hashCode(this.loadedResources); + hash = 37 * hash + (this.control != null ? this.control.hashCode() : 0); + hash = 37 * hash + Objects.hashCode(this.mode); + return hash; + } + + @Override + public boolean equals(Object obj) { + if (obj == null) { + return false; + } + if (getClass() != obj.getClass()) { + return false; + } + final ModuleOutput other = (ModuleOutput) obj; + if (!Objects.equals(this.output, other.output)) { + return false; + } + if (!Objects.equals(this.loadedResources.keySet(), other.loadedResources.keySet())) { + return false; + } + if (this.control != other.control) { + return false; + } + if (!Objects.equals(this.mode, other.mode)) { + return false; + } + return true; + } + + @Override + public String toString() { + return "ModuleOutput{" + "output=" + output + ", loadedResources=" + loadedResources + ", control=" + control + ", mode=" + mode + '}'; + } + + } \ No newline at end of file diff --git a/src/main/java/cz/muni/fi/lessappcache/parser/modules/NetworkModule.java b/src/main/java/cz/muni/fi/lessappcache/parser/modules/NetworkModule.java index d2fa085..73c5654 100644 --- a/src/main/java/cz/muni/fi/lessappcache/parser/modules/NetworkModule.java +++ b/src/main/java/cz/muni/fi/lessappcache/parser/modules/NetworkModule.java @@ -29,7 +29,7 @@ public class NetworkModule extends AbstractModule implements Module { * Constructs module and sets priority */ public NetworkModule() { - setPriority(1.2); + setPriority(1.0); } @Override diff --git a/src/test/java/cz/muni/fi/lessappcache/AppTest.java b/src/test/java/cz/muni/fi/lessappcache/AppTest.java deleted file mode 100644 index c9e21df..0000000 --- a/src/test/java/cz/muni/fi/lessappcache/AppTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package cz.muni.fi.lessappcache; - -import junit.framework.Test; -import junit.framework.TestCase; -import junit.framework.TestSuite; - -/** - * Unit test for simple App. - */ -public class AppTest - extends TestCase -{ - /** - * Create the test case - * - * @param testName name of the test case - */ - public AppTest( String testName ) - { - super( testName ); - } - - /** - * @return the suite of tests being tested - */ - public static Test suite() - { - return new TestSuite( AppTest.class ); - } - - /** - * Rigourous Test :-) - */ - public void testApp() - { - assertTrue( true ); - } -} diff --git a/src/test/java/cz/muni/fi/lessappcache/filesystem/PathUtilsTest.java b/src/test/java/cz/muni/fi/lessappcache/filesystem/PathUtilsTest.java new file mode 100644 index 0000000..f179384 --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/filesystem/PathUtilsTest.java @@ -0,0 +1,127 @@ +/* + * Copyright 2013 Petr Kunc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.filesystem; + +import java.nio.file.Path; +import java.nio.file.Paths; +import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.assertFalse; +import static junit.framework.Assert.assertTrue; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class PathUtilsTest extends TestCase { + + public PathUtilsTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of relativizeFolders method, of class PathUtils. + */ + public void testGetParent() { + System.out.println("testGetParent"); + Path result = PathUtils.getParent(Paths.get("")); + assertEquals(Paths.get(""), result); + result = PathUtils.getParent(Paths.get("import.lesscache")); + assertEquals(Paths.get(""), result); + result = PathUtils.getParent(Paths.get("path/import.lesscache")); + assertEquals(Paths.get("path"), result); + result = PathUtils.getParent(Paths.get("base/path/import.lesscache")); + assertEquals(Paths.get("base/path"), result); + result = PathUtils.getParent(Paths.get("../file.lesscache")); + assertEquals(Paths.get(".."), result); + result = PathUtils.getParent(Paths.get("../../file.lesscache")); + assertEquals(Paths.get("../.."), result); + result = PathUtils.getParent(Paths.get("../other/file.lesscache")); + assertEquals(Paths.get("../other"), result); + } + + /** + * Test of processResource method, of class PathUtils. + */ + public void testProcessResource() { + System.out.println("processResource"); + // Tests of absolute and remotes + assertEquals("http://www.seznam.cz", PathUtils.processResource("http://www.seznam.cz", Paths.get(""))); + assertEquals("https://a.b/q/w/e", PathUtils.processResource("https://a.b/q/w/e", Paths.get("some/context/file.lesscache"))); + assertEquals("/file", PathUtils.processResource("/file", Paths.get(""))); + assertEquals("/abs/path/file", PathUtils.processResource("/abs/path/file", Paths.get("some/context/file.lesscache"))); + // Tests relative + assertEquals(Paths.get("some/context/file.txt").toString(), PathUtils.processResource("file.txt", Paths.get("some/context"))); + assertEquals(Paths.get("some/context/file.txt").toString(), PathUtils.processResource("file.txt", Paths.get("some/context/"))); + assertEquals(Paths.get("some/file.txt").toString(), PathUtils.processResource("../file.txt", Paths.get("some/context"))); + assertEquals(Paths.get("../../file.txt").toString(), PathUtils.processResource("../file.txt", Paths.get("../"))); + assertEquals(Paths.get("../file.txt").toString(), PathUtils.processResource("file.txt", Paths.get("../"))); + } + + /** + * Test of isAbsoluteOrRemote method, of class PathUtils. + */ + public void testIsAbsoluteOrRemote() { + System.out.println("isAbsoluteOrRemote"); + assertTrue(PathUtils.isAbsoluteOrRemote("/absolute")); + assertTrue(PathUtils.isAbsoluteOrRemote("/any/absolute/paths")); + assertTrue(PathUtils.isAbsoluteOrRemote("http://www.seznam.cz")); + assertTrue(PathUtils.isAbsoluteOrRemote("https://is.muni.cz/auth/more/data")); + assertTrue(PathUtils.isAbsoluteOrRemote("ftp://server")); + assertTrue(PathUtils.isAbsoluteOrRemote("http://www.seznam.cz")); + assertFalse(PathUtils.isAbsoluteOrRemote("relative path")); + assertFalse(PathUtils.isAbsoluteOrRemote("../../data")); + assertFalse(PathUtils.isAbsoluteOrRemote("./../../data.txt")); + assertFalse(PathUtils.isAbsoluteOrRemote("relative/path")); + assertFalse(PathUtils.isAbsoluteOrRemote("relative")); + } + + /** + * Test of isAbsolute method, of class PathUtils. + */ + public void testIsAbsolute() { + System.out.println("isAbsolute"); + assertTrue(PathUtils.isAbsolute("/absolute")); + assertTrue(PathUtils.isAbsolute("/any/absolute/paths")); + assertFalse(PathUtils.isAbsolute("relative path")); + assertFalse(PathUtils.isAbsolute("../../data")); + assertFalse(PathUtils.isAbsolute("http://www.seznam.cz")); + } + + /** + * Test of isRemote method, of class PathUtils. + */ + public void testIsRemote() { + System.out.println("isRemote"); + assertTrue(PathUtils.isRemote("http://www.seznam.cz")); + assertTrue(PathUtils.isRemote("https://is.muni.cz/auth/more/data")); + assertTrue(PathUtils.isRemote("ftp://server")); + assertFalse(PathUtils.isRemote("relative/path")); + assertFalse(PathUtils.isRemote("relative")); + assertFalse(PathUtils.isRemote("/absolute/path")); + assertFalse(PathUtils.isRemote("./../../data.txt")); + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/filters/FilterClassLoaderTest.java b/src/test/java/cz/muni/fi/lessappcache/filters/FilterClassLoaderTest.java new file mode 100644 index 0000000..42d069e --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/filters/FilterClassLoaderTest.java @@ -0,0 +1,64 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.filters; + +import static junit.framework.Assert.assertEquals; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class FilterClassLoaderTest extends TestCase { + + public FilterClassLoaderTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of loadClass method, of class FilterClassLoader. + */ + public void testLoadClass() throws Exception { + System.out.println("loadClass"); + FilterClassLoader instance = new FilterClassLoader(); + Class result = instance.loadClass("@glob"); + Class expResult = GlobFilter.class; + assertEquals(expResult, result); + result = instance.loadClass("@regex"); + expResult = RegexFilter.class; + assertEquals(expResult, result); + + assertEquals(expResult, result); + expResult = RGlobFilter.class; + result = instance.loadClass("@r-glob"); + assertEquals(expResult, result); + try { + instance.loadClass("@non-existing"); + fail("Should throw exception"); + } catch (ClassNotFoundException ex) { + } + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/filters/FilterFactoryTest.java b/src/test/java/cz/muni/fi/lessappcache/filters/FilterFactoryTest.java new file mode 100644 index 0000000..4f50fa2 --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/filters/FilterFactoryTest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.filters; + +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class FilterFactoryTest extends TestCase { + + public FilterFactoryTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of getFilterInstance method, of class FilterFactory. + */ + public void testGetFilterInstance() throws Exception { + System.out.println("getFilterInstance"); + String filterName = "@glob"; + Filter result = FilterFactory.getFilterInstance(filterName); + assertTrue(result instanceof Filter); + assertTrue(result instanceof GlobFilter); + // check singletoning + Filter result2 = FilterFactory.getFilterInstance(filterName); + assertSame(result, result2); + + try { + FilterFactory.getFilterInstance("@not-existing"); + fail("Should throw exception"); + } catch(FilterException ex) { + } + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/CommentModuleTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/CommentModuleTest.java new file mode 100644 index 0000000..fceb71e --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/CommentModuleTest.java @@ -0,0 +1,63 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import cz.muni.fi.lessappcache.parser.ParsingContext; +import static junit.framework.Assert.assertEquals; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class CommentModuleTest extends TestCase { + + public CommentModuleTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of parse method, of class CommentModule. + */ + public void testParse() { + System.out.println("parse comment"); + + CommentModule instance = new CommentModule(); + + ModuleOutput expResult = new ModuleOutput(); + ModuleOutput result = instance.parse("line", new ParsingContext(null, null, null)); + expResult.setControl(ModuleControl.CONTINUE); + assertEquals(expResult, result); + + result = instance.parse("", new ParsingContext(null, null, null)); + expResult.setControl(ModuleControl.STOP); + assertEquals(expResult, result); + + result = instance.parse("# whatever", new ParsingContext(null, null, null)); + expResult.setControl(ModuleControl.STOP); + assertEquals(expResult, result); + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/ExplicitModuleTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/ExplicitModuleTest.java new file mode 100644 index 0000000..a3c227c --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/ExplicitModuleTest.java @@ -0,0 +1,81 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import cz.muni.fi.lessappcache.parser.ParsingContext; +import java.nio.file.Paths; +import java.util.HashMap; +import java.util.Map; +import static junit.framework.Assert.assertEquals; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class ExplicitModuleTest extends TestCase { + + public ExplicitModuleTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of parse method, of class ExplicitModule. + */ + public void testParse() throws Exception { + System.out.println("parse"); + + ExplicitModule instance = new ExplicitModule(); + Map loaded = new HashMap<>(); + + ModuleOutput result = instance.parse("res", new ParsingContext(null, "NETWORK:", null)); + ModuleOutput expResult = new ModuleOutput(); + expResult.setControl(ModuleControl.CONTINUE); + assertEquals(expResult, result); + + result = instance.parse("res", new ParsingContext(null, "FALLBACK:", null)); + assertEquals(expResult, result); + + result = instance.parse("res", new ParsingContext(loaded, "CACHE:", Paths.get(""))); + expResult.setControl(ModuleControl.STOP); + expResult.getOutput().add("res"); + expResult.getLoadedResources().put("res", null); + assertEquals(expResult, result); + + result = instance.parse("file", new ParsingContext(loaded, "CACHE:", Paths.get("path"))); + expResult.getOutput().clear(); + expResult.getLoadedResources().clear(); + expResult.getOutput().add(Paths.get("path/file").toString()); + expResult.getLoadedResources().put(Paths.get("path/file").toString(), null); + assertEquals(expResult, result); + + loaded.put(Paths.get("path/file").toString(), null); + result = instance.parse("file", new ParsingContext(loaded, "CACHE:", Paths.get("path"))); + expResult.getOutput().clear(); + expResult.getLoadedResources().clear(); + assertEquals(expResult, result); + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/FallbackModuleTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/FallbackModuleTest.java new file mode 100644 index 0000000..4f77a72 --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/FallbackModuleTest.java @@ -0,0 +1,94 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import cz.muni.fi.lessappcache.parser.ParsingContext; +import java.nio.file.Paths; +import java.util.HashMap; +import java.util.Map; +import static junit.framework.Assert.assertEquals; +import static junit.framework.Assert.fail; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class FallbackModuleTest extends TestCase { + + public FallbackModuleTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of parse method, of class FallbackModule. + */ + public void testParse() throws Exception { + System.out.println("parse fallback"); + + FallbackModule instance = new FallbackModule(); + Map loaded = new HashMap<>(); + + ModuleOutput result = instance.parse("res", new ParsingContext(null, "NETWORK:", null)); + ModuleOutput expResult = new ModuleOutput(); + expResult.setControl(ModuleControl.CONTINUE); + assertEquals(expResult, result); + + result = instance.parse("res", new ParsingContext(null, "CACHE:", null)); + assertEquals(expResult, result); + + try { + instance.parse("data", new ParsingContext(loaded, "FALLBACK:", Paths.get(""))); + fail("exception not thrown"); + } catch (ModuleException ex) { + } + + try { + instance.parse("data a q", new ParsingContext(loaded, "FALLBACK:", Paths.get(""))); + fail("exception not thrown"); + } catch (ModuleException ex) { + } + + result = instance.parse("/ res", new ParsingContext(loaded, "FALLBACK:", Paths.get(""))); + expResult.setControl(ModuleControl.STOP); + expResult.getOutput().add("/ res"); + expResult.getLoadedResources().put("res", null); + assertEquals(expResult, result); + + try { + instance.parse("file", new ParsingContext(loaded, "FALLBACK:", Paths.get("path"))); + fail("exc not thrown"); + } catch (ModuleException ex) { + } + + result = instance.parse("/more file", new ParsingContext(loaded, "FALLBACK:", Paths.get("path"))); + expResult.getOutput().clear(); + expResult.getLoadedResources().clear(); + expResult.getOutput().add("/more "+Paths.get("path/file").toString()); + expResult.getLoadedResources().put(Paths.get("path/file").toString(), null); + assertEquals(expResult, result); + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/FilterModuleTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/FilterModuleTest.java new file mode 100644 index 0000000..5392dbf --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/FilterModuleTest.java @@ -0,0 +1,59 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import cz.muni.fi.lessappcache.parser.ParsingContext; +import java.nio.file.Paths; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class FilterModuleTest extends TestCase { + + public FilterModuleTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of parse method, of class FilterModule. + */ + public void testParse() throws Exception { + System.out.println("parse filter"); + FilterModule instance = new FilterModule(); + ModuleOutput expResult = new ModuleOutput(); + expResult.setControl(ModuleControl.CONTINUE); + ModuleOutput result = instance.parse("data", new ParsingContext(null, null, null)); + assertEquals(expResult, result); + + try { + instance.parse("@whatever", new ParsingContext(null, null, null)); + fail("exc should be thrown"); + } catch (ModuleException ex) { + } + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/HeaderModuleTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/HeaderModuleTest.java new file mode 100644 index 0000000..3eccaa9 --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/HeaderModuleTest.java @@ -0,0 +1,68 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import cz.muni.fi.lessappcache.parser.ParsingContext; +import static junit.framework.Assert.assertEquals; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class HeaderModuleTest extends TestCase { + + public HeaderModuleTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of parse method, of class HeaderModule. + */ + public void testParse() throws Exception { + System.out.println("parse"); + HeaderModule instance = new HeaderModule(); + + ModuleOutput result = instance.parse("CACHE:", new ParsingContext(null, "CACHE:", null)); + ModuleOutput exp = new ModuleOutput(); + exp.setControl(ModuleControl.STOP); + assertEquals(exp, result); + + assertEquals(exp, instance.parse("CACHE MANIFEST", new ParsingContext(null, null, null))); + + result = instance.parse("NETWORK:", new ParsingContext(null, "FALLBACK:", null)); + exp.setControl(ModuleControl.STOP); + exp.getOutput().add("NETWORK:"); + exp.setMode("NETWORK:"); + assertEquals(exp, result); + + result = instance.parse("some line", new ParsingContext(null, "FALLBACK:", null)); + exp.setControl(ModuleControl.CONTINUE); + exp.getOutput().clear(); + exp.setMode(null); + assertEquals(exp, result); + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/ModuleLoaderTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/ModuleLoaderTest.java new file mode 100644 index 0000000..8600876 --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/ModuleLoaderTest.java @@ -0,0 +1,63 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import java.util.ArrayList; +import java.util.List; +import static junit.framework.Assert.assertEquals; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class ModuleLoaderTest extends TestCase { + + public ModuleLoaderTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of load method, of class ModuleLoader. + */ + public void testLoad() { + System.out.println("load"); + + List expected = new ArrayList<>(); + expected.add(new HeaderModule()); + expected.add(new CommentModule()); + expected.add(new ImportModule()); + expected.add(new FilterModule()); + expected.add(new ExplicitModule()); + expected.add(new NetworkModule()); + expected.add(new FallbackModule()); + expected.add(new SettingsModule()); + + List result = ModuleLoader.load(); + assertEquals(8, result.size()); + assertEquals(expected, result); + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/NetworkModuleTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/NetworkModuleTest.java new file mode 100644 index 0000000..d63e1e1 --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/NetworkModuleTest.java @@ -0,0 +1,76 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import cz.muni.fi.lessappcache.parser.ParsingContext; +import java.nio.file.Paths; +import java.util.HashMap; +import java.util.Map; +import static junit.framework.Assert.assertEquals; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class NetworkModuleTest extends TestCase { + + public NetworkModuleTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of parse method, of class NetworkModule. + */ + public void testParse() throws Exception { + System.out.println("parse network"); + + NetworkModule instance = new NetworkModule(); + + ModuleOutput result = instance.parse("whatever line", new ParsingContext(null, "CACHE:", null)); + ModuleOutput expResult = new ModuleOutput(); + expResult.setControl(ModuleControl.CONTINUE); + assertEquals(expResult, result); + + result = instance.parse("whatever line", new ParsingContext(null, "FALLBACK:", null)); + assertEquals(expResult, result); + + result = instance.parse("*", new ParsingContext((Map) new HashMap<>(), "NETWORK:", null)); + expResult.setControl(ModuleControl.STOP); + expResult.getOutput().add("*"); + assertEquals(expResult, result); + + result = instance.parse("file", new ParsingContext((Map) new HashMap<>(), "NETWORK:", Paths.get(""))); + expResult.getOutput().clear(); + expResult.getOutput().add("file"); + assertEquals(expResult, result); + + result = instance.parse("file", new ParsingContext((Map) new HashMap<>(), "NETWORK:", Paths.get("context"))); + expResult.getOutput().clear(); + expResult.getOutput().add(Paths.get("context/file").toString()); + assertEquals(expResult, result); + } +} diff --git a/src/test/java/cz/muni/fi/lessappcache/parser/modules/SettingsModuleTest.java b/src/test/java/cz/muni/fi/lessappcache/parser/modules/SettingsModuleTest.java new file mode 100644 index 0000000..55a9070 --- /dev/null +++ b/src/test/java/cz/muni/fi/lessappcache/parser/modules/SettingsModuleTest.java @@ -0,0 +1,71 @@ +/* + * Copyright 2013 Petr. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package cz.muni.fi.lessappcache.parser.modules; + +import cz.muni.fi.lessappcache.parser.ParsingContext; +import java.util.HashMap; +import java.util.Map; +import static junit.framework.Assert.assertEquals; +import junit.framework.TestCase; + +/** + * + * @author Petr + */ +public class SettingsModuleTest extends TestCase { + + public SettingsModuleTest(String testName) { + super(testName); + } + + @Override + protected void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + } + + /** + * Test of parse method, of class SettingsModule. + */ + public void testParse() { + System.out.println("parse settings"); + + ParsingContext pc = new ParsingContext((Map) new HashMap<>(), "SETTINGS:", null); + SettingsModule instance = new SettingsModule(); + + ModuleOutput expResult = new ModuleOutput(); + expResult.setControl(ModuleControl.STOP); + expResult.getOutput().add("prefer-online"); + ModuleOutput result = instance.parse("prefer-online", pc); + assertEquals(expResult, result); + + pc.setMode("CACHE:"); + ModuleOutput exp2 = new ModuleOutput(); + exp2.setControl(ModuleControl.CONTINUE); + result = instance.parse("anything", pc); + assertEquals(exp2, result); + + pc.setMode("SETTINGS:"); + ModuleOutput exp3 = new ModuleOutput(); + exp3.setControl(ModuleControl.STOP); + result = instance.parse("not-existing-setting", pc); + assertEquals(exp3, result); + } +} diff --git a/target/LessAppcache-1.0-jar-with-dependencies.jar b/target/LessAppcache-1.0-jar-with-dependencies.jar deleted file mode 100644 index 18f7c03..0000000 Binary files a/target/LessAppcache-1.0-jar-with-dependencies.jar and /dev/null differ diff --git a/target/LessAppcache-1.0.jar b/target/LessAppcache-1.0.jar new file mode 100644 index 0000000..6450f71 Binary files /dev/null and b/target/LessAppcache-1.0.jar differ diff --git a/target/classes/cz/muni/fi/lessappcache/Main.class b/target/classes/cz/muni/fi/lessappcache/Main.class deleted file mode 100644 index 797943f..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/Main.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filesystem/FileUtils.class b/target/classes/cz/muni/fi/lessappcache/filesystem/FileUtils.class deleted file mode 100644 index 0f4511f..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filesystem/FileUtils.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filesystem/PathUtils.class b/target/classes/cz/muni/fi/lessappcache/filesystem/PathUtils.class deleted file mode 100644 index 24b511c..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filesystem/PathUtils.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkDir$1.class b/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkDir$1.class deleted file mode 100644 index d534762..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkDir$1.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkDir.class b/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkDir.class deleted file mode 100644 index 3e2e97f..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkDir.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkTree$Finder.class b/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkTree$Finder.class deleted file mode 100644 index 56575ac..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkTree$Finder.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkTree.class b/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkTree.class deleted file mode 100644 index d73f2ca..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/AbstractWalkTree.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/Filter.class b/target/classes/cz/muni/fi/lessappcache/filters/Filter.class deleted file mode 100644 index fc5f122..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/Filter.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/FilterClassLoader.class b/target/classes/cz/muni/fi/lessappcache/filters/FilterClassLoader.class deleted file mode 100644 index 10ca57a..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/FilterClassLoader.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/FilterException.class b/target/classes/cz/muni/fi/lessappcache/filters/FilterException.class deleted file mode 100644 index c76006c..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/FilterException.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/FilterExecutionException.class b/target/classes/cz/muni/fi/lessappcache/filters/FilterExecutionException.class deleted file mode 100644 index 89c804b..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/FilterExecutionException.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/FilterFactory.class b/target/classes/cz/muni/fi/lessappcache/filters/FilterFactory.class deleted file mode 100644 index 6a5e62c..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/FilterFactory.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/GlobFilter.class b/target/classes/cz/muni/fi/lessappcache/filters/GlobFilter.class deleted file mode 100644 index 964eecc..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/GlobFilter.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/RGlobFilter.class b/target/classes/cz/muni/fi/lessappcache/filters/RGlobFilter.class deleted file mode 100644 index 65c9987..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/RGlobFilter.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/RRegex.class b/target/classes/cz/muni/fi/lessappcache/filters/RRegex.class deleted file mode 100644 index c73a319..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/RRegex.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/filters/RegexFilter.class b/target/classes/cz/muni/fi/lessappcache/filters/RegexFilter.class deleted file mode 100644 index 0822a87..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/filters/RegexFilter.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/importer/ImportedFile.class b/target/classes/cz/muni/fi/lessappcache/importer/ImportedFile.class deleted file mode 100644 index de06640..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/importer/ImportedFile.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/importer/Importer.class b/target/classes/cz/muni/fi/lessappcache/importer/Importer.class deleted file mode 100644 index 6fb7e55..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/importer/Importer.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/FileNotFoundException.class b/target/classes/cz/muni/fi/lessappcache/parser/FileNotFoundException.class deleted file mode 100644 index aeffb6b..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/FileNotFoundException.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/ManifestParser.class b/target/classes/cz/muni/fi/lessappcache/parser/ManifestParser.class deleted file mode 100644 index 2277064..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/ManifestParser.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/ParsingContext.class b/target/classes/cz/muni/fi/lessappcache/parser/ParsingContext.class deleted file mode 100644 index 631ac25..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/ParsingContext.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/AbstractModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/AbstractModule.class deleted file mode 100644 index 0bbc76d..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/AbstractModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/CommentModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/CommentModule.class deleted file mode 100644 index 0c158cf..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/CommentModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.class deleted file mode 100644 index ce895e1..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/FallbackModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/FallbackModule.class deleted file mode 100644 index 6cb1ef5..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/FallbackModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/FilterModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/FilterModule.class deleted file mode 100644 index cef870e..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/FilterModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/HeaderModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/HeaderModule.class deleted file mode 100644 index 20bea2a..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/HeaderModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ImportModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ImportModule.class deleted file mode 100644 index 7da2dc5..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ImportModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/Module.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/Module.class deleted file mode 100644 index 3f6bf57..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/Module.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleControl.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleControl.class deleted file mode 100644 index b9240f4..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleControl.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleException.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleException.class deleted file mode 100644 index f3e5c94..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleException.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoader$1.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoader$1.class deleted file mode 100644 index 54de648..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoader$1.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoader.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoader.class deleted file mode 100644 index 473248d..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoader.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.class deleted file mode 100644 index f0ca394..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModulePhases.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/ModulePhases.class deleted file mode 100644 index 7514805..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/ModulePhases.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/NetworkModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/NetworkModule.class deleted file mode 100644 index 9f539e3..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/NetworkModule.class and /dev/null differ diff --git a/target/classes/cz/muni/fi/lessappcache/parser/modules/SettingsModule.class b/target/classes/cz/muni/fi/lessappcache/parser/modules/SettingsModule.class deleted file mode 100644 index 8040c1d..0000000 Binary files a/target/classes/cz/muni/fi/lessappcache/parser/modules/SettingsModule.class and /dev/null differ diff --git a/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml b/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml deleted file mode 100644 index 8b89c97..0000000 --- a/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - src/main/javadoc - diff --git a/target/javadoc-bundle-options/package-list b/target/javadoc-bundle-options/package-list deleted file mode 100644 index 364356e..0000000 --- a/target/javadoc-bundle-options/package-list +++ /dev/null @@ -1,209 +0,0 @@ -java.applet -java.awt -java.awt.color -java.awt.datatransfer -java.awt.dnd -java.awt.event -java.awt.font -java.awt.geom -java.awt.im -java.awt.im.spi -java.awt.image -java.awt.image.renderable -java.awt.print -java.beans -java.beans.beancontext -java.io -java.lang -java.lang.annotation -java.lang.instrument -java.lang.invoke -java.lang.management -java.lang.ref -java.lang.reflect -java.math -java.net -java.nio -java.nio.channels -java.nio.channels.spi -java.nio.charset -java.nio.charset.spi -java.nio.file -java.nio.file.attribute -java.nio.file.spi -java.rmi -java.rmi.activation -java.rmi.dgc -java.rmi.registry -java.rmi.server -java.security -java.security.acl -java.security.cert -java.security.interfaces -java.security.spec -java.sql -java.text -java.text.spi -java.util -java.util.concurrent -java.util.concurrent.atomic -java.util.concurrent.locks -java.util.jar -java.util.logging -java.util.prefs -java.util.regex -java.util.spi -java.util.zip -javax.accessibility -javax.activation -javax.activity -javax.annotation -javax.annotation.processing -javax.crypto -javax.crypto.interfaces -javax.crypto.spec -javax.imageio -javax.imageio.event -javax.imageio.metadata -javax.imageio.plugins.bmp -javax.imageio.plugins.jpeg -javax.imageio.spi -javax.imageio.stream -javax.jws -javax.jws.soap -javax.lang.model -javax.lang.model.element -javax.lang.model.type -javax.lang.model.util -javax.management -javax.management.loading -javax.management.modelmbean -javax.management.monitor -javax.management.openmbean -javax.management.relation -javax.management.remote -javax.management.remote.rmi -javax.management.timer -javax.naming -javax.naming.directory -javax.naming.event -javax.naming.ldap -javax.naming.spi -javax.net -javax.net.ssl -javax.print -javax.print.attribute -javax.print.attribute.standard -javax.print.event -javax.rmi -javax.rmi.CORBA -javax.rmi.ssl -javax.script -javax.security.auth -javax.security.auth.callback -javax.security.auth.kerberos -javax.security.auth.login -javax.security.auth.spi -javax.security.auth.x500 -javax.security.cert -javax.security.sasl -javax.sound.midi -javax.sound.midi.spi -javax.sound.sampled -javax.sound.sampled.spi -javax.sql -javax.sql.rowset -javax.sql.rowset.serial -javax.sql.rowset.spi -javax.swing -javax.swing.border -javax.swing.colorchooser -javax.swing.event -javax.swing.filechooser -javax.swing.plaf -javax.swing.plaf.basic -javax.swing.plaf.metal -javax.swing.plaf.multi -javax.swing.plaf.nimbus -javax.swing.plaf.synth -javax.swing.table -javax.swing.text -javax.swing.text.html -javax.swing.text.html.parser -javax.swing.text.rtf -javax.swing.tree -javax.swing.undo -javax.tools -javax.transaction -javax.transaction.xa -javax.xml -javax.xml.bind -javax.xml.bind.annotation -javax.xml.bind.annotation.adapters -javax.xml.bind.attachment -javax.xml.bind.helpers -javax.xml.bind.util -javax.xml.crypto -javax.xml.crypto.dom -javax.xml.crypto.dsig -javax.xml.crypto.dsig.dom -javax.xml.crypto.dsig.keyinfo -javax.xml.crypto.dsig.spec -javax.xml.datatype -javax.xml.namespace -javax.xml.parsers -javax.xml.soap -javax.xml.stream -javax.xml.stream.events -javax.xml.stream.util -javax.xml.transform -javax.xml.transform.dom -javax.xml.transform.sax -javax.xml.transform.stax -javax.xml.transform.stream -javax.xml.validation -javax.xml.ws -javax.xml.ws.handler -javax.xml.ws.handler.soap -javax.xml.ws.http -javax.xml.ws.soap -javax.xml.ws.spi -javax.xml.ws.spi.http -javax.xml.ws.wsaddressing -javax.xml.xpath -org.ietf.jgss -org.omg.CORBA -org.omg.CORBA.DynAnyPackage -org.omg.CORBA.ORBPackage -org.omg.CORBA.TypeCodePackage -org.omg.CORBA.portable -org.omg.CORBA_2_3 -org.omg.CORBA_2_3.portable -org.omg.CosNaming -org.omg.CosNaming.NamingContextExtPackage -org.omg.CosNaming.NamingContextPackage -org.omg.Dynamic -org.omg.DynamicAny -org.omg.DynamicAny.DynAnyFactoryPackage -org.omg.DynamicAny.DynAnyPackage -org.omg.IOP -org.omg.IOP.CodecFactoryPackage -org.omg.IOP.CodecPackage -org.omg.Messaging -org.omg.PortableInterceptor -org.omg.PortableInterceptor.ORBInitInfoPackage -org.omg.PortableServer -org.omg.PortableServer.CurrentPackage -org.omg.PortableServer.POAManagerPackage -org.omg.PortableServer.POAPackage -org.omg.PortableServer.ServantLocatorPackage -org.omg.PortableServer.portable -org.omg.SendingContext -org.omg.stub.java.rmi -org.w3c.dom -org.w3c.dom.bootstrap -org.w3c.dom.events -org.w3c.dom.ls -org.xml.sax -org.xml.sax.ext -org.xml.sax.helpers \ No newline at end of file diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..1dbad6b --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Sat May 25 21:50:50 CEST 2013 +version=1.0 +groupId=cz.muni.fi +artifactId=LessAppcache diff --git a/target/site/apidocs/allclasses-frame.html b/target/site/apidocs/allclasses-frame.html deleted file mode 100644 index b443724..0000000 --- a/target/site/apidocs/allclasses-frame.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - -All Classes (LessAppcache 1.0 API) - - - - -

All Classes

- - - diff --git a/target/site/apidocs/allclasses-noframe.html b/target/site/apidocs/allclasses-noframe.html deleted file mode 100644 index b27028b..0000000 --- a/target/site/apidocs/allclasses-noframe.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - -All Classes (LessAppcache 1.0 API) - - - - -

All Classes

- - - diff --git a/target/site/apidocs/constant-values.html b/target/site/apidocs/constant-values.html deleted file mode 100644 index efc214e..0000000 --- a/target/site/apidocs/constant-values.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - -Constant Field Values (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Constant Field Values

-

Contents

- -
-
- - -

cz.muni.*

-
    -
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    cz.muni.fi.lessappcache.parser.modules.ModulePhases 
    Modifier and TypeConstant FieldValue
    - -public static final doubleEND0.0
    - -public static final doublePRE_COMMENT9.0
    - -public static final doublePRE_FILTER5.0
    - -public static final doublePRE_IMPORT7.0
    - -public static final doublePRE_RESOURCE3.0
    - -public static final doubleSTART10.0
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/Main.html b/target/site/apidocs/cz/muni/fi/lessappcache/Main.html deleted file mode 100644 index 1a96c96..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/Main.html +++ /dev/null @@ -1,268 +0,0 @@ - - - - - - -Main (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache
-

Class Main

-
-
- -
-
    -
  • -
    -
    -
    public class Main
    -extends Object
    -
    Main static class defined as executable in maven when JAR package is created
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Main

        -
        public Main()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        main

        -
        public static void main(String[] args)
        -
        Main method must have at least one argument: - lesscache file - it is parsed against actual directory! - Second is mandatory - absolute path
        -
        Parameters:
        args - array of parameters
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/class-use/Main.html b/target/site/apidocs/cz/muni/fi/lessappcache/class-use/Main.html deleted file mode 100644 index edad826..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/class-use/Main.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.Main (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.Main

-
-
No usage of cz.muni.fi.lessappcache.Main
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/FileUtils.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/FileUtils.html deleted file mode 100644 index f49269e..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/FileUtils.html +++ /dev/null @@ -1,330 +0,0 @@ - - - - - - -FileUtils (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filesystem
-

Class FileUtils

-
-
- -
-
    -
  • -
    -
    -
    public class FileUtils
    -extends Object
    -
    Util file for reading and writing files
    -
    Author:
    -
    Petr Kunt
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        ENCODING

        -
        public static final Charset ENCODING
        -
        Encoding of loaded files
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        FileUtils

        -
        public FileUtils()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        readFile

        -
        public static List<String> readFile(Path filePath)
        -                             throws IOException
        -
        Reads file on given path.
        -
        Parameters:
        filePath - path to the file to be read
        -
        Returns:
        read list of lines
        -
        Throws:
        -
        IOException - if there was a problem during reading the file
        -
      • -
      - - - -
        -
      • -

        writeFile

        -
        public static void writeFile(List<String> lines,
        -             Path filePath)
        -                      throws IOException
        -
        Writes lines to file on given path
        -
        Parameters:
        lines - list of lines to be written in the file
        filePath - path to the file to be written
        -
        Throws:
        -
        IOException - if there was a problem during accesing the file
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/PathUtils.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/PathUtils.html deleted file mode 100644 index c8681de..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/PathUtils.html +++ /dev/null @@ -1,349 +0,0 @@ - - - - - - -PathUtils (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filesystem
-

Class PathUtils

-
-
- -
-
    -
  • -
    -
    -
    public class PathUtils
    -extends Object
    -
    Utils for processing the paths or string representations of paths as needed - in the modules.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        PathUtils

        -
        public PathUtils()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        relativizeFolders

        -
        public static Path relativizeFolders(Path basePath,
        -                     Path otherPath)
        -
        Constructs a relative path between two folders. The relativize method - in the path class does not work properly as if given file "a.txt" and "b.txt" - in the same folder it relativizes as "../" - In future this method could be replaced by absolutization and the relativizing.
        -
        Parameters:
        basePath - the path to be relativized against
        otherPath - the path to be relativized
        -
        Returns:
        Path describing the relative path from one folder to other one.
        -
      • -
      - - - -
        -
      • -

        processResource

        -
        public static String processResource(String resource,
        -                     Path context)
        -
        Relativize the process against given context
        -
        Parameters:
        resource - file name to be processed
        context - relative context
        -
        Returns:
        relativized resource
        -
      • -
      - - - -
        -
      • -

        isAbsoluteOrRemote

        -
        public static boolean isAbsoluteOrRemote(String resource)
        -
        Helper method to discover whether given resource - is absolute or remote. See isAbsolute - and isRemote methods
        -
        Parameters:
        resource - to be analyzed
        -
        Returns:
        true if the resource is remote or absolute, false otherwise
        -
      • -
      - - - -
        -
      • -

        isAbsolute

        -
        public static boolean isAbsolute(String resource)
        -
        Checks whether the resource is absolute (whether starts with "/")
        -
        Parameters:
        resource - to be analyzed
        -
        Returns:
        true if is absolute, false otherwise
        -
      • -
      - - - -
        -
      • -

        isRemote

        -
        public static boolean isRemote(String resource)
        -
        Checks whether the resource is remote (whether contains with "://")
        -
        Parameters:
        resource - to be analyzed
        -
        Returns:
        true if is remote, false otherwise
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/class-use/FileUtils.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/class-use/FileUtils.html deleted file mode 100644 index 515cfb2..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/class-use/FileUtils.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filesystem.FileUtils (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filesystem.FileUtils

-
-
No usage of cz.muni.fi.lessappcache.filesystem.FileUtils
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/class-use/PathUtils.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/class-use/PathUtils.html deleted file mode 100644 index 413402d..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/class-use/PathUtils.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filesystem.PathUtils (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filesystem.PathUtils

-
-
No usage of cz.muni.fi.lessappcache.filesystem.PathUtils
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-frame.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-frame.html deleted file mode 100644 index 736fea5..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.filesystem (LessAppcache 1.0 API) - - - - -

cz.muni.fi.lessappcache.filesystem

-
-

Classes

- -
- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-summary.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-summary.html deleted file mode 100644 index 598ec8e..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-summary.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.filesystem (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Package cz.muni.fi.lessappcache.filesystem

-
-
-
    -
  • - - - - - - - - - - - - - - - - -
    Class Summary 
    ClassDescription
    FileUtils -
    Util file for reading and writing files
    -
    PathUtils -
    Utils for processing the paths or string representations of paths as needed - in the modules.
    -
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-tree.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-tree.html deleted file mode 100644 index d302c84..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-tree.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.filesystem Class Hierarchy (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package cz.muni.fi.lessappcache.filesystem

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-use.html b/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-use.html deleted file mode 100644 index 1ab87fc..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filesystem/package-use.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Package cz.muni.fi.lessappcache.filesystem (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Package
cz.muni.fi.lessappcache.filesystem

-
-
No usage of cz.muni.fi.lessappcache.filesystem
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/AbstractWalkDir.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/AbstractWalkDir.html deleted file mode 100644 index f9ce88a..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/AbstractWalkDir.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - -AbstractWalkDir (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class AbstractWalkDir

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Filter
    -
    -
    -
    Direct Known Subclasses:
    -
    GlobFilter, RegexFilter
    -
    -
    -
    -
    public abstract class AbstractWalkDir
    -extends Object
    -implements Filter
    -
    Abstract class for listing contents of one directory
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        AbstractWalkDir

        -
        public AbstractWalkDir()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public List<String> execute(String[] args,
        -                   Path context)
        -                     throws FilterExecutionException
        -
        Executor of filter, walks given directory and finds all files matching pattern
        -
        -
        Specified by:
        -
        execute in interface Filter
        -
        Parameters:
        args - must contain three arguments, 0 - name of filter, 1 - path to directory to be walked, 2 - (regex | glob):pattern
        context - of imported file against the main processed file
        -
        Returns:
        list of files in the directory (subdirectories and symbolic links are ommited)
        -
        Throws:
        -
        FilterExecutionException - if there was a problem accessing the directory
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/AbstractWalkTree.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/AbstractWalkTree.html deleted file mode 100644 index 9d9bbad..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/AbstractWalkTree.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - -AbstractWalkTree (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class AbstractWalkTree

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Filter
    -
    -
    -
    Direct Known Subclasses:
    -
    RGlobFilter, RRegex
    -
    -
    -
    -
    public abstract class AbstractWalkTree
    -extends Object
    -implements Filter
    -
    Abstract class for listing contents of directory tree
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        AbstractWalkTree

        -
        public AbstractWalkTree()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public List<String> execute(String[] args,
        -                   Path context)
        -                     throws FilterExecutionException
        -
        Executor of filter, walks given directory and its subdirectories and finds all files matching pattern
        -
        -
        Specified by:
        -
        execute in interface Filter
        -
        Parameters:
        args - must contain three arguments, (0 - name of filter), 1 - path to directory to be walked, 2 - type of matcher (regex or glob)
        context - of imported file against the main processed file
        -
        Returns:
        list of files in the directory and subdirectories, (subdirecotires themselves and symbolic links are ommited)
        -
        Throws:
        -
        FilterExecutionException - if there was a problem accessing the directory
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/Filter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/Filter.html deleted file mode 100644 index 7b331a7..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/Filter.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - -Filter (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Interface Filter

-
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      List<String>execute(String[] args, - Path context) -
      Executes the filter.
      -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        List<String> execute(String[] args,
        -                   Path context)
        -                     throws FilterExecutionException
        -
        Executes the filter.
        -
        Parameters:
        args - variable number of arguments. First one is always name of the filter
        context - of imported file against the main processed file
        -
        Returns:
        list of lines to be added in the output
        -
        Throws:
        -
        FilterExecutionException - if anything goes wrong in the filter and filter cannot continue
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterClassLoader.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterClassLoader.html deleted file mode 100644 index a3a3101..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterClassLoader.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - -FilterClassLoader (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class FilterClassLoader

-
-
- -
-
    -
  • -
    -
    -
    public class FilterClassLoader
    -extends ClassLoader
    -
    Class loader for filters. It seeks given filter name in package cz.muni.fi.lesscache.filters - Given filename is in format prefix-name-etc and is translated to PrefixNameEtc class name
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
- -
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterException.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterException.html deleted file mode 100644 index f7c9875..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterException.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - -FilterException (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class FilterException

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Serializable
    -
    -
    -
    -
    public class FilterException
    -extends Exception
    -
    Exception should be thrown when an error while loading filter was encountered
    -
    Author:
    -
    Petr Kunc
    -
    See Also:
    Serialized Form
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        FilterException

        -
        public FilterException()
        -
        Empty constructor
        -
      • -
      - - - -
        -
      • -

        FilterException

        -
        public FilterException(String message)
        -
        Constructs exception with the message
        -
        Parameters:
        message - detail message
        -
      • -
      - - - -
        -
      • -

        FilterException

        -
        public FilterException(String message,
        -               Throwable cause)
        -
        Constructs the exception with message and cause
        -
        Parameters:
        message - detail message
        cause - original exception
        -
      • -
      - - - -
        -
      • -

        FilterException

        -
        public FilterException(Throwable cause)
        -
        Constructs the exception with cause of the exception
        -
        Parameters:
        cause - original exception
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterExecutionException.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterExecutionException.html deleted file mode 100644 index 75da7cd..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterExecutionException.html +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - -FilterExecutionException (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class FilterExecutionException

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Serializable
    -
    -
    -
    -
    public class FilterExecutionException
    -extends Exception
    -
    Exception should be thrown whenever instance of filter cannot continue its execution - because of any problem.
    -
    Author:
    -
    Petr Kunc
    -
    See Also:
    Serialized Form
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        FilterExecutionException

        -
        public FilterExecutionException()
        -
        Empty constructor
        -
      • -
      - - - -
        -
      • -

        FilterExecutionException

        -
        public FilterExecutionException(String message)
        -
        Constructs exception with the message
        -
        Parameters:
        message - detail message
        -
      • -
      - - - -
        -
      • -

        FilterExecutionException

        -
        public FilterExecutionException(String message,
        -                        Throwable cause)
        -
        Constructs the exception with message and cause
        -
        Parameters:
        message - detail message
        cause - original exception
        -
      • -
      - - - -
        -
      • -

        FilterExecutionException

        -
        public FilterExecutionException(Throwable cause)
        -
        Constructs the exception with cause of the exception
        -
        Parameters:
        cause - original exception
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterFactory.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterFactory.html deleted file mode 100644 index 17213db..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/FilterFactory.html +++ /dev/null @@ -1,270 +0,0 @@ - - - - - - -FilterFactory (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class FilterFactory

-
-
- -
-
    -
  • -
    -
    -
    public class FilterFactory
    -extends Object
    -
    Factory for filters. This class is responsible for loading needed filters when requested - and ensures that they are loaded as singletons.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        FilterFactory

        -
        public FilterFactory()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getFilterInstance

        -
        public static Filter getFilterInstance(String filterName)
        -                                throws FilterException
        -
        Loads given filter by name. Filters accessed by this method are loaded as singletons.
        -
        Parameters:
        filterName - name of filter
        -
        Returns:
        Filter loaded by name
        -
        Throws:
        -
        FilterException - when given filter is not found or cannot be instantiated or accessed
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/GlobFilter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/GlobFilter.html deleted file mode 100644 index 8d4d2e3..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/GlobFilter.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - -GlobFilter (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class GlobFilter

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Filter
    -
    -
    -
    -
    public class GlobFilter
    -extends AbstractWalkDir
    -implements Filter
    -
    Filter for listing contents of one directory matching given glob pattern - called as @glob path pattern
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        GlobFilter

        -
        public GlobFilter()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public List<String> execute(String[] args,
        -                   Path context)
        -                     throws FilterExecutionException
        -
        Executor of filter, walks given directory and finds all files matching given glob pattern
        -
        -
        Specified by:
        -
        execute in interface Filter
        -
        Overrides:
        -
        execute in class AbstractWalkDir
        -
        Parameters:
        args - must contain three arguments, (0 - name of filter), 1 - path to directory to be walked, 2 - glob pattern
        context - of imported file against the main processed file
        -
        Returns:
        list of files in the directory (subdirectories and symbolic links are ommited)
        -
        Throws:
        -
        FilterExecutionException - if there was a problem accessing the directory
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/RGlobFilter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/RGlobFilter.html deleted file mode 100644 index 7110a85..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/RGlobFilter.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - -RGlobFilter (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class RGlobFilter

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Filter
    -
    -
    -
    -
    public class RGlobFilter
    -extends AbstractWalkTree
    -implements Filter
    -
    Filter for listing contents of directory tree matching given glob filter - called as @r-glob path pattern
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        RGlobFilter

        -
        public RGlobFilter()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public List<String> execute(String[] args,
        -                   Path context)
        -                     throws FilterExecutionException
        -
        Executor of filter, walks given directory and its subdirectories and finds all files matching given glob pattern
        -
        -
        Specified by:
        -
        execute in interface Filter
        -
        Overrides:
        -
        execute in class AbstractWalkTree
        -
        Parameters:
        args - must contain three arguments, (0 - name of filter), 1 - path to directory to be walked, 2 - glob pattern
        context - of imported file against the main processed file
        -
        Returns:
        list of files in the directory and subdirectories, (subdirecotires themselves and symbolic links are ommited)
        -
        Throws:
        -
        FilterExecutionException - if there was a problem accessing the directory
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/RRegex.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/RRegex.html deleted file mode 100644 index b6b5d82..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/RRegex.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - -RRegex (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class RRegex

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Filter
    -
    -
    -
    -
    public class RRegex
    -extends AbstractWalkTree
    -implements Filter
    -
    Filter for listing contents of directory tree matching given regex filter - called as @r-regex path pattern
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        RRegex

        -
        public RRegex()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public List<String> execute(String[] args,
        -                   Path context)
        -                     throws FilterExecutionException
        -
        Executor of filter, walks given directory and its subdirectories and finds all files matching given regex pattern
        -
        -
        Specified by:
        -
        execute in interface Filter
        -
        Overrides:
        -
        execute in class AbstractWalkTree
        -
        Parameters:
        args - must contain three arguments, (0 - name of filter), 1 - path to directory to be walked, 2 - regex pattern
        context - of imported file against the main processed file
        -
        Returns:
        list of files in the directory and subdirectories, (subdirecotires themselves and symbolic links are ommited)
        -
        Throws:
        -
        FilterExecutionException - if there was a problem accessing the directory
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/RegexFilter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/RegexFilter.html deleted file mode 100644 index 1bd0938..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/RegexFilter.html +++ /dev/null @@ -1,287 +0,0 @@ - - - - - - -RegexFilter (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.filters
-

Class RegexFilter

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Filter
    -
    -
    -
    -
    public class RegexFilter
    -extends AbstractWalkDir
    -implements Filter
    -
    Filter for listing contents of one directory matching given regex pattern - called as @regex path pattern
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        RegexFilter

        -
        public RegexFilter()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        execute

        -
        public List<String> execute(String[] args,
        -                   Path context)
        -                     throws FilterExecutionException
        -
        Executor of filter, walks given directory and finds all files matching given regex pattern
        -
        -
        Specified by:
        -
        execute in interface Filter
        -
        Overrides:
        -
        execute in class AbstractWalkDir
        -
        Parameters:
        args - must contain three arguments, (0 - name of filter), 1 - path to directory to be walked, 2 - regex pattern
        context - of imported file against the main processed file
        -
        Returns:
        list of files in the directory (subdirectories and symbolic links are ommited)
        -
        Throws:
        -
        FilterExecutionException - if there was a problem accessing the directory
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/AbstractWalkDir.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/AbstractWalkDir.html deleted file mode 100644 index 0c82857..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/AbstractWalkDir.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.AbstractWalkDir (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.AbstractWalkDir

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/AbstractWalkTree.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/AbstractWalkTree.html deleted file mode 100644 index 47452e0..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/AbstractWalkTree.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.AbstractWalkTree (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.AbstractWalkTree

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/Filter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/Filter.html deleted file mode 100644 index e2644db..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/Filter.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - -Uses of Interface cz.muni.fi.lessappcache.filters.Filter (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Interface
cz.muni.fi.lessappcache.filters.Filter

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterClassLoader.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterClassLoader.html deleted file mode 100644 index e0c9c2b..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterClassLoader.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.FilterClassLoader (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.FilterClassLoader

-
-
No usage of cz.muni.fi.lessappcache.filters.FilterClassLoader
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterException.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterException.html deleted file mode 100644 index 563ca50..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterException.html +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.FilterException (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.FilterException

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterExecutionException.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterExecutionException.html deleted file mode 100644 index 5937041..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterExecutionException.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.FilterExecutionException (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.FilterExecutionException

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterFactory.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterFactory.html deleted file mode 100644 index fa066a7..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/FilterFactory.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.FilterFactory (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.FilterFactory

-
-
No usage of cz.muni.fi.lessappcache.filters.FilterFactory
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/GlobFilter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/GlobFilter.html deleted file mode 100644 index 6d7de73..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/GlobFilter.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.GlobFilter (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.GlobFilter

-
-
No usage of cz.muni.fi.lessappcache.filters.GlobFilter
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RGlobFilter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RGlobFilter.html deleted file mode 100644 index c8e9b16..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RGlobFilter.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.RGlobFilter (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.RGlobFilter

-
-
No usage of cz.muni.fi.lessappcache.filters.RGlobFilter
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RRegex.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RRegex.html deleted file mode 100644 index 9f6c080..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RRegex.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.RRegex (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.RRegex

-
-
No usage of cz.muni.fi.lessappcache.filters.RRegex
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RegexFilter.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RegexFilter.html deleted file mode 100644 index a49dc39..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/class-use/RegexFilter.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.filters.RegexFilter (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.filters.RegexFilter

-
-
No usage of cz.muni.fi.lessappcache.filters.RegexFilter
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-frame.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-frame.html deleted file mode 100644 index 4683539..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-frame.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.filters (LessAppcache 1.0 API) - - - - -

cz.muni.fi.lessappcache.filters

- - - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-summary.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-summary.html deleted file mode 100644 index c2f90ea..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-summary.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.filters (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Package cz.muni.fi.lessappcache.filters

-
-
-
    -
  • - - - - - - - - - - - - -
    Interface Summary 
    InterfaceDescription
    Filter -
    Filter interface.
    -
    -
  • -
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Class Summary 
    ClassDescription
    AbstractWalkDir -
    Abstract class for listing contents of one directory
    -
    AbstractWalkTree -
    Abstract class for listing contents of directory tree
    -
    FilterClassLoader -
    Class loader for filters.
    -
    FilterFactory -
    Factory for filters.
    -
    GlobFilter -
    Filter for listing contents of one directory matching given glob pattern - called as @glob path pattern
    -
    RegexFilter -
    Filter for listing contents of one directory matching given regex pattern - called as @regex path pattern
    -
    RGlobFilter -
    Filter for listing contents of directory tree matching given glob filter - called as @r-glob path pattern
    -
    RRegex -
    Filter for listing contents of directory tree matching given regex filter - called as @r-regex path pattern
    -
    -
  • -
  • - - - - - - - - - - - - - - - - -
    Exception Summary 
    ExceptionDescription
    FilterException -
    Exception should be thrown when an error while loading filter was encountered
    -
    FilterExecutionException -
    Exception should be thrown whenever instance of filter cannot continue its execution - because of any problem.
    -
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-tree.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-tree.html deleted file mode 100644 index 1e7540f..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-tree.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.filters Class Hierarchy (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package cz.muni.fi.lessappcache.filters

-Package Hierarchies: - -
-
-

Class Hierarchy

- -

Interface Hierarchy

-
    -
  • cz.muni.fi.lessappcache.filters.Filter
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-use.html b/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-use.html deleted file mode 100644 index b124b90..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/filters/package-use.html +++ /dev/null @@ -1,173 +0,0 @@ - - - - - - -Uses of Package cz.muni.fi.lessappcache.filters (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Package
cz.muni.fi.lessappcache.filters

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/ImportedFile.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/ImportedFile.html deleted file mode 100644 index 1e5ee1b..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/ImportedFile.html +++ /dev/null @@ -1,350 +0,0 @@ - - - - - - -ImportedFile (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.importer
-

Class ImportedFile

-
-
- -
-
    -
  • -
    -
    -
    public class ImportedFile
    -extends Object
    -
    This class represents file loaded in the manifest parser containing its lines and path.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ImportedFile

        -
        public ImportedFile()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getLines

        -
        public List<String> getLines()
        -
        Getter for lines
        -
        Returns:
        list of imported lines
        -
      • -
      - - - -
        -
      • -

        setLines

        -
        public void setLines(List<String> lines)
        -
        Setter for lines
        -
        Parameters:
        lines - contains lines to be set
        -
      • -
      - - - -
        -
      • -

        getFilePath

        -
        public Path getFilePath()
        -
        Getter for filePath
        -
        Returns:
        path of imported file
        -
      • -
      - - - -
        -
      • -

        setFilePath

        -
        public void setFilePath(Path filePath)
        -
        Setter for filePath
        -
        Parameters:
        filePath - contains path of imported file
        -
      • -
      - - - -
        -
      • -

        hashCode

        -
        public int hashCode()
        -
        -
        Overrides:
        -
        hashCode in class Object
        -
        -
      • -
      - - - -
        -
      • -

        equals

        -
        public boolean equals(Object obj)
        -
        -
        Overrides:
        -
        equals in class Object
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/Importer.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/Importer.html deleted file mode 100644 index 29aa411..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/Importer.html +++ /dev/null @@ -1,325 +0,0 @@ - - - - - - -Importer (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.importer
-

Class Importer

-
-
- -
-
    -
  • -
    -
    -
    public class Importer
    -extends Object
    -
    Class for loading files to import in the manifest parser.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        Importer

        -
        public Importer()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        isImported

        -
        public static boolean isImported(Path filePath)
        -
        Method serves to detect whether given file is already imported
        -
        Parameters:
        filePath - path of file to be checked whether is already imported in the parser
        -
        Returns:
        true if file is already imported, false otherwise
        -
      • -
      - - - -
        -
      • -

        isImported

        -
        public static boolean isImported(String fileName)
        -
        Method serves to detect whether given file is already imported - shorthand for isImported(Paths.get(fileName))
        -
        Parameters:
        fileName - path of file to be checked whether is already imported in the parser
        -
        Returns:
        true if file is already imported, false otherwise
        -
      • -
      - - - - - - - -
        -
      • -

        importFile

        -
        public static ImportedFile importFile(Path path)
        -                               throws IOException
        -
        Imports given file in the application. It does NOT automatically check whether file is already imported.
        -
        Parameters:
        path - file to be imported
        -
        Returns:
        ImportedFile with correctly loaded lines and path
        -
        Throws:
        -
        IOException - when problem occured during importing file
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/class-use/ImportedFile.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/class-use/ImportedFile.html deleted file mode 100644 index 1bcfa4c..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/class-use/ImportedFile.html +++ /dev/null @@ -1,163 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.importer.ImportedFile (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.importer.ImportedFile

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/class-use/Importer.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/class-use/Importer.html deleted file mode 100644 index 71c30f0..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/class-use/Importer.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.importer.Importer (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.importer.Importer

-
-
No usage of cz.muni.fi.lessappcache.importer.Importer
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-frame.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-frame.html deleted file mode 100644 index 459029a..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-frame.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.importer (LessAppcache 1.0 API) - - - - -

cz.muni.fi.lessappcache.importer

-
-

Classes

- -
- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-summary.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-summary.html deleted file mode 100644 index 349aaf6..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-summary.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.importer (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Package cz.muni.fi.lessappcache.importer

-
-
-
    -
  • - - - - - - - - - - - - - - - - -
    Class Summary 
    ClassDescription
    ImportedFile -
    This class represents file loaded in the manifest parser containing its lines and path.
    -
    Importer -
    Class for loading files to import in the manifest parser.
    -
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-tree.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-tree.html deleted file mode 100644 index a8169c9..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-tree.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.importer Class Hierarchy (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package cz.muni.fi.lessappcache.importer

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-use.html b/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-use.html deleted file mode 100644 index 690760e..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/importer/package-use.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - -Uses of Package cz.muni.fi.lessappcache.importer (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Package
cz.muni.fi.lessappcache.importer

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/package-frame.html b/target/site/apidocs/cz/muni/fi/lessappcache/package-frame.html deleted file mode 100644 index f6a5d2d..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/package-frame.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache (LessAppcache 1.0 API) - - - - -

cz.muni.fi.lessappcache

-
-

Classes

- -
- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/package-summary.html b/target/site/apidocs/cz/muni/fi/lessappcache/package-summary.html deleted file mode 100644 index 742f37b..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/package-summary.html +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Package cz.muni.fi.lessappcache

-
-
-
    -
  • - - - - - - - - - - - - -
    Class Summary 
    ClassDescription
    Main -
    Main static class defined as executable in maven when JAR package is created
    -
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/package-tree.html b/target/site/apidocs/cz/muni/fi/lessappcache/package-tree.html deleted file mode 100644 index 2b1f74b..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/package-tree.html +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache Class Hierarchy (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package cz.muni.fi.lessappcache

-Package Hierarchies: - -
-
-

Class Hierarchy

-
    -
  • java.lang.Object -
      -
    • cz.muni.fi.lessappcache.Main
    • -
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/package-use.html b/target/site/apidocs/cz/muni/fi/lessappcache/package-use.html deleted file mode 100644 index 5705a0a..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/package-use.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Package cz.muni.fi.lessappcache (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Package
cz.muni.fi.lessappcache

-
-
No usage of cz.muni.fi.lessappcache
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/FileNotFoundException.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/FileNotFoundException.html deleted file mode 100644 index dc98a31..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/FileNotFoundException.html +++ /dev/null @@ -1,310 +0,0 @@ - - - - - - -FileNotFoundException (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser
-

Class FileNotFoundException

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Serializable
    -
    -
    -
    -
    public class FileNotFoundException
    -extends Exception
    -
    Exception to be thrown when given resource was not found. Application should - be able to continue its execution when this exception is thrown as some - resources may be just virtual URLs and not actual files.
    -
    Author:
    -
    Petr Kunc
    -
    See Also:
    Serialized Form
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        FileNotFoundException

        -
        public FileNotFoundException()
        -
        Empty constructor
        -
      • -
      - - - -
        -
      • -

        FileNotFoundException

        -
        public FileNotFoundException(String message)
        -
        Constructs exception with the message
        -
        Parameters:
        message - detail message
        -
      • -
      - - - -
        -
      • -

        FileNotFoundException

        -
        public FileNotFoundException(String message,
        -                     Throwable cause)
        -
        Constructs the exception with message and cause
        -
        Parameters:
        message - detail message
        cause - original exception
        -
      • -
      - - - -
        -
      • -

        FileNotFoundException

        -
        public FileNotFoundException(Throwable cause)
        -
        Constructs the exception with cause of the exception
        -
        Parameters:
        cause - original exception
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/ManifestParser.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/ManifestParser.html deleted file mode 100644 index 8ffed8c..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/ManifestParser.html +++ /dev/null @@ -1,443 +0,0 @@ - - - - - - -ManifestParser (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser
-

Class ManifestParser

-
-
- -
-
    -
  • -
    -
    -
    public class ManifestParser
    -extends Object
    -
    The entry point of library. Manifest parser provides the main functionality to parse the lesscache - file, analyze its lines and execute appropriate modules on each line.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ManifestParser

        -
        public ManifestParser(Path fileName)
        -
        Constructor specifying fileName to be analyzed and parsed
        -
        Parameters:
        fileName -
        -
      • -
      - - - -
        -
      • -

        ManifestParser

        -
        public ManifestParser(String fileName)
        -
        Shorthand for path constructor
        -
        Parameters:
        fileName -
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        setAbsolute

        -
        public void setAbsolute(String absolute)
        -
        Setter for absolute. Absolute attribute is important when developer wants to check - absolute paths of processed resources. This path should be set to the path describing the root - of server.
        -
        Parameters:
        absolute - path of the server root
        -
      • -
      - - - -
        -
      • -

        getFilePath

        -
        public Path getFilePath()
        -
        Getter of filePath
        -
        Returns:
        filePath
        -
      • -
      - - - -
        -
      • -

        getMode

        -
        public String getMode()
        -
        Getter of current mode
        -
        Returns:
        mode
        -
      • -
      - - - -
        -
      • -

        setMode

        -
        public void setMode(String mode)
        -
        Setter of current mode
        -
        Parameters:
        mode -
        -
      • -
      - - - -
        -
      • -

        getLoadedResources

        -
        public Map<String,String> getLoadedResources()
        -
        getter of loaded resources
        -
        Returns:
        loaded resources
        -
      • -
      - - - -
        -
      • -

        execute

        -
        public List<String> execute()
        -                     throws IOException
        -
        This method serves for executing the parser function. It adds - correct headers and version comment based on last moified file
        -
        Returns:
        list of lines of completely parsed lesscache manifest
        -
        Throws:
        -
        IOException - when accessing of any file or resource stated in the lesscache file failed and application was not able to continue parsing
        -
      • -
      - - - -
        -
      • -

        processFileInContextOf

        -
        public List<String> processFileInContextOf(Path context)
        -                                    throws IOException
        -
        Processes lesscache file. Given context describes the relative path between this file and file which imported this file
        -
        Parameters:
        context -
        -
        Returns:
        lines of processed manifest file in given context
        -
        Throws:
        -
        IOException - when accessing of any file or resource stated in the lesscache file failed and application was not able to continue parsing
        -
      • -
      - - - -
        -
      • -

        processFile

        -
        public List<String> processFile()
        -                         throws IOException
        -
        Processes the file set in construstor in context of its own directory
        -
        Returns:
        lines of processed manifest file
        -
        Throws:
        -
        IOException - when accessing of any file or resource stated in the lesscache file failed and application was not able to continue parsing
        -
      • -
      - - - -
        -
      • -

        processLine

        -
        public List<String> processLine(String line,
        -                       Path context,
        -                       int lineNumber)
        -                         throws ModuleException
        -
        Processes line of the manifest file by executing module parsers.
        -
        Parameters:
        line - to be processed
        context - of file (relative path against its importer)
        lineNumber - number of processed line
        -
        Returns:
        list of created lines based on the line
        -
        Throws:
        -
        ModuleException - when module encountered an unrecoverable error
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/ParsingContext.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/ParsingContext.html deleted file mode 100644 index 7072d9f..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/ParsingContext.html +++ /dev/null @@ -1,361 +0,0 @@ - - - - - - -ParsingContext (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser
-

Class ParsingContext

-
-
- -
-
    -
  • -
    -
    -
    public class ParsingContext
    -extends Object
    -
    Instances of this class are sent to filters as they need to know in which mode (explicit, network,...) and context (relative path - to the first loaded file) it currently is. the output is a single file but resources can be imported from other files so relative - path has to be changed according to directory imported file is in. - Also map of loaded resources is passed.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ParsingContext

        -
        public ParsingContext(Map<String,String> loadedResources,
        -              String mode,
        -              Path context)
        -
        Constructor of parsing context
        -
        Parameters:
        loadedResources - map of loaded resources, key is the resource, value is additional info about resource useful when debugging
        mode - mode the parser is in ("CACHE:", "NETWORK:", "FALLBACK:" or "SETTINGS:")
        context - in which parsed file is.
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getMode

        -
        public String getMode()
        -
        getter of mode
        -
        Returns:
        mode
        -
      • -
      - - - -
        -
      • -

        setMode

        -
        public void setMode(String mode)
        -
        Setter for mode
        -
        Parameters:
        mode -
        -
      • -
      - - - -
        -
      • -

        getContext

        -
        public Path getContext()
        -
        Getter of context
        -
        Returns:
        context
        -
      • -
      - - - -
        -
      • -

        setContext

        -
        public void setContext(Path context)
        -
        Setter for context
        -
        Parameters:
        context -
        -
      • -
      - - - -
        -
      • -

        getLoadedResources

        -
        public Map<String,String> getLoadedResources()
        -
        Getter for loadedResources
        -
        Returns:
        already loaded resources
        -
      • -
      - - - -
        -
      • -

        setLoadedResources

        -
        public void setLoadedResources(Map<String,String> loadedResources)
        -
        Setter of loaded resources
        -
        Parameters:
        loadedResources -
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/FileNotFoundException.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/FileNotFoundException.html deleted file mode 100644 index ccd58dd..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/FileNotFoundException.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.FileNotFoundException (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.FileNotFoundException

-
-
No usage of cz.muni.fi.lessappcache.parser.FileNotFoundException
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/ManifestParser.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/ManifestParser.html deleted file mode 100644 index 9428287..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/ManifestParser.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.ManifestParser (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.ManifestParser

-
-
No usage of cz.muni.fi.lessappcache.parser.ManifestParser
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/ParsingContext.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/ParsingContext.html deleted file mode 100644 index c081369..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/class-use/ParsingContext.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.ParsingContext (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.ParsingContext

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/AbstractModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/AbstractModule.html deleted file mode 100644 index 9e40694..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/AbstractModule.html +++ /dev/null @@ -1,340 +0,0 @@ - - - - - - -AbstractModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class AbstractModule

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • cz.muni.fi.lessappcache.parser.modules.AbstractModule
    • -
    -
  • -
-
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        AbstractModule

        -
        public AbstractModule()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getPriority

        -
        public double getPriority()
        -
        Description copied from interface: Module
        -
        Gets priority in which the modules should be executed. ModulePhases contains predefined phases of processing.
        -
        -
        Specified by:
        -
        getPriority in interface Module
        -
        Returns:
        priority
        -
      • -
      - - - -
        -
      • -

        setPriority

        -
        public void setPriority(double priority)
        -
        Description copied from interface: Module
        -
        Sets priority in which the modules should be executed. ModulePhases contains predefined phases of processing.
        -
        -
        Specified by:
        -
        setPriority in interface Module
        -
        -
      • -
      - - - -
        -
      • -

        equals

        -
        public boolean equals(Object obj)
        -
        -
        Overrides:
        -
        equals in class Object
        -
        -
      • -
      - - - -
        -
      • -

        hashCode

        -
        public int hashCode()
        -
        -
        Overrides:
        -
        hashCode in class Object
        -
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/CommentModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/CommentModule.html deleted file mode 100644 index c6e2bc4..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/CommentModule.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - -CommentModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class CommentModule

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Module
    -
    -
    -
    -
    public class CommentModule
    -extends AbstractModule
    -implements Module
    -
    Module parsing blank lines and comments
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        CommentModule

        -
        public CommentModule()
        -
        Constructs module and sets priority
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        parse

        -
        public ModuleOutput parse(String line,
        -                 ParsingContext pc)
        -
        Description copied from interface: Module
        -
        Parses the line (if it meets its declared pattern).
        -
        -
        Specified by:
        -
        parse in interface Module
        -
        Parameters:
        line - to be parsed
        pc - ParsingContext defining actual state of the parser
        -
        Returns:
        output defining another behavior of parser
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.html deleted file mode 100644 index 4e5bf50..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ExplicitModule.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - -ExplicitModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class ExplicitModule

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Module
    -
    -
    -
    -
    public class ExplicitModule
    -extends AbstractModule
    -implements Module
    -
    Module parsing resources in explicit section. Auto detects whether resource is already stated in lesscache file.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ExplicitModule

        -
        public ExplicitModule()
        -
        Constructs module and sets priority
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/FallbackModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/FallbackModule.html deleted file mode 100644 index b40c8e0..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/FallbackModule.html +++ /dev/null @@ -1,303 +0,0 @@ - - - - - - -FallbackModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class FallbackModule

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Module
    -
    -
    -
    -
    public class FallbackModule
    -extends AbstractModule
    -implements Module
    -
    Module parsing resources in fallback section. Auto detects whether given namespace of resource is already declared and - throws exception in case it is. Also checks whether namespace and resource are stated correctly.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        FallbackModule

        -
        public FallbackModule()
        -
        Constructs module and sets priority
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/FilterModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/FilterModule.html deleted file mode 100644 index 4e33d6f..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/FilterModule.html +++ /dev/null @@ -1,303 +0,0 @@ - - - - - - -FilterModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class FilterModule

-
-
- -
- -
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        FilterModule

        -
        public FilterModule()
        -
        Constructs module and sets priority
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/HeaderModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/HeaderModule.html deleted file mode 100644 index 6c60800..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/HeaderModule.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - -HeaderModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class HeaderModule

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Module
    -
    -
    -
    -
    public class HeaderModule
    -extends AbstractModule
    -implements Module
    -
    Parses declarations of headers.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        HeaderModule

        -
        public HeaderModule()
        -
        Constructs module and sets priority
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ImportModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ImportModule.html deleted file mode 100644 index 9624843..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ImportModule.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - -ImportModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class ImportModule

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Module
    -
    -
    -
    -
    public class ImportModule
    -extends AbstractModule
    -implements Module
    -
    Handles import of other lesscache manifest files. If file is not found, throws ModuleException
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ImportModule

        -
        public ImportModule()
        -
        Constructs module and sets priority.
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/Module.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/Module.html deleted file mode 100644 index a58f3e3..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/Module.html +++ /dev/null @@ -1,259 +0,0 @@ - - - - - - -Module (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Interface Module

-
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Method Summary

      - - - - - - - - - - - - - - - - - - -
      Methods 
      Modifier and TypeMethod and Description
      doublegetPriority() -
      Gets priority in which the modules should be executed.
      -
      ModuleOutputparse(String line, - ParsingContext pc) -
      Parses the line (if it meets its declared pattern).
      -
      voidsetPriority(double priority) -
      Sets priority in which the modules should be executed.
      -
      -
    • -
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Method Detail

      - - - - - - - -
        -
      • -

        getPriority

        -
        double getPriority()
        -
        Gets priority in which the modules should be executed. ModulePhases contains predefined phases of processing.
        -
        Returns:
        priority
        -
      • -
      - - - -
        -
      • -

        setPriority

        -
        void setPriority(double priority)
        -
        Sets priority in which the modules should be executed. ModulePhases contains predefined phases of processing.
        -
        Parameters:
        priority -
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleControl.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleControl.html deleted file mode 100644 index 3344a12..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleControl.html +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - -ModuleControl (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Enum ModuleControl

-
-
- -
- -
-
-
    -
  • - -
      -
    • - - -

      Enum Constant Summary

      - - - - - - - - - - - - - - -
      Enum Constants 
      Enum Constant and Description
      CONTINUE -
      CONTINUE tells the parser that module did not parse the line or the parser - should reprocess the same line with next module
      -
      REPARSE -
      REPARSE tells the parser that modules parsed the line and processing of this line - should be stopped but lines produced in output should be reparsed
      -
      STOP -
      STOP tells the parser that modules parsed the line and no further - processing should be done
      -
      -
    • -
    - - -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Enum Constant Detail

      - - - -
        -
      • -

        CONTINUE

        -
        public static final ModuleControl CONTINUE
        -
        CONTINUE tells the parser that module did not parse the line or the parser - should reprocess the same line with next module
        -
      • -
      - - - -
        -
      • -

        STOP

        -
        public static final ModuleControl STOP
        -
        STOP tells the parser that modules parsed the line and no further - processing should be done
        -
      • -
      - - - -
        -
      • -

        REPARSE

        -
        public static final ModuleControl REPARSE
        -
        REPARSE tells the parser that modules parsed the line and processing of this line - should be stopped but lines produced in output should be reparsed
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        values

        -
        public static ModuleControl[] values()
        -
        Returns an array containing the constants of this enum type, in -the order they are declared. This method may be used to iterate -over the constants as follows: -
        -for (ModuleControl c : ModuleControl.values())
        -    System.out.println(c);
        -
        -
        Returns:
        an array containing the constants of this enum type, in -the order they are declared
        -
      • -
      - - - -
        -
      • -

        valueOf

        -
        public static ModuleControl valueOf(String name)
        -
        Returns the enum constant of this type with the specified name. -The string must match exactly an identifier used to declare an -enum constant in this type. (Extraneous whitespace characters are -not permitted.)
        -
        Parameters:
        name - the name of the enum constant to be returned.
        -
        Returns:
        the enum constant with the specified name
        -
        Throws:
        -
        IllegalArgumentException - if this enum type has no constant -with the specified name
        -
        NullPointerException - if the argument is null
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleException.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleException.html deleted file mode 100644 index a52b19c..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleException.html +++ /dev/null @@ -1,308 +0,0 @@ - - - - - - -ModuleException (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class ModuleException

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Serializable
    -
    -
    -
    -
    public class ModuleException
    -extends Exception
    -
    This exception should be thrown whenever a module encounters unrecoverable problem .
    -
    Author:
    -
    Petr Kunc
    -
    See Also:
    Serialized Form
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ModuleException

        -
        public ModuleException()
        -
        Empty constructor
        -
      • -
      - - - -
        -
      • -

        ModuleException

        -
        public ModuleException(String message)
        -
        Constructs exception with the message
        -
        Parameters:
        message - detail message
        -
      • -
      - - - -
        -
      • -

        ModuleException

        -
        public ModuleException(String message,
        -               Throwable cause)
        -
        Constructs the exception with message and cause
        -
        Parameters:
        message - detail message
        cause - original exception
        -
      • -
      - - - -
        -
      • -

        ModuleException

        -
        public ModuleException(Throwable cause)
        -
        Constructs the exception with cause of the exception
        -
        Parameters:
        cause - original exception
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleLoader.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleLoader.html deleted file mode 100644 index 6180419..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleLoader.html +++ /dev/null @@ -1,267 +0,0 @@ - - - - - - -ModuleLoader (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class ModuleLoader

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • cz.muni.fi.lessappcache.parser.modules.ModuleLoader
    • -
    -
  • -
-
-
    -
  • -
    -
    -
    public class ModuleLoader
    -extends Object
    -
    ModuleLoader is responsible for managing modules in the application.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ModuleLoader

        -
        public ModuleLoader()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        load

        -
        public static List<Module> load()
        -
        Loads all modules using ServiceLoader available on the classpath and sorts them - in correct order to enable parsing each line by the modules
        -
        Returns:
        available modules
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.html deleted file mode 100644 index 25f3028..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModuleOutput.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - - -ModuleOutput (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class ModuleOutput

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • cz.muni.fi.lessappcache.parser.modules.ModuleOutput
    • -
    -
  • -
-
-
    -
  • -
    -
    -
    public class ModuleOutput
    -extends Object
    -
    Class representing the output of modules. Contains generated lines, newly loaded resources and mode the parser should switch to. - It also defines how the manifest parser should process these produced lines.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ModuleOutput

        -
        public ModuleOutput()
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        getOutput

        -
        public List<String> getOutput()
        -
        List of produced lines
        -
        Returns:
        output
        -
      • -
      - - - -
        -
      • -

        getControl

        -
        public ModuleControl getControl()
        -
        Defines further processing of output lines, more info at ModuleOutput
        -
        Returns:
        -
      • -
      - - - -
        -
      • -

        setControl

        -
        public void setControl(ModuleControl control)
        -
        Setter of module control
        -
        Parameters:
        control -
        -
      • -
      - - - -
        -
      • -

        getLoadedResources

        -
        public Map<String,String> getLoadedResources()
        -
        Getter of newly loaded resources
        -
        Returns:
        loaded resources
        -
      • -
      - - - -
        -
      • -

        setLoadedResources

        -
        public void setLoadedResources(Map<String,String> loadedResources)
        -
        Setter for newly loaded resources
        -
        Parameters:
        loadedResources -
        -
      • -
      - - - -
        -
      • -

        getMode

        -
        public String getMode()
        -
        Getter of parser mode
        -
        Returns:
        mode
        -
      • -
      - - - -
        -
      • -

        setMode

        -
        public void setMode(String mode)
        -
        Setter for parser mode
        -
        Parameters:
        mode -
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModulePhases.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModulePhases.html deleted file mode 100644 index 23b8f79..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/ModulePhases.html +++ /dev/null @@ -1,374 +0,0 @@ - - - - - - -ModulePhases (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class ModulePhases

-
-
-
    -
  • java.lang.Object
  • -
  • -
      -
    • cz.muni.fi.lessappcache.parser.modules.ModulePhases
    • -
    -
  • -
-
-
    -
  • -
    -
    -
    public class ModulePhases
    -extends Object
    -
    Defines phases of module execution to enable other developers hook their methods in right order
    -
    Author:
    -
    Petr
    -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Summary

      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      Fields 
      Modifier and TypeField and Description
      static double[]ALL -
      array of described phases
      -
      static doubleEND -
      After resources (currently not usable as parsing ends by resource modules)
      -
      static doublePRE_COMMENT -
      After headers are parsed but before comments
      -
      static doublePRE_FILTER -
      After import but before filters
      -
      static doublePRE_IMPORT -
      After comments but before import
      -
      static doublePRE_RESOURCE -
      After filters but before resource (explicit, fallback, network and section)
      -
      static doubleSTART -
      Before any other module
      -
      -
    • -
    - -
      -
    • - - -

      Constructor Summary

      - - - - - - - - -
      Constructors 
      Constructor and Description
      ModulePhases() 
      -
    • -
    - - -
  • -
-
-
-
    -
  • - -
      -
    • - - -

      Field Detail

      - - - -
        -
      • -

        START

        -
        public static final double START
        -
        Before any other module
        -
        See Also:
        Constant Field Values
        -
      • -
      - - - -
        -
      • -

        PRE_COMMENT

        -
        public static final double PRE_COMMENT
        -
        After headers are parsed but before comments
        -
        See Also:
        Constant Field Values
        -
      • -
      - - - -
        -
      • -

        PRE_IMPORT

        -
        public static final double PRE_IMPORT
        -
        After comments but before import
        -
        See Also:
        Constant Field Values
        -
      • -
      - - - -
        -
      • -

        PRE_FILTER

        -
        public static final double PRE_FILTER
        -
        After import but before filters
        -
        See Also:
        Constant Field Values
        -
      • -
      - - - -
        -
      • -

        PRE_RESOURCE

        -
        public static final double PRE_RESOURCE
        -
        After filters but before resource (explicit, fallback, network and section)
        -
        See Also:
        Constant Field Values
        -
      • -
      - - - -
        -
      • -

        END

        -
        public static final double END
        -
        After resources (currently not usable as parsing ends by resource modules)
        -
        See Also:
        Constant Field Values
        -
      • -
      - - - -
        -
      • -

        ALL

        -
        public static final double[] ALL
        -
        array of described phases
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        ModulePhases

        -
        public ModulePhases()
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/NetworkModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/NetworkModule.html deleted file mode 100644 index d8f1097..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/NetworkModule.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - -NetworkModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class NetworkModule

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Module
    -
    -
    -
    -
    public class NetworkModule
    -extends AbstractModule
    -implements Module
    -
    Parses resources in network section.
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        NetworkModule

        -
        public NetworkModule()
        -
        Constructs module and sets priority
        -
      • -
      -
    • -
    - - -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/SettingsModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/SettingsModule.html deleted file mode 100644 index 8a26fc4..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/SettingsModule.html +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - -SettingsModule (LessAppcache 1.0 API) - - - - - - - - - - - -
-
cz.muni.fi.lessappcache.parser.modules
-

Class SettingsModule

-
-
- -
-
    -
  • -
    -
    All Implemented Interfaces:
    -
    Module
    -
    -
    -
    -
    public class SettingsModule
    -extends AbstractModule
    -implements Module
    -
    Module for parsing resources in SETTINGS: section. It ensures that only settings defined by standard will be processed
    -
    Author:
    -
    Petr Kunc
    -
  • -
-
-
- -
-
-
    -
  • - -
      -
    • - - -

      Constructor Detail

      - - - -
        -
      • -

        SettingsModule

        -
        public SettingsModule()
        -
        Constructs module, sets priority and define possible settings
        -
      • -
      -
    • -
    - -
      -
    • - - -

      Method Detail

      - - - -
        -
      • -

        parse

        -
        public ModuleOutput parse(String line,
        -                 ParsingContext pc)
        -
        Description copied from interface: Module
        -
        Parses the line (if it meets its declared pattern).
        -
        -
        Specified by:
        -
        parse in interface Module
        -
        Parameters:
        line - to be parsed
        pc - ParsingContext defining actual state of the parser
        -
        Returns:
        output defining another behavior of parser
        -
      • -
      -
    • -
    -
  • -
-
-
- - - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/AbstractModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/AbstractModule.html deleted file mode 100644 index 99abae0..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/AbstractModule.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.AbstractModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.AbstractModule

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/CommentModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/CommentModule.html deleted file mode 100644 index c379b98..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/CommentModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.CommentModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.CommentModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.CommentModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ExplicitModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ExplicitModule.html deleted file mode 100644 index 15be413..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ExplicitModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.ExplicitModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.ExplicitModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.ExplicitModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/FallbackModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/FallbackModule.html deleted file mode 100644 index 35f9796..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/FallbackModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.FallbackModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.FallbackModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.FallbackModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/FilterModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/FilterModule.html deleted file mode 100644 index 49365c4..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/FilterModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.FilterModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.FilterModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.FilterModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/HeaderModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/HeaderModule.html deleted file mode 100644 index ac9a9ea..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/HeaderModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.HeaderModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.HeaderModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.HeaderModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ImportModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ImportModule.html deleted file mode 100644 index a08073d..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ImportModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.ImportModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.ImportModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.ImportModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/Module.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/Module.html deleted file mode 100644 index 2029894..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/Module.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - -Uses of Interface cz.muni.fi.lessappcache.parser.modules.Module (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Interface
cz.muni.fi.lessappcache.parser.modules.Module

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleControl.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleControl.html deleted file mode 100644 index cee6bfb..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleControl.html +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.ModuleControl (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.ModuleControl

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleException.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleException.html deleted file mode 100644 index 03dd1d4..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleException.html +++ /dev/null @@ -1,216 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.ModuleException (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.ModuleException

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleLoader.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleLoader.html deleted file mode 100644 index f89c0eb..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleLoader.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.ModuleLoader (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.ModuleLoader

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.ModuleLoader
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleOutput.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleOutput.html deleted file mode 100644 index 1a0f9b5..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModuleOutput.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.ModuleOutput (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.ModuleOutput

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModulePhases.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModulePhases.html deleted file mode 100644 index 4056a7b..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/ModulePhases.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.ModulePhases (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.ModulePhases

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.ModulePhases
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/NetworkModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/NetworkModule.html deleted file mode 100644 index c7a7707..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/NetworkModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.NetworkModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.NetworkModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.NetworkModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/SettingsModule.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/SettingsModule.html deleted file mode 100644 index 07894ab..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/class-use/SettingsModule.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Uses of Class cz.muni.fi.lessappcache.parser.modules.SettingsModule (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Class
cz.muni.fi.lessappcache.parser.modules.SettingsModule

-
-
No usage of cz.muni.fi.lessappcache.parser.modules.SettingsModule
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-frame.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-frame.html deleted file mode 100644 index 4b5a6ca..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-frame.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.parser.modules (LessAppcache 1.0 API) - - - - -

cz.muni.fi.lessappcache.parser.modules

- - - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-summary.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-summary.html deleted file mode 100644 index a1f7520..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-summary.html +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.parser.modules (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Package cz.muni.fi.lessappcache.parser.modules

-
-
-
    -
  • - - - - - - - - - - - - -
    Interface Summary 
    InterfaceDescription
    Module -
    Module interface describes modules in the application that are used to parse lines of lesscache files
    -
    -
  • -
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Class Summary 
    ClassDescription
    AbstractModule -
    Abstract Module - any current module class inherits from it, defines equals and hashCode of modules
    -
    CommentModule -
    Module parsing blank lines and comments
    -
    ExplicitModule -
    Module parsing resources in explicit section.
    -
    FallbackModule -
    Module parsing resources in fallback section.
    -
    FilterModule -
    Loads given filter defined by @filter and processes its parameters.
    -
    HeaderModule -
    Parses declarations of headers.
    -
    ImportModule -
    Handles import of other lesscache manifest files.
    -
    ModuleLoader -
    ModuleLoader is responsible for managing modules in the application.
    -
    ModuleOutput -
    Class representing the output of modules.
    -
    ModulePhases -
    Defines phases of module execution to enable other developers hook their methods in right order
    -
    NetworkModule -
    Parses resources in network section.
    -
    SettingsModule -
    Module for parsing resources in SETTINGS: section.
    -
    -
  • -
  • - - - - - - - - - - - - -
    Enum Summary 
    EnumDescription
    ModuleControl -
    Defines behavior of parser when module execution has ended
    -
    -
  • -
  • - - - - - - - - - - - - -
    Exception Summary 
    ExceptionDescription
    ModuleException -
    This exception should be thrown whenever a module encounters unrecoverable problem .
    -
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-tree.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-tree.html deleted file mode 100644 index e5b342d..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-tree.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.parser.modules Class Hierarchy (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package cz.muni.fi.lessappcache.parser.modules

-Package Hierarchies: - -
-
-

Class Hierarchy

-
    -
  • java.lang.Object -
      -
    • cz.muni.fi.lessappcache.parser.modules.AbstractModule (implements cz.muni.fi.lessappcache.parser.modules.Module) -
        -
      • cz.muni.fi.lessappcache.parser.modules.CommentModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      • cz.muni.fi.lessappcache.parser.modules.ExplicitModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      • cz.muni.fi.lessappcache.parser.modules.FallbackModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      • cz.muni.fi.lessappcache.parser.modules.FilterModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      • cz.muni.fi.lessappcache.parser.modules.HeaderModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      • cz.muni.fi.lessappcache.parser.modules.ImportModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      • cz.muni.fi.lessappcache.parser.modules.NetworkModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      • cz.muni.fi.lessappcache.parser.modules.SettingsModule (implements cz.muni.fi.lessappcache.parser.modules.Module)
      • -
      -
    • -
    • cz.muni.fi.lessappcache.parser.modules.ModuleLoader
    • -
    • cz.muni.fi.lessappcache.parser.modules.ModuleOutput
    • -
    • cz.muni.fi.lessappcache.parser.modules.ModulePhases
    • -
    • java.lang.Throwable (implements java.io.Serializable) - -
    • -
    -
  • -
-

Interface Hierarchy

-
    -
  • cz.muni.fi.lessappcache.parser.modules.Module
  • -
-

Enum Hierarchy

- -
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-use.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-use.html deleted file mode 100644 index 7ce5d49..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/modules/package-use.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - -Uses of Package cz.muni.fi.lessappcache.parser.modules (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Package
cz.muni.fi.lessappcache.parser.modules

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-frame.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-frame.html deleted file mode 100644 index 7c61795..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-frame.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.parser (LessAppcache 1.0 API) - - - - -

cz.muni.fi.lessappcache.parser

-
-

Classes

- -

Exceptions

- -
- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-summary.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-summary.html deleted file mode 100644 index 7ba7b27..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-summary.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.parser (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Package cz.muni.fi.lessappcache.parser

-
-
-
    -
  • - - - - - - - - - - - - - - - - -
    Class Summary 
    ClassDescription
    ManifestParser -
    The entry point of library.
    -
    ParsingContext -
    Instances of this class are sent to filters as they need to know in which mode (explicit, network,...) and context (relative path - to the first loaded file) it currently is. the output is a single file but resources can be imported from other files so relative - path has to be changed according to directory imported file is in.
    -
    -
  • -
  • - - - - - - - - - - - - -
    Exception Summary 
    ExceptionDescription
    FileNotFoundException -
    Exception to be thrown when given resource was not found.
    -
    -
  • -
-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-tree.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-tree.html deleted file mode 100644 index 4bf5048..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-tree.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -cz.muni.fi.lessappcache.parser Class Hierarchy (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Hierarchy For Package cz.muni.fi.lessappcache.parser

-Package Hierarchies: - -
-
-

Class Hierarchy

- -
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-use.html b/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-use.html deleted file mode 100644 index 0528f0a..0000000 --- a/target/site/apidocs/cz/muni/fi/lessappcache/parser/package-use.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - -Uses of Package cz.muni.fi.lessappcache.parser (LessAppcache 1.0 API) - - - - - - - - - - -
-

Uses of Package
cz.muni.fi.lessappcache.parser

-
-
- -
- - - - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/deprecated-list.html b/target/site/apidocs/deprecated-list.html deleted file mode 100644 index a0598cb..0000000 --- a/target/site/apidocs/deprecated-list.html +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - -Deprecated List (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Deprecated API

-

Contents

-
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/help-doc.html b/target/site/apidocs/help-doc.html deleted file mode 100644 index 481afb8..0000000 --- a/target/site/apidocs/help-doc.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - - - -API Help (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

How This API Document Is Organized

-
This API (Application Programming Interface) document has pages corresponding to the items in the navigation bar, described as follows.
-
-
-
    -
  • -

    Overview

    -

    The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

    -
  • -
  • -

    Package

    -

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:

    -
      -
    • Interfaces (italic)
    • -
    • Classes
    • -
    • Enums
    • -
    • Exceptions
    • -
    • Errors
    • -
    • Annotation Types
    • -
    -
  • -
  • -

    Class/Interface

    -

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:

    -
      -
    • Class inheritance diagram
    • -
    • Direct Subclasses
    • -
    • All Known Subinterfaces
    • -
    • All Known Implementing Classes
    • -
    • Class/interface declaration
    • -
    • Class/interface description
    • -
    -
      -
    • Nested Class Summary
    • -
    • Field Summary
    • -
    • Constructor Summary
    • -
    • Method Summary
    • -
    -
      -
    • Field Detail
    • -
    • Constructor Detail
    • -
    • Method Detail
    • -
    -

    Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    -
  • -
  • -

    Annotation Type

    -

    Each annotation type has its own separate page with the following sections:

    -
      -
    • Annotation Type declaration
    • -
    • Annotation Type description
    • -
    • Required Element Summary
    • -
    • Optional Element Summary
    • -
    • Element Detail
    • -
    -
  • -
  • -

    Enum

    -

    Each enum has its own separate page with the following sections:

    -
      -
    • Enum declaration
    • -
    • Enum description
    • -
    • Enum Constant Summary
    • -
    • Enum Constant Detail
    • -
    -
  • -
  • -

    Use

    -

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.

    -
  • -
  • -

    Tree (Class Hierarchy)

    -

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.

    -
      -
    • When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
    • -
    • When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
    • -
    -
  • -
  • -

    Deprecated API

    -

    The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.

    -
  • -
  • -

    Index

    -

    The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.

    -
  • -
  • -

    Prev/Next

    -

    These links take you to the next or previous class, interface, package, or related page.

    -
  • -
  • -

    Frames/No Frames

    -

    These links show and hide the HTML frames. All pages are available with or without frames.

    -
  • -
  • -

    All Classes

    -

    The All Classes link shows all classes and interfaces except non-static nested types.

    -
  • -
  • -

    Serialized Form

    -

    Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.

    -
  • -
  • -

    Constant Field Values

    -

    The Constant Field Values page lists the static final fields and their values.

    -
  • -
-This help file applies to API documentation generated using the standard doclet.
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/index-all.html b/target/site/apidocs/index-all.html deleted file mode 100644 index 11f9356..0000000 --- a/target/site/apidocs/index-all.html +++ /dev/null @@ -1,777 +0,0 @@ - - - - - - -Index (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
A C E F G H I L M N P R S V W  - - -

A

-
-
AbstractModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Abstract Module - any current module class inherits from it, defines equals and hashCode of modules
-
-
AbstractModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.AbstractModule
-
 
-
AbstractWalkDir - Class in cz.muni.fi.lessappcache.filters
-
-
Abstract class for listing contents of one directory
-
-
AbstractWalkDir() - Constructor for class cz.muni.fi.lessappcache.filters.AbstractWalkDir
-
 
-
AbstractWalkTree - Class in cz.muni.fi.lessappcache.filters
-
-
Abstract class for listing contents of directory tree
-
-
AbstractWalkTree() - Constructor for class cz.muni.fi.lessappcache.filters.AbstractWalkTree
-
 
-
ALL - Static variable in class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
-
array of described phases
-
-
- - - -

C

-
-
CommentModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Module parsing blank lines and comments
-
-
CommentModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.CommentModule
-
-
Constructs module and sets priority
-
-
cz.muni.fi.lessappcache - package cz.muni.fi.lessappcache
-
 
-
cz.muni.fi.lessappcache.filesystem - package cz.muni.fi.lessappcache.filesystem
-
 
-
cz.muni.fi.lessappcache.filters - package cz.muni.fi.lessappcache.filters
-
 
-
cz.muni.fi.lessappcache.importer - package cz.muni.fi.lessappcache.importer
-
 
-
cz.muni.fi.lessappcache.parser - package cz.muni.fi.lessappcache.parser
-
 
-
cz.muni.fi.lessappcache.parser.modules - package cz.muni.fi.lessappcache.parser.modules
-
 
-
- - - -

E

-
-
ENCODING - Static variable in class cz.muni.fi.lessappcache.filesystem.FileUtils
-
-
Encoding of loaded files
-
-
END - Static variable in class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
-
After resources (currently not usable as parsing ends by resource modules)
-
-
equals(Object) - Method in class cz.muni.fi.lessappcache.importer.ImportedFile
-
 
-
equals(Object) - Method in class cz.muni.fi.lessappcache.parser.modules.AbstractModule
-
 
-
execute(String[], Path) - Method in class cz.muni.fi.lessappcache.filters.AbstractWalkDir
-
-
Executor of filter, walks given directory and finds all files matching pattern
-
-
execute(String[], Path) - Method in class cz.muni.fi.lessappcache.filters.AbstractWalkTree
-
-
Executor of filter, walks given directory and its subdirectories and finds all files matching pattern
-
-
execute(String[], Path) - Method in interface cz.muni.fi.lessappcache.filters.Filter
-
-
Executes the filter.
-
-
execute(String[], Path) - Method in class cz.muni.fi.lessappcache.filters.GlobFilter
-
-
Executor of filter, walks given directory and finds all files matching given glob pattern
-
-
execute(String[], Path) - Method in class cz.muni.fi.lessappcache.filters.RegexFilter
-
-
Executor of filter, walks given directory and finds all files matching given regex pattern
-
-
execute(String[], Path) - Method in class cz.muni.fi.lessappcache.filters.RGlobFilter
-
-
Executor of filter, walks given directory and its subdirectories and finds all files matching given glob pattern
-
-
execute(String[], Path) - Method in class cz.muni.fi.lessappcache.filters.RRegex
-
-
Executor of filter, walks given directory and its subdirectories and finds all files matching given regex pattern
-
-
execute() - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
This method serves for executing the parser function.
-
-
ExplicitModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Module parsing resources in explicit section.
-
-
ExplicitModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.ExplicitModule
-
-
Constructs module and sets priority
-
-
- - - -

F

-
-
FallbackModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Module parsing resources in fallback section.
-
-
FallbackModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.FallbackModule
-
-
Constructs module and sets priority
-
-
FileNotFoundException - Exception in cz.muni.fi.lessappcache.parser
-
-
Exception to be thrown when given resource was not found.
-
-
FileNotFoundException() - Constructor for exception cz.muni.fi.lessappcache.parser.FileNotFoundException
-
-
Empty constructor
-
-
FileNotFoundException(String) - Constructor for exception cz.muni.fi.lessappcache.parser.FileNotFoundException
-
-
Constructs exception with the message
-
-
FileNotFoundException(String, Throwable) - Constructor for exception cz.muni.fi.lessappcache.parser.FileNotFoundException
-
-
Constructs the exception with message and cause
-
-
FileNotFoundException(Throwable) - Constructor for exception cz.muni.fi.lessappcache.parser.FileNotFoundException
-
-
Constructs the exception with cause of the exception
-
-
FileUtils - Class in cz.muni.fi.lessappcache.filesystem
-
-
Util file for reading and writing files
-
-
FileUtils() - Constructor for class cz.muni.fi.lessappcache.filesystem.FileUtils
-
 
-
Filter - Interface in cz.muni.fi.lessappcache.filters
-
-
Filter interface.
-
-
FilterClassLoader - Class in cz.muni.fi.lessappcache.filters
-
-
Class loader for filters.
-
-
FilterClassLoader() - Constructor for class cz.muni.fi.lessappcache.filters.FilterClassLoader
-
-
Constructor of class loader
-
-
FilterException - Exception in cz.muni.fi.lessappcache.filters
-
-
Exception should be thrown when an error while loading filter was encountered
-
-
FilterException() - Constructor for exception cz.muni.fi.lessappcache.filters.FilterException
-
-
Empty constructor
-
-
FilterException(String) - Constructor for exception cz.muni.fi.lessappcache.filters.FilterException
-
-
Constructs exception with the message
-
-
FilterException(String, Throwable) - Constructor for exception cz.muni.fi.lessappcache.filters.FilterException
-
-
Constructs the exception with message and cause
-
-
FilterException(Throwable) - Constructor for exception cz.muni.fi.lessappcache.filters.FilterException
-
-
Constructs the exception with cause of the exception
-
-
FilterExecutionException - Exception in cz.muni.fi.lessappcache.filters
-
-
Exception should be thrown whenever instance of filter cannot continue its execution - because of any problem.
-
-
FilterExecutionException() - Constructor for exception cz.muni.fi.lessappcache.filters.FilterExecutionException
-
-
Empty constructor
-
-
FilterExecutionException(String) - Constructor for exception cz.muni.fi.lessappcache.filters.FilterExecutionException
-
-
Constructs exception with the message
-
-
FilterExecutionException(String, Throwable) - Constructor for exception cz.muni.fi.lessappcache.filters.FilterExecutionException
-
-
Constructs the exception with message and cause
-
-
FilterExecutionException(Throwable) - Constructor for exception cz.muni.fi.lessappcache.filters.FilterExecutionException
-
-
Constructs the exception with cause of the exception
-
-
FilterFactory - Class in cz.muni.fi.lessappcache.filters
-
-
Factory for filters.
-
-
FilterFactory() - Constructor for class cz.muni.fi.lessappcache.filters.FilterFactory
-
 
-
FilterModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Loads given filter defined by @filter and processes its parameters.
-
-
FilterModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.FilterModule
-
-
Constructs module and sets priority
-
-
- - - -

G

-
-
getContext() - Method in class cz.muni.fi.lessappcache.parser.ParsingContext
-
-
Getter of context
-
-
getControl() - Method in class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
-
Defines further processing of output lines, more info at ModuleOutput
-
-
getFilePath() - Method in class cz.muni.fi.lessappcache.importer.ImportedFile
-
-
Getter for filePath
-
-
getFilePath() - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Getter of filePath
-
-
getFilterInstance(String) - Static method in class cz.muni.fi.lessappcache.filters.FilterFactory
-
-
Loads given filter by name.
-
-
getLines() - Method in class cz.muni.fi.lessappcache.importer.ImportedFile
-
-
Getter for lines
-
-
getLoadedResources() - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
getter of loaded resources
-
-
getLoadedResources() - Method in class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
-
Getter of newly loaded resources
-
-
getLoadedResources() - Method in class cz.muni.fi.lessappcache.parser.ParsingContext
-
-
Getter for loadedResources
-
-
getMode() - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Getter of current mode
-
-
getMode() - Method in class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
-
Getter of parser mode
-
-
getMode() - Method in class cz.muni.fi.lessappcache.parser.ParsingContext
-
-
getter of mode
-
-
getOutput() - Method in class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
-
List of produced lines
-
-
getPriority() - Method in class cz.muni.fi.lessappcache.parser.modules.AbstractModule
-
 
-
getPriority() - Method in interface cz.muni.fi.lessappcache.parser.modules.Module
-
-
Gets priority in which the modules should be executed.
-
-
GlobFilter - Class in cz.muni.fi.lessappcache.filters
-
-
Filter for listing contents of one directory matching given glob pattern - called as @glob path pattern
-
-
GlobFilter() - Constructor for class cz.muni.fi.lessappcache.filters.GlobFilter
-
 
-
- - - -

H

-
-
hashCode() - Method in class cz.muni.fi.lessappcache.importer.ImportedFile
-
 
-
hashCode() - Method in class cz.muni.fi.lessappcache.parser.modules.AbstractModule
-
 
-
HeaderModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Parses declarations of headers.
-
-
HeaderModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.HeaderModule
-
-
Constructs module and sets priority
-
-
- - - -

I

-
-
ImportedFile - Class in cz.muni.fi.lessappcache.importer
-
-
This class represents file loaded in the manifest parser containing its lines and path.
-
-
ImportedFile() - Constructor for class cz.muni.fi.lessappcache.importer.ImportedFile
-
 
-
Importer - Class in cz.muni.fi.lessappcache.importer
-
-
Class for loading files to import in the manifest parser.
-
-
Importer() - Constructor for class cz.muni.fi.lessappcache.importer.Importer
-
 
-
importFile(String) - Static method in class cz.muni.fi.lessappcache.importer.Importer
-
 
-
importFile(Path) - Static method in class cz.muni.fi.lessappcache.importer.Importer
-
-
Imports given file in the application.
-
-
ImportModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Handles import of other lesscache manifest files.
-
-
ImportModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.ImportModule
-
-
Constructs module and sets priority.
-
-
isAbsolute(String) - Static method in class cz.muni.fi.lessappcache.filesystem.PathUtils
-
-
Checks whether the resource is absolute (whether starts with "/")
-
-
isAbsoluteOrRemote(String) - Static method in class cz.muni.fi.lessappcache.filesystem.PathUtils
-
-
Helper method to discover whether given resource - is absolute or remote.
-
-
isImported(Path) - Static method in class cz.muni.fi.lessappcache.importer.Importer
-
-
Method serves to detect whether given file is already imported
-
-
isImported(String) - Static method in class cz.muni.fi.lessappcache.importer.Importer
-
-
Method serves to detect whether given file is already imported - shorthand for isImported(Paths.get(fileName))
-
-
isRemote(String) - Static method in class cz.muni.fi.lessappcache.filesystem.PathUtils
-
-
Checks whether the resource is remote (whether contains with "://")
-
-
- - - -

L

-
-
load() - Static method in class cz.muni.fi.lessappcache.parser.modules.ModuleLoader
-
-
Loads all modules using ServiceLoader available on the classpath and sorts them - in correct order to enable parsing each line by the modules
-
-
loadClass(String) - Method in class cz.muni.fi.lessappcache.filters.FilterClassLoader
-
 
-
- - - -

M

-
-
Main - Class in cz.muni.fi.lessappcache
-
-
Main static class defined as executable in maven when JAR package is created
-
-
Main() - Constructor for class cz.muni.fi.lessappcache.Main
-
 
-
main(String[]) - Static method in class cz.muni.fi.lessappcache.Main
-
-
Main method must have at least one argument: - lesscache file - it is parsed against actual directory!
-
-
ManifestParser - Class in cz.muni.fi.lessappcache.parser
-
-
The entry point of library.
-
-
ManifestParser(Path) - Constructor for class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Constructor specifying fileName to be analyzed and parsed
-
-
ManifestParser(String) - Constructor for class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Shorthand for path constructor
-
-
Module - Interface in cz.muni.fi.lessappcache.parser.modules
-
-
Module interface describes modules in the application that are used to parse lines of lesscache files
-
-
ModuleControl - Enum in cz.muni.fi.lessappcache.parser.modules
-
-
Defines behavior of parser when module execution has ended
-
-
ModuleException - Exception in cz.muni.fi.lessappcache.parser.modules
-
-
This exception should be thrown whenever a module encounters unrecoverable problem .
-
-
ModuleException() - Constructor for exception cz.muni.fi.lessappcache.parser.modules.ModuleException
-
-
Empty constructor
-
-
ModuleException(String) - Constructor for exception cz.muni.fi.lessappcache.parser.modules.ModuleException
-
-
Constructs exception with the message
-
-
ModuleException(String, Throwable) - Constructor for exception cz.muni.fi.lessappcache.parser.modules.ModuleException
-
-
Constructs the exception with message and cause
-
-
ModuleException(Throwable) - Constructor for exception cz.muni.fi.lessappcache.parser.modules.ModuleException
-
-
Constructs the exception with cause of the exception
-
-
ModuleLoader - Class in cz.muni.fi.lessappcache.parser.modules
-
-
ModuleLoader is responsible for managing modules in the application.
-
-
ModuleLoader() - Constructor for class cz.muni.fi.lessappcache.parser.modules.ModuleLoader
-
 
-
ModuleOutput - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Class representing the output of modules.
-
-
ModuleOutput() - Constructor for class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
 
-
ModulePhases - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Defines phases of module execution to enable other developers hook their methods in right order
-
-
ModulePhases() - Constructor for class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
 
-
- - - -

N

-
-
NetworkModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Parses resources in network section.
-
-
NetworkModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.NetworkModule
-
-
Constructs module and sets priority
-
-
- - - -

P

-
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.CommentModule
-
 
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.ExplicitModule
-
 
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.FallbackModule
-
 
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.FilterModule
-
 
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.HeaderModule
-
 
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.ImportModule
-
 
-
parse(String, ParsingContext) - Method in interface cz.muni.fi.lessappcache.parser.modules.Module
-
-
Parses the line (if it meets its declared pattern).
-
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.NetworkModule
-
 
-
parse(String, ParsingContext) - Method in class cz.muni.fi.lessappcache.parser.modules.SettingsModule
-
 
-
ParsingContext - Class in cz.muni.fi.lessappcache.parser
-
-
Instances of this class are sent to filters as they need to know in which mode (explicit, network,...) and context (relative path - to the first loaded file) it currently is. the output is a single file but resources can be imported from other files so relative - path has to be changed according to directory imported file is in.
-
-
ParsingContext(Map<String, String>, String, Path) - Constructor for class cz.muni.fi.lessappcache.parser.ParsingContext
-
-
Constructor of parsing context
-
-
PathUtils - Class in cz.muni.fi.lessappcache.filesystem
-
-
Utils for processing the paths or string representations of paths as needed - in the modules.
-
-
PathUtils() - Constructor for class cz.muni.fi.lessappcache.filesystem.PathUtils
-
 
-
PRE_COMMENT - Static variable in class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
-
After headers are parsed but before comments
-
-
PRE_FILTER - Static variable in class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
-
After import but before filters
-
-
PRE_IMPORT - Static variable in class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
-
After comments but before import
-
-
PRE_RESOURCE - Static variable in class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
-
After filters but before resource (explicit, fallback, network and section)
-
-
processFile() - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Processes the file set in construstor in context of its own directory
-
-
processFileInContextOf(Path) - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Processes lesscache file.
-
-
processLine(String, Path, int) - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Processes line of the manifest file by executing module parsers.
-
-
processResource(String, Path) - Static method in class cz.muni.fi.lessappcache.filesystem.PathUtils
-
-
Relativize the process against given context
-
-
- - - -

R

-
-
readFile(Path) - Static method in class cz.muni.fi.lessappcache.filesystem.FileUtils
-
-
Reads file on given path.
-
-
RegexFilter - Class in cz.muni.fi.lessappcache.filters
-
-
Filter for listing contents of one directory matching given regex pattern - called as @regex path pattern
-
-
RegexFilter() - Constructor for class cz.muni.fi.lessappcache.filters.RegexFilter
-
 
-
relativizeFolders(Path, Path) - Static method in class cz.muni.fi.lessappcache.filesystem.PathUtils
-
-
Constructs a relative path between two folders.
-
-
RGlobFilter - Class in cz.muni.fi.lessappcache.filters
-
-
Filter for listing contents of directory tree matching given glob filter - called as @r-glob path pattern
-
-
RGlobFilter() - Constructor for class cz.muni.fi.lessappcache.filters.RGlobFilter
-
 
-
RRegex - Class in cz.muni.fi.lessappcache.filters
-
-
Filter for listing contents of directory tree matching given regex filter - called as @r-regex path pattern
-
-
RRegex() - Constructor for class cz.muni.fi.lessappcache.filters.RRegex
-
 
-
- - - -

S

-
-
setAbsolute(String) - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Setter for absolute.
-
-
setContext(Path) - Method in class cz.muni.fi.lessappcache.parser.ParsingContext
-
-
Setter for context
-
-
setControl(ModuleControl) - Method in class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
-
Setter of module control
-
-
setFilePath(Path) - Method in class cz.muni.fi.lessappcache.importer.ImportedFile
-
-
Setter for filePath
-
-
setLines(List<String>) - Method in class cz.muni.fi.lessappcache.importer.ImportedFile
-
-
Setter for lines
-
-
setLoadedResources(Map<String, String>) - Method in class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
-
Setter for newly loaded resources
-
-
setLoadedResources(Map<String, String>) - Method in class cz.muni.fi.lessappcache.parser.ParsingContext
-
-
Setter of loaded resources
-
-
setMode(String) - Method in class cz.muni.fi.lessappcache.parser.ManifestParser
-
-
Setter of current mode
-
-
setMode(String) - Method in class cz.muni.fi.lessappcache.parser.modules.ModuleOutput
-
-
Setter for parser mode
-
-
setMode(String) - Method in class cz.muni.fi.lessappcache.parser.ParsingContext
-
-
Setter for mode
-
-
setPriority(double) - Method in class cz.muni.fi.lessappcache.parser.modules.AbstractModule
-
 
-
setPriority(double) - Method in interface cz.muni.fi.lessappcache.parser.modules.Module
-
-
Sets priority in which the modules should be executed.
-
-
SettingsModule - Class in cz.muni.fi.lessappcache.parser.modules
-
-
Module for parsing resources in SETTINGS: section.
-
-
SettingsModule() - Constructor for class cz.muni.fi.lessappcache.parser.modules.SettingsModule
-
-
Constructs module, sets priority and define possible settings
-
-
START - Static variable in class cz.muni.fi.lessappcache.parser.modules.ModulePhases
-
-
Before any other module
-
-
- - - -

V

-
-
valueOf(String) - Static method in enum cz.muni.fi.lessappcache.parser.modules.ModuleControl
-
-
Returns the enum constant of this type with the specified name.
-
-
values() - Static method in enum cz.muni.fi.lessappcache.parser.modules.ModuleControl
-
-
Returns an array containing the constants of this enum type, in -the order they are declared.
-
-
- - - -

W

-
-
writeFile(List<String>, Path) - Static method in class cz.muni.fi.lessappcache.filesystem.FileUtils
-
-
Writes lines to file on given path
-
-
-A C E F G H I L M N P R S V W 
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/index.html b/target/site/apidocs/index.html deleted file mode 100644 index df69098..0000000 --- a/target/site/apidocs/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -LessAppcache 1.0 API - - - - - - - - - -<noscript> -<div>JavaScript is disabled on your browser.</div> -</noscript> -<h2>Frame Alert</h2> -<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="overview-summary.html">Non-frame version</a>.</p> - - - diff --git a/target/site/apidocs/overview-frame.html b/target/site/apidocs/overview-frame.html deleted file mode 100644 index 489d202..0000000 --- a/target/site/apidocs/overview-frame.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - -Overview List (LessAppcache 1.0 API) - - - - - - -

 

- - diff --git a/target/site/apidocs/overview-summary.html b/target/site/apidocs/overview-summary.html deleted file mode 100644 index 8c4b3a8..0000000 --- a/target/site/apidocs/overview-summary.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - -Overview (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

LessAppcache 1.0 API

-
- - -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/overview-tree.html b/target/site/apidocs/overview-tree.html deleted file mode 100644 index 90b904f..0000000 --- a/target/site/apidocs/overview-tree.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - -Class Hierarchy (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - - -
-

Class Hierarchy

- -

Interface Hierarchy

-
    -
  • cz.muni.fi.lessappcache.filters.Filter
  • -
  • cz.muni.fi.lessappcache.parser.modules.Module
  • -
-

Enum Hierarchy

- -
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/package-list b/target/site/apidocs/package-list deleted file mode 100644 index 97cfc81..0000000 --- a/target/site/apidocs/package-list +++ /dev/null @@ -1,6 +0,0 @@ -cz.muni.fi.lessappcache -cz.muni.fi.lessappcache.filesystem -cz.muni.fi.lessappcache.filters -cz.muni.fi.lessappcache.importer -cz.muni.fi.lessappcache.parser -cz.muni.fi.lessappcache.parser.modules diff --git a/target/site/apidocs/resources/background.gif b/target/site/apidocs/resources/background.gif deleted file mode 100644 index f471940..0000000 Binary files a/target/site/apidocs/resources/background.gif and /dev/null differ diff --git a/target/site/apidocs/resources/tab.gif b/target/site/apidocs/resources/tab.gif deleted file mode 100644 index 1a73a83..0000000 Binary files a/target/site/apidocs/resources/tab.gif and /dev/null differ diff --git a/target/site/apidocs/resources/titlebar.gif b/target/site/apidocs/resources/titlebar.gif deleted file mode 100644 index 17443b3..0000000 Binary files a/target/site/apidocs/resources/titlebar.gif and /dev/null differ diff --git a/target/site/apidocs/resources/titlebar_end.gif b/target/site/apidocs/resources/titlebar_end.gif deleted file mode 100644 index 3ad78d4..0000000 Binary files a/target/site/apidocs/resources/titlebar_end.gif and /dev/null differ diff --git a/target/site/apidocs/serialized-form.html b/target/site/apidocs/serialized-form.html deleted file mode 100644 index a4aa593..0000000 --- a/target/site/apidocs/serialized-form.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - -Serialized Form (LessAppcache 1.0 API) - - - - - - - -
- - - - - -
- - -
-

Serialized Form

-
-
- -
- -
- - - - - -
- - -

Copyright © 2013. All Rights Reserved.

- - diff --git a/target/site/apidocs/stylesheet.css b/target/site/apidocs/stylesheet.css deleted file mode 100644 index 0aeaa97..0000000 --- a/target/site/apidocs/stylesheet.css +++ /dev/null @@ -1,474 +0,0 @@ -/* Javadoc style sheet */ -/* -Overall document style -*/ -body { - background-color:#ffffff; - color:#353833; - font-family:Arial, Helvetica, sans-serif; - font-size:76%; - margin:0; -} -a:link, a:visited { - text-decoration:none; - color:#4c6b87; -} -a:hover, a:focus { - text-decoration:none; - color:#bb7a2a; -} -a:active { - text-decoration:none; - color:#4c6b87; -} -a[name] { - color:#353833; -} -a[name]:hover { - text-decoration:none; - color:#353833; -} -pre { - font-size:1.3em; -} -h1 { - font-size:1.8em; -} -h2 { - font-size:1.5em; -} -h3 { - font-size:1.4em; -} -h4 { - font-size:1.3em; -} -h5 { - font-size:1.2em; -} -h6 { - font-size:1.1em; -} -ul { - list-style-type:disc; -} -code, tt { - font-size:1.2em; -} -dt code { - font-size:1.2em; -} -table tr td dt code { - font-size:1.2em; - vertical-align:top; -} -sup { - font-size:.6em; -} -/* -Document title and Copyright styles -*/ -.clear { - clear:both; - height:0px; - overflow:hidden; -} -.aboutLanguage { - float:right; - padding:0px 21px; - font-size:.8em; - z-index:200; - margin-top:-7px; -} -.legalCopy { - margin-left:.5em; -} -.bar a, .bar a:link, .bar a:visited, .bar a:active { - color:#FFFFFF; - text-decoration:none; -} -.bar a:hover, .bar a:focus { - color:#bb7a2a; -} -.tab { - background-color:#0066FF; - background-image:url(resources/titlebar.gif); - background-position:left top; - background-repeat:no-repeat; - color:#ffffff; - padding:8px; - width:5em; - font-weight:bold; -} -/* -Navigation bar styles -*/ -.bar { - background-image:url(resources/background.gif); - background-repeat:repeat-x; - color:#FFFFFF; - padding:.8em .5em .4em .8em; - height:auto;/*height:1.8em;*/ - font-size:1em; - margin:0; -} -.topNav { - background-image:url(resources/background.gif); - background-repeat:repeat-x; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; -} -.bottomNav { - margin-top:10px; - background-image:url(resources/background.gif); - background-repeat:repeat-x; - color:#FFFFFF; - float:left; - padding:0; - width:100%; - clear:right; - height:2.8em; - padding-top:10px; - overflow:hidden; -} -.subNav { - background-color:#dee3e9; - border-bottom:1px solid #9eadc0; - float:left; - width:100%; - overflow:hidden; -} -.subNav div { - clear:left; - float:left; - padding:0 0 5px 6px; -} -ul.navList, ul.subNavList { - float:left; - margin:0 25px 0 0; - padding:0; -} -ul.navList li{ - list-style:none; - float:left; - padding:3px 6px; -} -ul.subNavList li{ - list-style:none; - float:left; - font-size:90%; -} -.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { - color:#FFFFFF; - text-decoration:none; -} -.topNav a:hover, .bottomNav a:hover { - text-decoration:none; - color:#bb7a2a; -} -.navBarCell1Rev { - background-image:url(resources/tab.gif); - background-color:#a88834; - color:#FFFFFF; - margin: auto 5px; - border:1px solid #c9aa44; -} -/* -Page header and footer styles -*/ -.header, .footer { - clear:both; - margin:0 20px; - padding:5px 0 0 0; -} -.indexHeader { - margin:10px; - position:relative; -} -.indexHeader h1 { - font-size:1.3em; -} -.title { - color:#2c4557; - margin:10px 0; -} -.subTitle { - margin:5px 0 0 0; -} -.header ul { - margin:0 0 25px 0; - padding:0; -} -.footer ul { - margin:20px 0 5px 0; -} -.header ul li, .footer ul li { - list-style:none; - font-size:1.2em; -} -/* -Heading styles -*/ -div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { - background-color:#dee3e9; - border-top:1px solid #9eadc0; - border-bottom:1px solid #9eadc0; - margin:0 0 6px -8px; - padding:2px 5px; -} -ul.blockList ul.blockList ul.blockList li.blockList h3 { - background-color:#dee3e9; - border-top:1px solid #9eadc0; - border-bottom:1px solid #9eadc0; - margin:0 0 6px -8px; - padding:2px 5px; -} -ul.blockList ul.blockList li.blockList h3 { - padding:0; - margin:15px 0; -} -ul.blockList li.blockList h2 { - padding:0px 0 20px 0; -} -/* -Page layout container styles -*/ -.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { - clear:both; - padding:10px 20px; - position:relative; -} -.indexContainer { - margin:10px; - position:relative; - font-size:1.0em; -} -.indexContainer h2 { - font-size:1.1em; - padding:0 0 3px 0; -} -.indexContainer ul { - margin:0; - padding:0; -} -.indexContainer ul li { - list-style:none; -} -.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { - font-size:1.1em; - font-weight:bold; - margin:10px 0 0 0; - color:#4E4E4E; -} -.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { - margin:10px 0 10px 20px; -} -.serializedFormContainer dl.nameValue dt { - margin-left:1px; - font-size:1.1em; - display:inline; - font-weight:bold; -} -.serializedFormContainer dl.nameValue dd { - margin:0 0 0 1px; - font-size:1.1em; - display:inline; -} -/* -List styles -*/ -ul.horizontal li { - display:inline; - font-size:0.9em; -} -ul.inheritance { - margin:0; - padding:0; -} -ul.inheritance li { - display:inline; - list-style:none; -} -ul.inheritance li ul.inheritance { - margin-left:15px; - padding-left:15px; - padding-top:1px; -} -ul.blockList, ul.blockListLast { - margin:10px 0 10px 0; - padding:0; -} -ul.blockList li.blockList, ul.blockListLast li.blockList { - list-style:none; - margin-bottom:25px; -} -ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { - padding:0px 20px 5px 10px; - border:1px solid #9eadc0; - background-color:#f9f9f9; -} -ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { - padding:0 0 5px 8px; - background-color:#ffffff; - border:1px solid #9eadc0; - border-top:none; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { - margin-left:0; - padding-left:0; - padding-bottom:15px; - border:none; - border-bottom:1px solid #9eadc0; -} -ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { - list-style:none; - border-bottom:none; - padding-bottom:0; -} -table tr td dl, table tr td dl dt, table tr td dl dd { - margin-top:0; - margin-bottom:1px; -} -/* -Table styles -*/ -.contentContainer table, .classUseContainer table, .constantValuesContainer table { - border-bottom:1px solid #9eadc0; - width:100%; -} -.contentContainer ul li table, .classUseContainer ul li table, .constantValuesContainer ul li table { - width:100%; -} -.contentContainer .description table, .contentContainer .details table { - border-bottom:none; -} -.contentContainer ul li table th.colOne, .contentContainer ul li table th.colFirst, .contentContainer ul li table th.colLast, .classUseContainer ul li table th, .constantValuesContainer ul li table th, .contentContainer ul li table td.colOne, .contentContainer ul li table td.colFirst, .contentContainer ul li table td.colLast, .classUseContainer ul li table td, .constantValuesContainer ul li table td{ - vertical-align:top; - padding-right:20px; -} -.contentContainer ul li table th.colLast, .classUseContainer ul li table th.colLast,.constantValuesContainer ul li table th.colLast, -.contentContainer ul li table td.colLast, .classUseContainer ul li table td.colLast,.constantValuesContainer ul li table td.colLast, -.contentContainer ul li table th.colOne, .classUseContainer ul li table th.colOne, -.contentContainer ul li table td.colOne, .classUseContainer ul li table td.colOne { - padding-right:3px; -} -.overviewSummary caption, .packageSummary caption, .contentContainer ul.blockList li.blockList caption, .summary caption, .classUseContainer caption, .constantValuesContainer caption { - position:relative; - text-align:left; - background-repeat:no-repeat; - color:#FFFFFF; - font-weight:bold; - clear:none; - overflow:hidden; - padding:0px; - margin:0px; -} -caption a:link, caption a:hover, caption a:active, caption a:visited { - color:#FFFFFF; -} -.overviewSummary caption span, .packageSummary caption span, .contentContainer ul.blockList li.blockList caption span, .summary caption span, .classUseContainer caption span, .constantValuesContainer caption span { - white-space:nowrap; - padding-top:8px; - padding-left:8px; - display:block; - float:left; - background-image:url(resources/titlebar.gif); - height:18px; -} -.overviewSummary .tabEnd, .packageSummary .tabEnd, .contentContainer ul.blockList li.blockList .tabEnd, .summary .tabEnd, .classUseContainer .tabEnd, .constantValuesContainer .tabEnd { - width:10px; - background-image:url(resources/titlebar_end.gif); - background-repeat:no-repeat; - background-position:top right; - position:relative; - float:left; -} -ul.blockList ul.blockList li.blockList table { - margin:0 0 12px 0px; - width:100%; -} -.tableSubHeadingColor { - background-color: #EEEEFF; -} -.altColor { - background-color:#eeeeef; -} -.rowColor { - background-color:#ffffff; -} -.overviewSummary td, .packageSummary td, .contentContainer ul.blockList li.blockList td, .summary td, .classUseContainer td, .constantValuesContainer td { - text-align:left; - padding:3px 3px 3px 7px; -} -th.colFirst, th.colLast, th.colOne, .constantValuesContainer th { - background:#dee3e9; - border-top:1px solid #9eadc0; - border-bottom:1px solid #9eadc0; - text-align:left; - padding:3px 3px 3px 7px; -} -td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { - font-weight:bold; -} -td.colFirst, th.colFirst { - border-left:1px solid #9eadc0; - white-space:nowrap; -} -td.colLast, th.colLast { - border-right:1px solid #9eadc0; -} -td.colOne, th.colOne { - border-right:1px solid #9eadc0; - border-left:1px solid #9eadc0; -} -table.overviewSummary { - padding:0px; - margin-left:0px; -} -table.overviewSummary td.colFirst, table.overviewSummary th.colFirst, -table.overviewSummary td.colOne, table.overviewSummary th.colOne { - width:25%; - vertical-align:middle; -} -table.packageSummary td.colFirst, table.overviewSummary th.colFirst { - width:25%; - vertical-align:middle; -} -/* -Content styles -*/ -.description pre { - margin-top:0; -} -.deprecatedContent { - margin:0; - padding:10px 0; -} -.docSummary { - padding:0; -} -/* -Formatting effect styles -*/ -.sourceLineNo { - color:green; - padding:0 30px 0 0; -} -h1.hidden { - visibility:hidden; - overflow:hidden; - font-size:.9em; -} -.block { - display:block; - margin:3px 0 0 0; -} -.strong { - font-weight:bold; -} diff --git a/target/test-classes/cz/muni/fi/lessappcache/filesystem/PathUtilsTest.class b/target/test-classes/cz/muni/fi/lessappcache/filesystem/PathUtilsTest.class new file mode 100644 index 0000000..d822856 Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/filesystem/PathUtilsTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/filters/FilterClassLoaderTest.class b/target/test-classes/cz/muni/fi/lessappcache/filters/FilterClassLoaderTest.class new file mode 100644 index 0000000..38741b0 Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/filters/FilterClassLoaderTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/filters/FilterFactoryTest.class b/target/test-classes/cz/muni/fi/lessappcache/filters/FilterFactoryTest.class new file mode 100644 index 0000000..3d7c831 Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/filters/FilterFactoryTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/CommentModuleTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/CommentModuleTest.class new file mode 100644 index 0000000..f4fcd8f Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/CommentModuleTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/ExplicitModuleTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/ExplicitModuleTest.class new file mode 100644 index 0000000..bb9dc09 Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/ExplicitModuleTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/FallbackModuleTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/FallbackModuleTest.class new file mode 100644 index 0000000..f579a2d Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/FallbackModuleTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/FilterModuleTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/FilterModuleTest.class new file mode 100644 index 0000000..3c95267 Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/FilterModuleTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/HeaderModuleTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/HeaderModuleTest.class new file mode 100644 index 0000000..42fb885 Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/HeaderModuleTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoaderTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoaderTest.class new file mode 100644 index 0000000..28f55fc Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/ModuleLoaderTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/NetworkModuleTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/NetworkModuleTest.class new file mode 100644 index 0000000..c34d050 Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/NetworkModuleTest.class differ diff --git a/target/test-classes/cz/muni/fi/lessappcache/parser/modules/SettingsModuleTest.class b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/SettingsModuleTest.class new file mode 100644 index 0000000..bcf5f7c Binary files /dev/null and b/target/test-classes/cz/muni/fi/lessappcache/parser/modules/SettingsModuleTest.class differ