Class Expression

    • Field Detail

      • _type

        protected IType _type
    • Constructor Detail

      • Expression

        public Expression()
    • Method Detail

      • getType

        public IType getType()
        Returns this Expression's IType.
        Specified by:
        getType in interface IHasType
      • getTypeImpl

        protected IType getTypeImpl()
      • setType

        public void setType​(IType type)
        Sets this Expression's IType.
      • getContextType

        public IType getContextType()
        Context type is the type this literal value evaluates as in the context of a containing expression e.g., given the expression, n == "42", the literal "42" is always converted to a Number. This feature is most useful for source code tools that provide source-sensitive help (e.g., rule composer).
        Specified by:
        getContextType in interface IExpression
      • toString

        public abstract String toString()
        Subclasses should return a String representing the parsed expression.
        Overrides:
        toString in class Object