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​(PsyContext oContext)
        Description copied from interface: PsyObject
        Execute this object in the current context. Pushes this object into interpreter’s operand stack.
      • invoke

        public void invoke​(PsyContext oContext)
        Description copied from interface: PsyObject
        Invoke this object in the current context. Pushes this object into interpreter’s operand stack.
      • 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.