public class ParseException extends ParseIssue
| Modifier | Constructor and Description |
|---|---|
|
ParseException(Integer lineNumber,
Integer lineOffset,
Integer tokenColumn,
Integer tokenStart,
Integer tokenEnd,
ISymbolTable symbolTable,
ResourceKey key,
Object... msgArgs) |
|
ParseException(IParserState parserState,
IType typeExpected,
ResourceKey msgKey,
Object... args) |
|
ParseException(IParserState parserState,
ResourceKey messageKey,
Object... args) |
protected |
ParseException(ParseException e) |
| Modifier and Type | Method and Description |
|---|---|
ParseException |
getAlternateException()
An alternate ParseException that may provide additional information.
|
String |
getConsoleMessage()
Override so we can reset the message if need be.
|
IType |
getExpectedType() |
IMemberAccessExpression |
getMemberAccessContext() |
IType[] |
getParamTypesExpected() |
IParameterInfo[][] |
getParamTypesPossible() |
boolean |
isCausedByArgumentList() |
void |
setAlternateException(ParseException alternateException) |
void |
setCausedByArgumentList(boolean bCausedByArgumentList) |
void |
setExpectedType(IType typeExpected)
Sets the expected type information from the parser.
|
void |
setMemberAccessContext(IMemberAccessExpression ma) |
void |
setParamTypesExpected(IType... paramTypesExpected) |
void |
setParamTypesPossible(IParameterInfo[][] paramTypesPossible) |
static ParseException |
shallowCopy(ParseException source) |
String |
toString() |
static ParseException |
wrap(Throwable t,
IParserState state) |
addLineOffset, adjustOffset, appliesToPosition, fillInStackTrace, formatError, getColumn, getContextString, getContextStringNoLineNumbers, getLine, getLineNumber, getLineOffset, getLineReportingOffset, getMessageArgs, getMessageKey, getPlainMessage, getSource, getStateSource, getSymbolTable, getTokenColumn, getTokenEnd, getTokenStart, getUIMessage, makeContextString, resetPositions, resolve, setMessage, setSource, setStateSourceaddSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprintStackTracepublic ParseException(IParserState parserState, ResourceKey messageKey, Object... args)
parserState - The tokenizer in use by the parser (helpful forpublic ParseException(Integer lineNumber, Integer lineOffset, Integer tokenColumn, Integer tokenStart, Integer tokenEnd, ISymbolTable symbolTable, ResourceKey key, Object... msgArgs)
public ParseException(IParserState parserState, IType typeExpected, ResourceKey msgKey, Object... args)
protected ParseException(ParseException e)
public static ParseException wrap(Throwable t, IParserState state)
public static ParseException shallowCopy(ParseException source)
public String getConsoleMessage()
getConsoleMessage in interface IParseIssuegetConsoleMessage in class ParseIssuepublic IType getExpectedType()
getExpectedType in interface IParseIssuegetExpectedType in class ParseIssuepublic void setExpectedType(IType typeExpected)
public IType[] getParamTypesExpected()
public void setParamTypesExpected(IType... paramTypesExpected)
public void setParamTypesPossible(IParameterInfo[][] paramTypesPossible)
public IParameterInfo[][] getParamTypesPossible()
public IMemberAccessExpression getMemberAccessContext()
public void setMemberAccessContext(IMemberAccessExpression ma)
ma - A member access expression context to further qualify
the expected type.public ParseException getAlternateException()
public void setAlternateException(ParseException alternateException)
public boolean isCausedByArgumentList()
public void setCausedByArgumentList(boolean bCausedByArgumentList)
Copyright © 2021. All rights reserved.