Package jason.stdlib

Class string

java.lang.Object
All Implemented Interfaces:
InternalAction, java.io.Serializable

@Manual(literal=".string(argument)",
        hint="checks whether the argument is a string",
        argsHint="the term to be checked",
        argsType="term",
        examples={".string(\"home page\"): true",".string(b(10)): false",".string(b): false",".string(X): false if X is free, true if X is bound to a string"},
        seeAlso={"jason.stdlib.atom","jason.stdlib.list","jason.stdlib.literal","jason.stdlib.number","jason.stdlib.structure","jason.stdlib.ground"})
public class string
extends DefaultInternalAction

Internal action: .string.

Description: checks whether the argument is a string, e.g.: "a".

Parameter:

  • + arg[0] (any term): the term to be checked.

Examples:

  • .string("home page"): true.
  • .string(b(10)): false.
  • .string(b): false.
  • .string(X): false if X is free, true if X is bound to a string.
See Also:
atom, list, literal, number, structure, ground, Serialized Form
  • Field Details

  • Constructor Details

    • string

      public string()
  • Method Details