Package net.aufdemrand.denizen.scripts

Examples of net.aufdemrand.denizen.scripts.ScriptEntrySet


        return getEntries(data, "script");
    }

    public List<ScriptEntry> getEntries(ScriptEntryData data, String path) {
        if (path == null) path = "script";
        ScriptEntrySet set = getSetFor(path.toUpperCase());
        if (set == null)
            return new ArrayList<ScriptEntry>();
        for (ScriptEntry entry: set.getEntries()) {
            entry.entryData = data.clone();
        }
        return set.getEntries();
    }
View Full Code Here


        }
        return set.getEntries();
    }

    ScriptEntrySet getSetFor(String path) {
        ScriptEntrySet got = scriptsMap.get(path);
        if (got != null) {
            return got.Duplicate();
        }
        List<String> stringEntries = contents.getStringList(path);
        if (stringEntries == null || stringEntries.size() == 0) return null;
        List<ScriptEntry> entries = ScriptBuilder.buildScriptEntries(stringEntries, this, null, null);
        got = new ScriptEntrySet(entries);
        scriptsMap.put(path, got);
        return got.Duplicate();
    }
View Full Code Here

TOP

Related Classes of net.aufdemrand.denizen.scripts.ScriptEntrySet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.