Class PsyOperator

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.
  • Method Details

    • execute

      public void execute(PsyContext oContext)
      Execute this object in the execution context. Calls the invoke(PsyContext) method.
      Specified by:
      execute in interface PsyObject
      Parameters:
      oContext - the execution context.
    • invoke

      public void invoke(PsyContext oContext)
      Invoke this operator in the execution context performing an action associated with it.
      Specified by:
      invoke in interface PsyExecutable
      Specified by:
      invoke in interface PsyObject
      Parameters:
      oContext - the execution context.
    • perform

      public abstract void perform(PsyContext oContext) throws PsyErrorException
      Perform an action associated with this operator in the given execution context.
      Parameters:
      oContext - the execution context.
      Throws:
      PsyErrorException - when an error occurs.
    • toSyntaxString

      public String toSyntaxString()
      Returns a syntactic string representation of this operator. A syntatctic representation has a form of "--name--", where name is a string returned by getName() method.
      Specified by:
      toSyntaxString in interface PsyObject
      Returns:
      a syntactic string representation of a name of this operator.
    • getName

      public String getName()
      Returns the name of this operator.
      Returns:
      the name of this operator.
    • getPrefix

      public String getPrefix()
      Returns the namespace prefix of this operator.
      Returns:
      the namespace prefix of this operator.
    • getSimpleName

      public String getSimpleName()
      Returns the simple name of this operator.
      Returns:
      the simple name of this operator.