Package fmpp.localdatabuilders
Class MapLocalDataBuilder
- java.lang.Object
-
- fmpp.localdatabuilders.MapLocalDataBuilder
-
- All Implemented Interfaces:
LocalDataBuilder
public class MapLocalDataBuilder extends java.lang.Object implements LocalDataBuilder
Trivial local data builder that returns theMappassed to its constructor.
-
-
Constructor Summary
Constructors Constructor Description MapLocalDataBuilder(java.util.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Mapbuild(Engine eng, TemplateEnvironment env)Returns the variables that could be added to the local data.
-
-
-
Method Detail
-
build
public java.util.Map build(Engine eng, TemplateEnvironment env) throws java.lang.Exception
Description copied from interface:LocalDataBuilderReturns the variables that could be added to the local data.- Specified by:
buildin interfaceLocalDataBuilder- Returns:
- the variables to add to the local data. Can be
null. The returned map will not be modified (although technically, badly behaved 3rd party code can modify the values soted in the map...). - Throws:
java.lang.Exception
-
-