Class Op_Infix

  • All Implemented Interfaces:
    net.sourceforge.uiq3.calculator.IClear, net.sourceforge.uiq3.calculator.IOperation, net.sourceforge.uiq3.calculator.IOwned_Operation, net.sourceforge.uiq3.calculator.IProgrammable_Operation

    final class Op_Infix
    extends Owned_Operation
    implements net.sourceforge.uiq3.calculator.IProgrammable_Operation
    Infix operation
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • Logger

        private static final Logger Logger

        Class logger instance.

      • TAG

        private static final String TAG

        Class logger tag.

      • Alpha

        private final short @NotNull [] Alpha
        Text to be displayed in Prg mode.
      • Constant

        private final boolean Constant
        Constant operations.
      • Operation

        private final int Operation
        Infix operation to be executed
      • Text

        @NotNull
        private final @NotNull String Text
        Text to be displayed in Debugger.
    • Constructor Detail

      • Op_Infix

        Op_Infix​(@NotNull
                 @NotNull Calculator Owner,
                 int Operation,
                 short @NotNull [] Alpha,
                 @NotNull
                 @NotNull String Text,
                 boolean Constant)
        Create operation and attach to owning calculator.
        Parameters:
        Owner - Calculator which will call this Opcode.
        Operation - Infix operation to be executed.
        Alpha - Test to be displayed in Prg mode.
        Text - Text to be displayed inside the desktop debugger
        Constant - Constant operation
    • Method Detail

      • Clear

        public void Clear​(boolean AC)
        Reset state - for state full operations.
        Specified by:
        Clear in interface net.sourceforge.uiq3.calculator.IClear
        Parameters:
        AC - All Clear reset
        See Also:
        IClear.Clear(boolean)
      • Display

        public final short @NotNull [] Display​(short Opcode)
        Display operation in Prg. mode.
        Specified by:
        Display in interface net.sourceforge.uiq3.calculator.IProgrammable_Operation
        Parameters:
        Opcode - current operation
        See Also:
        IProgrammable_Operation.Display(short)
      • Execute

        public void Execute​(short Opcode)
                     throws Error
        Execute infix operation.
        Specified by:
        Execute in interface net.sourceforge.uiq3.calculator.IOperation
        Parameters:
        Opcode - current operation
        Throws:
        Error - some error
        See Also:
        IOperation.Execute(short)
      • toString

        @NotNull
        public @NotNull String toString()
        Operation as java string
        Overrides:
        toString in class Owned_Operation
        Returns:
        String respresentation