public final class HasMetadataFunction extends Object implements SoyLibraryAssistedJsSrcFunction
| Modifier and Type | Field and Description |
|---|---|
static HasMetadataFunction |
INSTANCE |
static String |
NAME |
| Modifier and Type | Method and Description |
|---|---|
JsExpr |
computeForJsSrc(List<JsExpr> args)
Computes this function on the given arguments for the JS Source backend.
|
String |
getName()
Gets the name of the Soy function.
|
com.google.common.collect.ImmutableSet<String> |
getRequiredJsLibNames()
Returns a list of Closure library names to require when this function is used.
|
Set<Integer> |
getValidArgsSizes()
Gets the set of valid args list sizes.
|
public static final String NAME
public static final HasMetadataFunction INSTANCE
public String getName()
SoyFunctiongetName in interface SoyFunctionpublic Set<Integer> getValidArgsSizes()
SoyFunctiongetValidArgsSizes in interface SoyFunctionpublic JsExpr computeForJsSrc(List<JsExpr> args)
SoyJsSrcFunctioncomputeForJsSrc in interface SoyJsSrcFunctionargs - The function arguments.public com.google.common.collect.ImmutableSet<String> getRequiredJsLibNames()
SoyLibraryAssistedJsSrcFunctionNote: Return the raw Closure library names, Soy will wrap them in goog.require for you.
getRequiredJsLibNames in interface SoyLibraryAssistedJsSrcFunction