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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanappliesToPosition(int iPos)Returns true if this issue is relevant to the given positionintgetColumn()java.lang.StringgetConsoleMessage()ITypegetExpectedType()intgetLine()java.lang.Object[]getMessageArgs()ResourceKeygetMessageKey()java.lang.StringgetPlainMessage()IParsedElementgetSource()ISymbolTablegetSymbolTable()java.lang.IntegergetTokenEnd()java.lang.IntegergetTokenStart()java.lang.StringgetUIMessage()voidprintStackTrace()voidresetPositions()voidresolve(IParserPart scriptPart)voidsetExpectedType(IType argType)
-
-
-
Method Detail
-
getSource
IParsedElement getSource()
- Returns:
- the parsed element that this issue is associated with
-
getConsoleMessage
java.lang.String getConsoleMessage()
- Returns:
- the message for this parse issue formatted for printing out to a console
-
getPlainMessage
java.lang.String getPlainMessage()
- Returns:
- the raw message for this parse issue, with no formatting
-
getUIMessage
java.lang.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
void resolve(IParserPart scriptPart)
-
resetPositions
void resetPositions()
-
getTokenStart
java.lang.Integer getTokenStart()
-
getTokenEnd
java.lang.Integer getTokenEnd()
-
printStackTrace
void printStackTrace()
-
getMessageArgs
java.lang.Object[] getMessageArgs()
-
getExpectedType
IType getExpectedType()
-
setExpectedType
void setExpectedType(IType argType)
-
getColumn
int getColumn()
-
-