Class PsyCommand

    • Constructor Detail

      • PsyCommand

        public PsyCommand​(CharSequence cs)
        Creates a new Ψ-command object with the given name.
        Parameters:
        cs - a name.
    • Method Detail

      • execute

        public void execute​(Interpreter interpreter)
        Description copied from interface: PsyObject
        Execute this object in the context of an interpreter. Pushes this object into interpreter’s operand stack.
        Parameters:
        interpreter - an interpreter.
      • invoke

        public void invoke​(Interpreter interpreter)
        Description copied from interface: PsyObject
        Invoke this object in the context of an interpreter. Pushes this object into interpreter’s operand stack.
        Parameters:
        interpreter - an interpreter.
      • toSyntaxString

        public String toSyntaxString()
        Description copied from class: PsyName
        Returns a syntactic representation of this object’s value. Returns a value string prepended with /.
        Specified by:
        toSyntaxString in interface PsyObject
        Overrides:
        toSyntaxString in class PsyName
        Returns:
        a syntactic representation of this object’s value.