| Package | Description |
|---|---|
| com.google.template.soy.soytree.defn |
Nodes for representing various kinds of variable and parameter definitions.
|
| com.google.template.soy.types |
Classes that represent Soy parameter type declarations.
|
| com.google.template.soy.types.ast |
| Modifier and Type | Method and Description |
|---|---|
TypeNode |
HeaderParam.getTypeNode()
Returns the TypeNode.
|
| Constructor and Description |
|---|
HeaderParam(String name,
SourceLocation nameLocation,
SoyType type,
TypeNode typeNode,
boolean isRequired,
boolean isInjected,
String desc) |
| Modifier and Type | Method and Description |
|---|---|
SoyType |
SoyTypeRegistry.getOrCreateType(TypeNode node,
ErrorReporter errorReporter)
Converts a TypeNode into a SoyType.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenericTypeNode
A typename with type arguments (eg, list
|
class |
NamedTypeNode
A simple named type (may be an intrinsic type, '?', or a custom type).
|
class |
RecordTypeNode
A record type (eg, [a: someType, b: otherType]).
|
class |
UnionTypeNode
A union type (eg, a|b).
|
| Modifier and Type | Method and Description |
|---|---|
abstract TypeNode |
RecordTypeNode.Property.type() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableList<TypeNode> |
GenericTypeNode.arguments()
All the type parameters, possibly empty.
|
abstract com.google.common.collect.ImmutableList<TypeNode> |
UnionTypeNode.candidates() |
| Modifier and Type | Method and Description |
|---|---|
static RecordTypeNode.Property |
RecordTypeNode.Property.create(SourceLocation nameLocation,
String name,
TypeNode type) |
| Modifier and Type | Method and Description |
|---|---|
static UnionTypeNode |
UnionTypeNode.create(Iterable<TypeNode> candidates) |
static GenericTypeNode |
GenericTypeNode.create(SourceLocation sourceLocation,
String name,
Iterable<? extends TypeNode> arguments) |