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 booleanConstant_SupportedConstant operations.private static short @NotNull []Display_ExtFn_TextText to Display on Program, Print and Debug when ExtFf is active.private short @NotNull []Display_TextText to be displayed in Prg mode.private static LoggerLoggerclass logger instanceprivate L_Register.Operation_TypeOperationInfix operation to be executedprivate static StringTAGclass logger tag.private @NotNull StringTextText 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 voidClear(boolean AC)Reset state - for state full operations.short @NotNull []Display(short Opcode)Display operation in Prg. mode.voidExecute(short Opcode)Execute infix operation.(package private) static voidExecute_Infix(@NotNull Calculator Owner, L_Register.Operation_Type Operation, boolean Constant_Supported)Executes an infix operation@NotNull StringToken(short Opcode)string representation suitable for use with serial I/O.@NotNull StringtoString()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 ErrorExecutes 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 ErrorExecute 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:
Tokenin interfaceIProgrammable_Operation- Overrides:
Tokenin 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_OperationOperation as java string- Overrides:
toStringin classOwned_Operation- Returns:
- String representation
-
-