Package coneforest.psylla.core
Class PsyCommand
- java.lang.Object
-
- coneforest.psylla.core.PsyName
-
- coneforest.psylla.core.PsyCommand
-
- All Implemented Interfaces:
PsyAtomic,PsyConvertableToInteger,PsyConvertableToName,PsyConvertableToReal,PsyConvertableToString,PsyEvaluable,PsyIterable<PsyInteger>,PsyLengthy,PsyObject,PsyScalar<PsyTextual>,PsySequential<PsyInteger>,PsyStreamable<PsyInteger>,PsyTextual,Iterable<PsyInteger>
public class PsyCommand extends PsyName
A representation of Ψ-commandobject.
-
-
Field Summary
-
Fields inherited from interface coneforest.psylla.core.PsyTextual
OPERATORS
-
-
Constructor Summary
Constructors Constructor Description PsyCommand(CharSequence cs)Creates a new Ψ-commandobject with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(PsyContext oContext)Execute this object in the current context.voidinvoke(PsyContext oContext)Invoke this object in the current context.StringtoSyntaxString()Returns a syntactic representation of this object’s value.-
Methods inherited from class coneforest.psylla.core.PsyName
equals, hashCode, psyLength, psyLowerCase, psyToString, psyUpperCase, stringValue
-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface coneforest.psylla.core.PsyIterable
psyStream, psyToArray, psyUnite
-
Methods inherited from interface coneforest.psylla.core.PsyLengthy
isEmpty, psyIsEmpty
-
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, psyClone, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyType, typeName
-
Methods inherited from interface coneforest.psylla.core.PsyStreamable
psyForAll
-
Methods inherited from interface coneforest.psylla.core.PsyTextual
iterator, length, psyCmp, psyEq, psyEval, psyGe, psyGt, psyIndexOfChar, psyIndexOfSubstring, psyLe, psyLt, psySplit, psyToInteger, psyToName, psyToReal
-
-
-
-
Constructor Detail
-
PsyCommand
public PsyCommand(CharSequence cs)
Creates a new Ψ-commandobject with the given name.- Parameters:
cs- a name.
-
-
Method Detail
-
execute
public void execute(PsyContext oContext)
Description copied from interface:PsyObjectExecute this object in the current context. Pushes this object into interpreter’s operand stack.
-
invoke
public void invoke(PsyContext oContext)
Description copied from interface:PsyObjectInvoke this object in the current context. Pushes this object into interpreter’s operand stack.
-
toSyntaxString
public String toSyntaxString()
Description copied from class:PsyNameReturns a syntactic representation of this object’s value. Returns a value string prepended with/.- Specified by:
toSyntaxStringin interfacePsyObject- Overrides:
toSyntaxStringin classPsyName- Returns:
- a syntactic representation of this object’s value.
-
-