Class Template.Literal

    • Method Detail

      • getValue

        public java.lang.String getValue()
        Gets the value of this literal.
        Returns:
        the literal value.
      • typeCheck

        public Type typeCheck​(Scope<Type> scope)
        Description copied from interface: TypeCheck
        Checks whether the given types within a scope satisfy the constraints.
        Specified by:
        typeCheck in interface TypeCheck
        Parameters:
        scope - the scope to evaluate.
        Returns:
        the type validated by the scope check.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object