public static enum RawTextNode.SourceOffsets.Reason extends Enum<RawTextNode.SourceOffsets.Reason>
| Enum Constant and Description |
|---|
COMMAND
There is an offset because of a textual command like
{sp}. |
COMMENT
There is an offset because of a comment.
|
LITERAL
There is an offset because of a
{literal} block. |
NONE
There is no offset.
|
WHITESPACE
There is an offset because we performed whitespace joining.
|
| Modifier and Type | Method and Description |
|---|---|
static RawTextNode.SourceOffsets.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RawTextNode.SourceOffsets.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RawTextNode.SourceOffsets.Reason COMMAND
{sp}.public static final RawTextNode.SourceOffsets.Reason LITERAL
{literal} block.public static final RawTextNode.SourceOffsets.Reason COMMENT
public static final RawTextNode.SourceOffsets.Reason WHITESPACE
public static final RawTextNode.SourceOffsets.Reason NONE
RawTextNode.concat(java.util.List<com.google.template.soy.soytree.RawTextNode>) because we performed whitespace joining.public static RawTextNode.SourceOffsets.Reason[] values()
for (RawTextNode.SourceOffsets.Reason c : RawTextNode.SourceOffsets.Reason.values()) System.out.println(c);
public static RawTextNode.SourceOffsets.Reason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null