@Immutable public abstract class TemplateParam extends AbstractVarDefn
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Class and Description |
|---|---|
static class |
TemplateParam.DeclLoc
Enum for the location of the declaration.
|
VarDefn.Kindtype| Constructor and Description |
|---|
TemplateParam(String name,
SoyType type,
boolean isRequired,
boolean isInjected,
String desc) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
abstractEquals(Object o) |
protected int |
abstractHashCode() |
abstract TemplateParam |
cloneEssential() |
abstract TemplateParam.DeclLoc |
declLoc()
Returns the location of the parameter declaration.
|
String |
desc() |
abstract boolean |
equals(Object o) |
abstract int |
hashCode() |
boolean |
isInjected()
Returns whether the param is required.
|
boolean |
isRequired()
Returns whether the param is required.
|
VarDefn.Kind |
kind()
What kind of variable this is (param, local var, etc).
|
clone, localVariableIndex, name, setLocalVariableIndex, typepublic VarDefn.Kind kind()
VarDefnpublic abstract TemplateParam.DeclLoc declLoc()
public boolean isRequired()
public boolean isInjected()
public String desc()
public abstract TemplateParam cloneEssential()
protected boolean abstractEquals(Object o)
protected int abstractHashCode()