com.lyncode.jtwig.functions.repository
Class AbstractFunctionRepository

java.lang.Object
  extended by com.lyncode.jtwig.functions.repository.AbstractFunctionRepository
Direct Known Subclasses:
DefaultFunctionRepository

public abstract class AbstractFunctionRepository
extends Object


Constructor Summary
AbstractFunctionRepository(JtwigFunction... jtwigFunctions)
           
 
Method Summary
 void add(JtwigFunction... jtwigFunctions)
           
 void add(JtwigFunction jtwigFunction)
           
 void add(JtwigFunction jtwigFunction, String name, String... aliases)
           
 JtwigFunction retrieve(String functionName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFunctionRepository

public AbstractFunctionRepository(JtwigFunction... jtwigFunctions)
Method Detail

add

public void add(JtwigFunction... jtwigFunctions)

add

public void add(JtwigFunction jtwigFunction)

add

public void add(JtwigFunction jtwigFunction,
                String name,
                String... aliases)

retrieve

public JtwigFunction retrieve(String functionName)
                       throws FunctionNotFoundException
Throws:
FunctionNotFoundException


Copyright © 2014. All Rights Reserved.