public abstract class ParamStore extends SoyAbstractValue implements SoyRecord
Important: Do not use outside of Soy code (treat as superpackage-private).
TODO(lukes): there is no need for this class to implement SoyRecord...
| Modifier and Type | Field and Description |
|---|---|
static ParamStore |
EMPTY_INSTANCE |
| Constructor and Description |
|---|
ParamStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
coerceToBoolean()
Coerces this value into a boolean.
|
String |
coerceToString()
Coerces this value into a string.
|
boolean |
equals(Object other)
Compares this value against another for equality in the sense of the '==' operator of Soy.
|
SoyValue |
getField(String name)
Gets a field value of this SoyRecord.
|
int |
hashCode() |
void |
render(LoggingAdvisingAppendable appendable)
Renders this value to the given appendable.
|
abstract ParamStore |
setField(String name,
SoyValueProvider valueProvider)
Sets a field (i.e.
|
booleanValue, floatValue, integerValue, longValue, numberValue, render, renderAndResolve, resolve, status, stringValueclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetFieldProvider, hasFieldbooleanValue, floatValue, integerValue, longValue, numberValue, render, stringValuerenderAndResolve, resolve, statuspublic static final ParamStore EMPTY_INSTANCE
public abstract ParamStore setField(String name, @Nonnull SoyValueProvider valueProvider)
name - The field name to set.valueProvider - A provider of the field value.public SoyValue getField(String name)
SoyRecordpublic boolean coerceToBoolean()
SoyValuecoerceToBoolean in interface SoyValuepublic String coerceToString()
SoyValuecoerceToString in interface SoyValuepublic void render(LoggingAdvisingAppendable appendable) throws IOException
SoyValueThis should behave identically to appendable.append(coerceToString()) but is
provided separately to allow more incremental approaches.
render in interface SoyValueappendable - The appendable to render to.IOExceptionpublic final boolean equals(Object other)
SoyValueequals in interface SoyValueequals in class SoyAbstractValueother - The other value to compare against.