Package net.sourceforge.uiq3.fx602p
Class Op_Infix
- java.lang.Object
-
- net.sourceforge.uiq3.fx602p.Owned_Operation
-
- net.sourceforge.uiq3.fx602p.Op_Infix
-
- All Implemented Interfaces:
IClear
,IOperation
,IOwned_Operation
,IProgrammable_Operation
final class Op_Infix extends Owned_Operation implements IProgrammable_Operation
Infix operation- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private short @NotNull []
Alpha
Text to be displayed in Prg mode.private boolean
Constant
Constant operations.private static Logger
Logger
Class logger instance.private int
Operation
Infix operation to be executedprivate static String
TAG
Class logger tag.private @NotNull String
Text
Text to be displayed in Debugger.-
Fields inherited from class net.sourceforge.uiq3.fx602p.Owned_Operation
Owner
-
-
Constructor Summary
Constructors Constructor Description Op_Infix(@NotNull Calculator Owner, int Operation, short @NotNull [] Alpha, @NotNull String Text, boolean Constant)
Create operation and attach to owning calculator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Clear(boolean AC)
Reset state - for state full operations.short @NotNull []
Display(short Opcode)
Display operation in Prg. mode.void
Execute(short Opcode)
Execute infix operation.@NotNull String
toString()
Operation as java string-
Methods inherited from class net.sourceforge.uiq3.fx602p.Owned_Operation
µReset
-
-
-
-
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 debuggerConstant
- Constant operation
-
-
Method Detail
-
Clear
public void Clear(boolean AC)
Reset state - for state full operations.- Specified by:
Clear
in interfaceIClear
- 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 interfaceIProgrammable_Operation
- Parameters:
Opcode
- current operation- Returns:
- String to be displayed
- See Also:
IProgrammable_Operation.Display(short)
-
Execute
public void Execute(short Opcode) throws Error
Execute infix operation.- Specified by:
Execute
in interfaceIOperation
- 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 classOwned_Operation
- Returns:
- String respresentation
-
-