public final class SyntaxVersionUpperBound extends Object
Important: Do not use outside of Soy code (treat as superpackage-private).
| Modifier and Type | Field and Description |
|---|---|
String |
reasonStr
A user-friendly explanation of the reason for the bound.
|
SyntaxVersion |
syntaxVersion
The syntax version upper bound (exclusive!).
|
| Constructor and Description |
|---|
SyntaxVersionUpperBound(SyntaxVersion syntaxVersion,
String reasonStr) |
| Modifier and Type | Method and Description |
|---|---|
static SyntaxVersionUpperBound |
selectLower(SyntaxVersionUpperBound origBound,
SyntaxVersionUpperBound newBound)
Returns the lower of the two given bounds.
|
public final SyntaxVersion syntaxVersion
public final String reasonStr
public SyntaxVersionUpperBound(SyntaxVersion syntaxVersion, String reasonStr)
syntaxVersion - The syntax version upper bound (exclusive!).reasonStr - A user-friendly explanation of the reason for the bound.public static SyntaxVersionUpperBound selectLower(@Nullable SyntaxVersionUpperBound origBound, SyntaxVersionUpperBound newBound)