Package coneforest.psylla.core
Class PsyCommand
java.lang.Object
coneforest.psylla.core.PsyName
coneforest.psylla.core.PsyCommand
- All Implemented Interfaces:
PsyAtomic
,PsyConvertableToInteger
,PsyConvertableToIntegral
,PsyConvertableToName
,PsyConvertableToReal
,PsyConvertableToString
,PsyEvaluable
,PsyIterable<PsyInteger>
,PsyLengthy
,PsyObject
,PsyScalar<PsyTextual>
,PsySequential<PsyInteger>
,PsyStreamable<PsyInteger>
,PsyTextual
,Iterable<PsyInteger>
A representation of
command
.-
Field Summary
Fields inherited from interface coneforest.psylla.core.PsyTextual
OPERATORS
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newcommand
object with the given name. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(PsyContext oContext) Execute this object in the given execution context.void
invoke
(PsyContext oContext) Invoke this object in the given execution context.Returns a syntactic representation of this object’s value.Methods inherited from class coneforest.psylla.core.PsyName
equals, hashCode, parseLiteral, 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, psyToIntegral, psyToName, psyToReal
-
Constructor Details
-
PsyCommand
Creates a newcommand
object with the given name.- Parameters:
cs
- a name.
-
-
Method Details
-
execute
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
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
Description copied from class:PsyName
Returns a syntactic representation of this object’s value. Returns a value string prepended with/
.- Specified by:
toSyntaxString
in interfacePsyObject
- Overrides:
toSyntaxString
in classPsyName
- Returns:
- a syntactic representation of this object’s value.
-