Class ParseException

    • Field Detail

      • _paramTypesExpected

        private IType[] _paramTypesExpected
      • _typeExpected

        private IType _typeExpected
      • _bCausedByArgumentList

        private boolean _bCausedByArgumentList
    • Constructor Detail

      • ParseException

        public ParseException​(IParserState parserState,
                              ResourceKey messageKey,
                              java.lang.Object... args)
        Parameters:
        parserState - The tokenizer in use by the parser (helpful for
      • ParseException

        public ParseException​(java.lang.Integer lineNumber,
                              java.lang.Integer lineOffset,
                              java.lang.Integer tokenColumn,
                              java.lang.Integer tokenStart,
                              java.lang.Integer tokenEnd,
                              ISymbolTable symbolTable,
                              ResourceKey key,
                              java.lang.Object... msgArgs)
      • ParseException

        private ParseException​(java.lang.Throwable t,
                               IParserState state)
    • Method Detail

      • getConsoleMessage

        public java.lang.String getConsoleMessage()
        Override so we can reset the message if need be.
        Specified by:
        getConsoleMessage in interface IParseIssue
        Overrides:
        getConsoleMessage in class ParseIssue
        Returns:
        the message for this parse issue formatted for printing out to a console
      • setExpectedType

        public void setExpectedType​(IType typeExpected)
        Sets the expected type information from the parser.
      • getParamTypesExpected

        public IType[] getParamTypesExpected()
      • setParamTypesExpected

        public void setParamTypesExpected​(IType... paramTypesExpected)
      • setParamTypesPossible

        public void setParamTypesPossible​(IParameterInfo[][] paramTypesPossible)
      • getParamTypesPossible

        public IParameterInfo[][] getParamTypesPossible()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable
      • getMemberAccessContext

        public IMemberAccessExpression getMemberAccessContext()
        Returns:
        A member access context expression to further qualify the expected type. Typically the member access expression is an LHS operand in the containing. For example, the member access expression facilitates in TypeKey qualification -- we need the name of a field/property to get an appropriately filtered TypeList for a specific TypeKey on a specific field in an entity.
      • setMemberAccessContext

        public void setMemberAccessContext​(IMemberAccessExpression ma)
        Parameters:
        ma - A member access expression context to further qualify the expected type.
      • getAlternateException

        public ParseException getAlternateException()
        An alternate ParseException that may provide additional information. For example, if the type of script is not know in advance (is it an expression or a program?), the script is first compiled as an expression. If a ParseException is thrown, the script is compiled as a program. If a ParseException is thrown again, the former exception is rethrown with the latter as the 'alternate'.
      • setAlternateException

        public void setAlternateException​(ParseException alternateException)
      • isCausedByArgumentList

        public boolean isCausedByArgumentList()
      • setCausedByArgumentList

        public void setCausedByArgumentList​(boolean bCausedByArgumentList)