Package gw.lang.parser
Interface IParseIssue
- All Known Subinterfaces:
ICoercionIssue
- All Known Implementing Classes:
DoesNotOverrideFunctionException,ImplicitCoercionError,ImplicitCoercionWarning,NoCtorFoundException,NotImplementedParseException,ObsoleteConstructorWarning,ParseException,ParseIssue,ParseWarning,ParseWarningForDeprecatedMember,PropertyNotFoundException,SymbolNotFoundException,WrongNumberOfArgsException
public interface IParseIssue
-
Method Summary
Modifier and TypeMethodDescriptionbooleanappliesToPosition(int iPos) Returns true if this issue is relevant to the given positionintintgetLine()Object[]voidvoidvoidresolve(IParserPart scriptPart) voidsetExpectedType(IType argType)
-
Method Details
-
getSource
IParsedElement getSource()- Returns:
- the parsed element that this issue is associated with
-
getConsoleMessage
String getConsoleMessage()- Returns:
- the message for this parse issue formatted for printing out to a console
-
getPlainMessage
String getPlainMessage()- Returns:
- the raw message for this parse issue, with no formatting
-
getUIMessage
String getUIMessage()- Returns:
- the message formatted for use by an IDE
-
appliesToPosition
boolean appliesToPosition(int iPos) Returns true if this issue is relevant to the given position -
getLine
int getLine()- Returns:
- the line that this issue is on
-
getSymbolTable
ISymbolTable getSymbolTable()- Returns:
- the symbol table state at the creation of this issue. Can return null if no symbol table is present.
-
getMessageKey
ResourceKey getMessageKey()- Returns:
- the resource key for this ParseIssue, which can be used as a kind of identifier for the type of issue.
-
resolve
-
resetPositions
void resetPositions() -
getTokenStart
Integer getTokenStart() -
getTokenEnd
Integer getTokenEnd() -
printStackTrace
void printStackTrace() -
getMessageArgs
Object[] getMessageArgs() -
getExpectedType
IType getExpectedType() -
setExpectedType
-
getColumn
int getColumn()
-