Class ConstantParam

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConstantParam
    extends LiteralParam
    The constant parameter of a literal.
    See Also:
    Serialized Form
    • Constructor Detail

      • ConstantParam

        public ConstantParam​(java.lang.String name,
                             boolean pVariablesMayBeUnifiedWithThisConstant)
      • ConstantParam

        public ConstantParam​(java.lang.String name)
      • ConstantParam

        public ConstantParam​(java.lang.String name,
                             Type type)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: LiteralParam
        It is with intention that the equals method does NOT check the type. We assume that the name of a parameter is sufficient to identify it. The type is rather optional to enable efficient processing in some contexts.
        Overrides:
        equals in class LiteralParam
      • toString

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

        public boolean variablesMayBeUnifiedWithThisConstant()