Package gw.lang.parser.exceptions
Class ParseResultsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
gw.lang.parser.exceptions.ParseResultsException
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ICompilableType
private IParsedElement
private List<IParseIssue>
private List<IParseIssue>
private List<IParseIssue>
-
Constructor Summary
ConstructorsConstructorDescriptionParseResultsException
(IParsedElement parsedElement) ParseResultsException
(IParsedElement parsedElement, String message) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T extends IParseIssue>
List<T>findMatchesForKey
(ResourceKey key, List<T> parseExceptions) private static String
getDisplayName
(IType typeExpected) static String
getExpectedTypeName
(IType type) static String
getFeedback
(ICompilableType type, List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings) static String
getFeedback
(List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings) getIssuesFromPos
(int iPos) boolean
boolean
boolean
void
reset
(IParsedElement pe) void
setContextType
(ICompilableType contextType) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
_parsedElement
-
_parseIssues
-
_parseExceptions
-
_parseWarnings
-
_ctxType
-
-
Constructor Details
-
ParseResultsException
-
ParseResultsException
-
-
Method Details
-
getParsedElement
-
getParseIssues
-
hasParseExceptions
public boolean hasParseExceptions() -
getParseExceptions
-
hasOnlyParseWarnings
public boolean hasOnlyParseWarnings() -
hasParseWarnings
public boolean hasParseWarnings() -
getParseWarnings
-
getFeedback
-
getFeedback
public static String getFeedback(List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings) -
getFeedback
public static String getFeedback(ICompilableType type, List<IParseIssue> parseExceptions, List<IParseIssue> parseWarnings) -
getLoader
-
getExpectedTypeName
-
getDisplayName
-
getIssuesFromPos
-
reset
-
getMessage
- Overrides:
getMessage
in classThrowable
-
getParseExceptionsForKey
-
getParseWarningsForKey
-
findMatchesForKey
-
setContextType
-