T - Type of the root of the parse tree. Should be either
SoyFileSetNode or
SoyFileNode, which are the roots produced by
SoyFileSetParser and
SoyFileParser respectively.public final class ParseResult<T extends SoyNode> extends Object
| Constructor and Description |
|---|
ParseResult(T root,
com.google.common.collect.ImmutableCollection<? extends SoySyntaxException> parseErrors) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableCollection<? extends SoySyntaxException> |
getParseErrors()
Returns the errors encountered during parsing.
|
T |
getParseTree()
Returns the root of the parse tree.
|
boolean |
isSuccess()
Whether parsing was successful.
|
public ParseResult(T root, com.google.common.collect.ImmutableCollection<? extends SoySyntaxException> parseErrors)
root - The root of the parse tree.parseErrors - Errors encountered during parsing.public boolean isSuccess()
public T getParseTree()
public com.google.common.collect.ImmutableCollection<? extends SoySyntaxException> getParseErrors()