Package net.sourceforge.uiq3.fx603p
Class Op_Infix
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Owned_Operation
-
- net.sourceforge.uiq3.fx603p.Programmable_Operation
-
- net.sourceforge.uiq3.fx603p.Op_Infix
-
- All Implemented Interfaces:
IClear
,IOperation
,IOwned_Operation
,IProgrammable_Operation
,IProgrammable_Operation
final class Op_Infix extends Programmable_Operation
Infix operation as well numeric hex 'B'- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
Constant_Supported
Constant operations.private static short @NotNull []
Display_ExtFn_Text
Text to Display on Program, Print and Debug when ExtFf is active.private short @NotNull []
Display_Text
Text to be displayed in Prg mode.private static Logger
Logger
class logger instanceprivate L_Register.Operation_Type
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.fx603p.Owned_Operation
Owner
-
Fields inherited from interface net.sourceforge.uiq3.fx603p.IProgrammable_Operation
No_Display
-
-
Constructor Summary
Constructors Constructor Description Op_Infix(Calculator Owner, L_Register.Operation_Type Operation, short @NotNull [] Display_Text, @NotNull String Text, boolean Constant_Supported)
Create operation and attach to owning calculator.
-
Method Summary
All Methods Static 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.(package private) static void
Execute_Infix(@NotNull Calculator Owner, L_Register.Operation_Type Operation, boolean Constant_Supported)
Executes an infix operation@NotNull String
Token(short Opcode)
string representation suitable for use with serial I/O.@NotNull String
toString()
Operation as java string-
Methods inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
µReset, µReset
-
-
-
-
Field Detail
-
Display_ExtFn_Text
private static final short @NotNull [] Display_ExtFn_Text
Text to Display on Program, Print and Debug when ExtFf is active.
-
Logger
private static final Logger Logger
class logger instance
-
TAG
private static final String TAG
class logger tag.
-
Constant_Supported
private final boolean Constant_Supported
Constant operations.
-
Display_Text
private final short @NotNull [] Display_Text
Text to be displayed in Prg mode.
-
Operation
@NotNull private final L_Register.Operation_Type 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(Calculator Owner, @NotNull L_Register.Operation_Type Operation, short @NotNull [] Display_Text, @NotNull @NotNull String Text, boolean Constant_Supported)
Create operation and attach to owning calculator.- Parameters:
Owner
- Calculator which will call this Opcode.Operation
- Infix operation to be executed.Display_Text
- Test to be displayed in Prg mode.Text
- Text to be displayed inside the desktop debuggerConstant_Supported
- Constant operation
-
-
Method Detail
-
Execute_Infix
static void Execute_Infix(@NotNull @NotNull Calculator Owner, @NotNull L_Register.Operation_Type Operation, boolean Constant_Supported) throws Error
Executes an infix operation
- Parameters:
Owner
- calculatorOperation
- operationConstant_Supported
- operation supports constant operations- Throws:
Error
- something went wrong
-
Clear
public void Clear(boolean AC)
Reset state - for state full operations.- Parameters:
AC
- All Clear reset- See Also:
IClear.Clear(boolean)
-
Display
public final short @NotNull [] Display(short Opcode)
Display operation in Prg. mode.- 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.- Parameters:
Opcode
- current operation- Throws:
Error
- some errorError
- See Also:
IOperation.Execute(short)
-
Token
@NotNull public @NotNull String Token(short Opcode) throws Op_Error
string representation suitable for use with serial I/O.
- Specified by:
Token
in interfaceIProgrammable_Operation
- Overrides:
Token
in classProgrammable_Operation
- Parameters:
Opcode
- Virtual CPU Operation to be executed- Returns:
- pure ASCII String
- Throws:
Op_Error
-
toString
@NotNull public @NotNull String toString()
Description copied from class:Owned_Operation
Operation as java string- Overrides:
toString
in classOwned_Operation
- Returns:
- String representation
-
-