Class PsyCommand

java.lang.Object
coneforest.psylla.core.PsyName
coneforest.psylla.core.PsyCommand
All Implemented Interfaces:
PsyAtomic, PsyConvertableToInteger, PsyConvertableToIntegral, PsyConvertableToReal, PsyEvaluable, PsyIterable<PsyInteger>, PsyLengthy, PsyObject, PsyScalar<PsyTextual>, PsySequential<PsyInteger>, PsyStreamable<PsyInteger>, PsyTextual, Comparable<PsyTextual>, Iterable<PsyInteger>

@Type("command") public class PsyCommand extends PsyName
The representation of command.
  • Constructor Details

    • PsyCommand

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

    • execute

      public void execute(PsyContext oContext)
      Description copied from interface: PsyObject
      Execute this object in the given execution context. Pushes this object into context’s operand stack.
      Parameters:
      oContext - the execution context.
    • invoke

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