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 boolean
appliesToPosition(int iPos)
Returns true if this issue is relevant to the given positionint
getColumn()
String
getConsoleMessage()
IType
getExpectedType()
int
getLine()
Object[]
getMessageArgs()
ResourceKey
getMessageKey()
String
getPlainMessage()
IParsedElement
getSource()
ISymbolTable
getSymbolTable()
Integer
getTokenEnd()
Integer
getTokenStart()
String
getUIMessage()
void
printStackTrace()
void
resetPositions()
void
resolve(IParserPart scriptPart)
void
setExpectedType(IType argType)
-
-
-
Method Detail
-
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
void resolve(IParserPart scriptPart)
-
resetPositions
void resetPositions()
-
getTokenStart
Integer getTokenStart()
-
getTokenEnd
Integer getTokenEnd()
-
printStackTrace
void printStackTrace()
-
getMessageArgs
Object[] getMessageArgs()
-
getExpectedType
IType getExpectedType()
-
setExpectedType
void setExpectedType(IType argType)
-
getColumn
int getColumn()
-
-