public class DarkFeatureFunction extends Object implements com.atlassian.soy.renderer.SoyServerFunction<Boolean>, com.atlassian.soy.renderer.SoyClientFunction
NOTE: To be used carefully - it's usually best to isolate a dark feature in a plugin, and only deliver web resources based on the dark feature condition.
Constructor and Description |
---|
DarkFeatureFunction() |
Modifier and Type | Method and Description |
---|---|
Boolean |
apply(Object... args) |
com.atlassian.soy.renderer.JsExpression |
generate(com.atlassian.soy.renderer.JsExpression... args) |
String |
getName() |
Set<Integer> |
validArgSizes() |
public String getName()
getName
in interface com.atlassian.soy.renderer.SoyFunction
public Boolean apply(Object... args)
apply
in interface com.atlassian.soy.renderer.SoyServerFunction<Boolean>
public Set<Integer> validArgSizes()
validArgSizes
in interface com.atlassian.soy.renderer.SoyFunction
public com.atlassian.soy.renderer.JsExpression generate(com.atlassian.soy.renderer.JsExpression... args)
generate
in interface com.atlassian.soy.renderer.SoyClientFunction
Copyright © 2003–2017 Atlassian. All rights reserved.