java.lang.Object
coneforest.psylla.core.PsyOperator
- All Implemented Interfaces:
PsyAtomic
,PsyExecutable
,PsyObject
@Type("operator")
public abstract class PsyOperator
extends Object
implements PsyAtomic, PsyExecutable
The representation of
operator
.-
Field Summary
Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TONAME, PSY_TOSTRING, PSY_TYPE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(PsyContext oContext) Execute this object in the context of the interpreter.getName()
Returns a name of this operator.void
invoke
(PsyContext oContext) Invoke this object in the context of the interpreter performing an action associated with it.abstract void
perform
(PsyContext oContext) Returns a syntactic string representation of this operator.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface coneforest.psylla.core.PsyExecutable
asBinaryOperator, asComparator, asConsumer, asFunction, asPredicate, asSupplier, asUnaryOperator, invokeAndHandle
Methods inherited from interface coneforest.psylla.core.PsyObject
convert, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToName, psyToString, psyType, typeName
-
Method Details
-
execute
Execute this object in the context of the interpreter. Callsinvoke(PsyContext)
method. -
invoke
Invoke this object in the context of the interpreter performing an action associated with it.- Specified by:
invoke
in interfacePsyExecutable
- Specified by:
invoke
in interfacePsyObject
- Parameters:
oContext
- the context.
-
perform
- Throws:
PsyErrorException
-
toSyntaxString
Returns a syntactic string representation of this operator. A syntatctic representation has a form of"--name--"
, wherename
is a string returned bygetName()
method.- Specified by:
toSyntaxString
in interfacePsyObject
- Returns:
- a syntactic string representation of a name of this operator.
-
getName
Returns a name of this operator.- Returns:
- a name.
-
getPrefix
-
getSimpleName
-