- All Superinterfaces:
PsyObject
- All Known Implementing Classes:
PsyConcurrentModificationException
,PsyDictStackUnderflowException
,PsyDirectoryNotEmptyException
,PsyErrorException
,PsyFileAccessDeniedException
,PsyFileExistsException
,PsyFileNotFoundException
,PsyFileSystemErrorException
,PsyInterruptException
,PsyInvalidContextException
,PsyInvalidExitException
,PsyInvalidExternalException
,PsyInvalidRegExpException
,PsyInvalidStateException
,PsyIOErrorException
,PsyLimitCheckException
,PsyNotDirectoryException
,PsyNotImplementedException
,PsyNotLinkException
,PsyOperator
,PsyProc
,PsyRangeCheckException
,PsySecurityErrorException
,PsyStackUnderflowException
,PsySyntaxErrorException
,PsyTypeCheckException
,PsyUndefinedException
,PsyUndefinedResultException
,PsyUnmatchedMarkException
,PsyUnregisteredException
,PsyUnsupportedException
-
Field Summary
Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T extends PsyObject>
BinaryOperator<T> asBinaryOperator
(PsyContext oContext) Returns anBinaryOperator
view of thisexecutable
.default <T extends PsyObject>
Comparator<T> asComparator
(PsyContext oContext) Returns anComparator
view of thisexecutable
.asConsumer
(PsyContext oContext) Returns anConsumer
view of thisexecutable
.asFunction
(PsyContext oContext) Returns aFunction
view of thisexecutable
.asPredicate
(PsyContext oContext) Returns aPredicate
view of thisexecutable
.asSupplier
(PsyContext oContext) Returns anSupplier
view of thisexecutable
.default <T extends PsyObject>
UnaryOperator<T> asUnaryOperator
(PsyContext oContext) Returns anUnaryOperator
view of thisexecutable
.void
invoke
(PsyContext oContext) Invoke thisobject
in the given execution context.default void
invokeAndHandle
(PsyContext oContext) Methods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
-
Method Details
-
invoke
Description copied from interface:PsyObject
Invoke thisobject
in the given execution context. Pushes thisobject
into context’s operand stack. -
invokeAndHandle
-
asPredicate
Returns aPredicate
view of thisexecutable
.- Type Parameters:
T
- the type of the input to the predicate.- Parameters:
oContext
- thecontext
in which this predicate will be invoked.- Returns:
- a
Predicate
view of thisexecutable
-
asFunction
Returns aFunction
view of thisexecutable
.- Type Parameters:
T
- the type of the input to the function.R
- the type of the return value of the function.- Parameters:
oContext
- thecontext
in which this function will be invoked.- Returns:
- a
Function
view of thisexecutable
-
asUnaryOperator
Returns anUnaryOperator
view of thisexecutable
.- Type Parameters:
T
- the type of the input to the operator and its return value.- Parameters:
oContext
- thecontext
in which this operator will be invoked.- Returns:
- an
UnaryOperator
view of thisexecutable
-
asBinaryOperator
Returns anBinaryOperator
view of thisexecutable
.- Type Parameters:
T
- the type of the inputs to the operator and its return value.- Parameters:
oContext
- thecontext
in which this operator will be invoked.- Returns:
- an
BinaryOperator
view of thisexecutable
-
asComparator
Returns anComparator
view of thisexecutable
.- Type Parameters:
T
- the type of the inputs to the comparator.- Parameters:
oContext
- thecontext
in which this comparator will be invoked.- Returns:
- an
Comparator
view of thisexecutable
-
asSupplier
Returns anSupplier
view of thisexecutable
.- Type Parameters:
T
- the type of the return value of the supplier.- Parameters:
oContext
- thecontext
in which this supplier will be invoked.- Returns:
- an
Supplier
view of thisexecutable
-
asConsumer
Returns anConsumer
view of thisexecutable
.- Type Parameters:
T
- the type of the input to the consumer.- Parameters:
oContext
- thecontext
in which this consumer will be invoked.- Returns:
- an
Consumer
view of thisexecutable
-