public class MethodHelper extends Object implements Helper<Object>
Handlebars.registerHelpers(Object),
Handlebars.registerHelpers(Class)| Constructor and Description |
|---|
MethodHelper(Method method,
Object source)
Creates a new
MethodHelper. |
public MethodHelper(Method method, Object source)
MethodHelper.method - The method to invoke. Required.source - The source or instance object. Might be null.public CharSequence apply(Object context, Options options) throws IOException
Helperapply in interface Helper<Object>context - The context object.options - The options object.IOException - If a template cannot be loaded.Copyright © 2015. All rights reserved.