| Package | Description |
|---|---|
| com.google.template.soy.base |
Base classes.
|
| com.google.template.soy.base.internal | |
| com.google.template.soy.basetree |
Classes shared by Soy parse trees and expression parse trees.
|
| com.google.template.soy.data.internalutils | |
| com.google.template.soy.error | |
| com.google.template.soy.exprtree |
Expression parse tree.
|
| com.google.template.soy.jbcsrc.restricted | |
| com.google.template.soy.msgs.restricted | |
| com.google.template.soy.soyparse | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| com.google.template.soy.soytree.defn |
Nodes for representing various kinds of variable and parameter definitions.
|
| com.google.template.soy.types.ast |
| Modifier and Type | Field and Description |
|---|---|
static SourceLocation |
SourceLocation.UNKNOWN
A nullish source location.
|
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
SourceLocation.Point.asLocation(String filePath) |
SourceLocation |
SourceLocation.extend(int lines,
int cols)
Returns a new SourceLocation that starts where this SourceLocation starts and ends
lines and cols further than where it ends. |
SourceLocation |
SourceLocation.extend(SourceLocation other)
Returns a new SourceLocation that starts where this SourceLocation starts and ends where
other ends. |
SourceLocation |
SourceLocation.getBeginLocation()
Returns a new location that points to the first character of this location.
|
SourceLocation |
SourceLocation.getEndLocation()
Returns a new location that points to the last character of this location.
|
SourceLocation |
SourceLocation.offsetEndCol(int offset) |
SourceLocation |
SourceLocation.offsetStartCol(int offset) |
| Modifier and Type | Method and Description |
|---|---|
int |
SourceLocation.compareTo(SourceLocation o) |
SourceLocation |
SourceLocation.extend(SourceLocation other)
Returns a new SourceLocation that starts where this SourceLocation starts and ends where
other ends. |
boolean |
SourceLocation.isJustBefore(SourceLocation that)
Returns true if this location ends one character before the other location starts.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SourceLocation |
Identifier.location() |
| Modifier and Type | Method and Description |
|---|---|
static Identifier |
Identifier.create(String identifier,
SourceLocation location)
Creates a new identifier.
|
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
Node.getSourceLocation()
Returns the source location (file path and line number) for this node.
|
| Modifier and Type | Method and Description |
|---|---|
static ExprNode.PrimitiveNode |
InternalValueUtils.convertPrimitiveDataToExpr(PrimitiveData primitiveData,
SourceLocation location)
Converts a primitive data object into a primitive expression node.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SourceLocation |
SoyError.location()
The location where the error occurred.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
ErrorReporter.report(SourceLocation sourceLocation,
SoyErrorKind error,
Object... args)
Reports the given
error, formatted according to args and associated with the
given sourceLocation. |
abstract void |
ErrorReporter.warn(SourceLocation sourceLocation,
SoyErrorKind error,
Object... args)
Reports a warning.
|
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
AbstractExprNode.getSourceLocation() |
| Modifier and Type | Method and Description |
|---|---|
abstract ExprNode.OperatorNode |
Operator.createNode(SourceLocation location)
Creates a node representing this operator.
|
ExprNode.OperatorNode |
Operator.createNode(SourceLocation location,
ExprNode... children)
Creates a node representing this operator, with the given children.
|
static ExprNode.OperatorNode |
Operator.createOperatorNode(SourceLocation location,
String op,
int prec,
ExprNode... children)
Create an operator node, given the token, precedence, and list of children (arguments).
|
static VarRefNode |
VarRefNode.error(SourceLocation location) |
static GlobalNode |
GlobalNode.error(SourceLocation location) |
| Modifier and Type | Field and Description |
|---|---|
protected SourceLocation |
BytecodeProducer.location |
| Modifier and Type | Method and Description |
|---|---|
SoyExpression |
SoyExpression.withSourceLocation(SourceLocation location) |
Statement |
Statement.withSourceLocation(SourceLocation location)
Returns a new
Statement with the source location attached. |
Expression |
Expression.withSourceLocation(SourceLocation location)
Returns an identical
Expression with the given source location. |
| Constructor and Description |
|---|
BytecodeProducer(SourceLocation location) |
Expression(org.objectweb.asm.Type resultType,
Expression.Features features,
SourceLocation location) |
Statement(SourceLocation location) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableSet<SourceLocation> |
SoyMsg.getSourceLocations()
Returns the location(s) of the source file(s) that this message comes from.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SoyMsg.addSourceLocation(SourceLocation sourceLocation) |
SoyMsg.Builder |
SoyMsg.Builder.setSourceLocation(SourceLocation sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
SoyPrintDirective |
PluginResolver.lookupPrintDirective(String name,
int numArgs,
SourceLocation location)
Returns a print directive with the given name and arity.
|
SoyFunction |
PluginResolver.lookupSoyFunction(String name,
int numArgs,
SourceLocation location)
Returns a function with the given name and arity.
|
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
HtmlAttributeNode.getEqualsLocation() |
SourceLocation |
SoyFileNode.getSourceLocation()
Deprecated.
SoyFileNodes don't have source locations.
|
SourceLocation |
SoyFileSetNode.getSourceLocation()
Deprecated.
SoyFileSetNodes don't have source locations.
|
SourceLocation |
AbstractSoyNode.getSourceLocation()
The location in the file from which this node was parsed or derived.
|
SourceLocation |
RawTextNode.SourceOffsets.getSourceLocation(String filePath)
Returns the sourcelocation for the whole span.
|
SourceLocation |
TagName.getTagLocation() |
SourceLocation |
CommandTagAttribute.getValueLocation() |
SourceLocation |
RawTextNode.substringLocation(int start,
int end)
Returns the source location of the given substring.
|
| Modifier and Type | Method and Description |
|---|---|
StackTraceElement |
TemplateNode.createStackTraceElement(SourceLocation srcLocation)
Construct a StackTraceElement that will point to the given source location of the current
template.
|
static LetContentNode |
LetContentNode.forVariable(int id,
SourceLocation sourceLocation,
String varName,
SanitizedContentKind contentKind)
Creates a LetContentNode for a compiler-generated variable.
|
protected void |
TemplateNodeBuilder.setAutoescapeInfo(AutoescapeMode autoescapeMode,
SanitizedContentKind contentKind,
SourceLocation kindLocation) |
TemplateDelegateNodeBuilder |
TemplateDelegateNodeBuilder.setSourceLocation(SourceLocation location) |
TemplateNodeBuilder |
TemplateNodeBuilder.setSourceLocation(SourceLocation location)
Sets the source location.
|
TemplateBasicNodeBuilder |
TemplateBasicNodeBuilder.setSourceLocation(SourceLocation location) |
TemplateDelegateNodeBuilder |
TemplateDelegateNodeBuilder.setSoyDoc(String soyDoc,
SourceLocation soyDocLocation) |
TemplateNodeBuilder |
TemplateNodeBuilder.setSoyDoc(String soyDoc,
SourceLocation soyDocLocation)
Sets the SoyDoc for the node to be built.
|
TemplateBasicNodeBuilder |
TemplateBasicNodeBuilder.setSoyDoc(String soyDoc,
SourceLocation soyDocLocation) |
| Constructor and Description |
|---|
AbstractParentSoyNode(int id,
SourceLocation sourceLocation) |
AbstractSoyNode(int id,
SourceLocation sourceLocation) |
CallBasicNode(int id,
SourceLocation location,
String sourceCalleeName,
String fullCalleeName,
List<CommandTagAttribute> attributes,
ErrorReporter errorReporter) |
CallDelegateNode(int id,
SourceLocation location,
String delCalleeName,
List<CommandTagAttribute> attributes,
ErrorReporter errorReporter) |
CallNode(int id,
SourceLocation location,
String commandName,
List<CommandTagAttribute> attributes,
ErrorReporter reporter)
Protected constructor for use by subclasses.
|
CallParamContentNode(int id,
SourceLocation location,
Identifier key,
CommandTagAttribute kindAttr,
ErrorReporter errorReporter) |
CallParamNode(int id,
SourceLocation sourceLocation,
Identifier key) |
CallParamValueNode(int id,
SourceLocation location,
Identifier key,
ExprNode valueExpr) |
CaseOrDefaultNode(int id,
SourceLocation sourceLocation,
String commandName) |
CommandTagAttribute(Identifier key,
QuoteStyle quoteStyle,
String value,
SourceLocation valueLocation) |
DebuggerNode(int id,
SourceLocation sourceLocation) |
ForIfemptyNode(int id,
SourceLocation location) |
ForNode(int id,
SourceLocation location,
String commandName,
ExprNode expr) |
ForNonemptyNode(int id,
SourceLocation location,
String varName) |
HtmlAttributeNode(int id,
SourceLocation location,
SourceLocation.Point equalsSignLocation) |
HtmlAttributeValueNode(int id,
SourceLocation location,
HtmlAttributeValueNode.Quotes quotes) |
HtmlCloseTagNode(int id,
TagName tagName,
SourceLocation sourceLocation) |
HtmlCommentNode(int id,
SourceLocation sourceLocation) |
HtmlOpenTagNode(int id,
TagName tagName,
SourceLocation sourceLocation,
boolean selfClosing) |
HtmlTagNode(int id,
TagName tagName,
SourceLocation sourceLocation) |
IfCondNode(int id,
SourceLocation location,
String commandName,
ExprNode expr) |
IfElseNode(int id,
SourceLocation sourceLocation) |
IfNode(int id,
SourceLocation sourceLocation) |
LetContentNode(int id,
SourceLocation location,
String varName,
CommandTagAttribute kindAttr,
ErrorReporter errorReporter) |
LetNode(int id,
SourceLocation sourceLocation,
String localVarName) |
LetValueNode(int id,
SourceLocation location,
String varName,
ExprNode expr) |
LogNode(int id,
SourceLocation sourceLocation) |
MsgFallbackGroupNode(int id,
SourceLocation sourceLocation) |
MsgNode(int id,
SourceLocation location,
String commandName,
List<CommandTagAttribute> attributes,
ErrorReporter errorReporter) |
MsgPluralCaseNode(int id,
SourceLocation location,
int caseNumber) |
MsgPluralDefaultNode(int id,
SourceLocation sourceLocation) |
MsgPluralNode(int id,
SourceLocation location,
ExprNode expr,
int offset) |
MsgSelectCaseNode(int id,
SourceLocation location,
String caseValue) |
MsgSelectDefaultNode(int id,
SourceLocation sourceLocation) |
MsgSelectNode(int id,
SourceLocation location,
ExprNode selectExpr) |
MsgSelectNode(int id,
SourceLocation sourceLocation,
ExprRootNode selectExpr,
String baseSelectVarName) |
PrintDirectiveNode(int id,
SourceLocation location,
com.google.common.collect.ImmutableList<ExprNode> args,
SoyPrintDirective printDirective,
boolean isSynthetic) |
PrintNode(int id,
SourceLocation location,
boolean isImplicit,
ExprNode expr,
Iterable<CommandTagAttribute> attributes,
ErrorReporter errorReporter) |
RawTextNode(int id,
String rawText,
SourceLocation sourceLocation) |
RawTextNode(int id,
String rawText,
SourceLocation sourceLocation,
HtmlContext htmlContext) |
RawTextNode(int id,
String rawText,
SourceLocation sourceLocation,
RawTextNode.SourceOffsets offsets) |
SwitchCaseNode(int id,
SourceLocation location,
com.google.common.collect.ImmutableList<ExprNode> exprList) |
SwitchDefaultNode(int id,
SourceLocation sourceLocation) |
SwitchNode(int id,
SourceLocation location,
ExprNode expr) |
VeLogNode(int id,
SourceLocation location,
Identifier name,
List<CommandTagAttribute> attributes,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
SourceLocation |
TemplateParam.nameLocation()
Returns the location of the name.
|
| Constructor and Description |
|---|
HeaderParam(String name,
SourceLocation nameLocation,
SoyType type,
TypeNode typeNode,
boolean isRequired,
boolean isInjected,
String desc) |
SoyDocParam(String name,
boolean isRequired,
String desc,
SourceLocation location) |
TemplateParam(String name,
SoyType type,
boolean isRequired,
boolean isInjected,
String desc,
SourceLocation nameLocation) |
| Modifier and Type | Method and Description |
|---|---|
abstract SourceLocation |
RecordTypeNode.Property.nameLocation() |
abstract SourceLocation |
TypeNode.sourceLocation() |
| Modifier and Type | Method and Description |
|---|---|
static RecordTypeNode |
RecordTypeNode.create(SourceLocation sourceLocation,
Iterable<RecordTypeNode.Property> properties) |
static NamedTypeNode |
NamedTypeNode.create(SourceLocation sourceLocation,
String name) |
static GenericTypeNode |
GenericTypeNode.create(SourceLocation sourceLocation,
String name,
Iterable<? extends TypeNode> arguments) |
static RecordTypeNode.Property |
RecordTypeNode.Property.create(SourceLocation nameLocation,
String name,
TypeNode type) |