Enum Token
- java.lang.Object
-
- java.lang.Enum<Token>
-
- net.sourceforge.uiq3.fx603p.Token
-
- All Implemented Interfaces:
Serializable
,Comparable<Token>
public enum Token extends Enum<Token>
The Inv key was clicked- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Enum Constant Summary
Enum Constants Enum Constant Description abc
a b/cABS
ABSAC
ACAlpha
AlphaAND
Extended function Logical ANDArc_Cos
arccosArc_CosH
arccoshArc_Sin
arcsinArc_SinH
arcsinhArc_Tan
arctanArcTanH
arctanhBIN
Extended function CompComp
Extended function CompCos
cosCosH
coshdc
d/cDEC
Extended function CompDEG
DEGDiv
DivDMS
DegreeDot
DotDSZ
DSZE_Power
E_PowerENG
ENGEqual
EqualEXE
EXEEXP
EXPFactorial
factorialFEXE
Extended function 2ndF EXEFIX0
FIX0FIX1
FIX1FIX2
FIX2FIX3
FIX3FIX4
FIX4FIX5
FIX5FIX6
FIX6FIX7
FIX7FIX8
FIX8FIX9
FIX9Frac
FRACGOTO0
GOTO0GOTO1
GOTO1GOTO2
GOTO2GOTO3
GOTO3GOTO4
GOTO4GOTO5
GOTO5GOTO6
GOTO6GOTO7
GOTO7GOTO8
GOTO8GOTO9
GOTO9GRA
GRAGSB0
GSB0GSBP0
GSBP0GSBP1
GSBP1GSBP10
GSBP10GSBP11
GSBP11GSBP12
GSBP12GSBP13
GSBP13GSBP14
GSBP14GSBP15
GSBP15GSBP16
GSBP16GSBP17
GSBP17GSBP18
GSBP18GSBP19
GSBP19GSBP2
GSBP2GSBP3
GSBP3GSBP4
GSBP4GSBP5
GSBP5GSBP6
GSBP6GSBP7
GSBP7GSBP8
GSBP8GSBP9
GSBP9HEX
Extended function CompHLT
HLTIND
INDINT
INTinvENG
invENGISZ
ISZLBL0
LBL0LBL1
LBL1LBL2
LBL2LBL3
LBL3LBL4
LBL4LBL5
LBL5LBL6
LBL6LBL7
LBL7LBL8
LBL8LBL9
LBL9ln
lnLOAD
LOADlog
logM_Minus_00
M_Minus_00M_Minus_10
M_Minus_10M_Minus_1F
M_Minus_1FM_Minus_F
M_Minus_FM_Plus_00
M_Plus_00M_Plus_10
M_Plus_10M_Plus_1F
M_Plus_1FM_Plus_F
M_Plus_FMAC
MACMin00
Min00Min10
Min10Min1F
Min1FMinF
MinFMinus
MinusMR00
MR00MR10
MR10MR1F
MR1FMRF
MRFMult
MultNEG
Extended function NegateNOP
NOPNOT
Extended function Bitwise notNum_0
Num_0Num_1
Num_1Num_2
Num_2Num_3
Num_3Num_4
Num_4Num_5
Num_5Num_6
Num_6Num_7
Num_7Num_8
Num_8Num_9
Num_9Num_a
Extended function HEX number ANum_B
Extended function HEX number BNum_C
Extended function HEX number CNum_D
Extended function HEX number DNum_E
Extended function HEX number ENum_F
Extended function HEX number AOCT
Extended function CompOne_Div
One_DivOR
Extended function Logical ORP_Close
P_CloseP_Open
P_OpenP_R
P_RP0
P0P1
P1P10
P0P11
P1P12
P2P13
P3P14
P4P15
P5P16
P6P17
P7P18
P8P19
P9P2
P2P3
P3P4
P4P5
P5P6
P6P7
P7P8
P8P9
P9PAUSE
PAUSEPEEK
Extended function PEEK MemoryPercent
PercentPlus
PlusPlus_Minus
Plus_MinusPOKE
Extended function POKE MemoryPower
PowerPRT
Extended function PrintR_P
R_PRAD
RADRAN
RANRND0
RND0RND1
RND1RND2
RND2RND3
RND3RND4
RND4RND5
RND5RND6
RND6RND7
RND7RND8
RND8RND9
RND9Root
RootRSLOAD
Extended function RS232 SaveRSSAVE
Extended function RS232 SaveSAC
SACSAVE
SAVESDMS
invDegreeSEXE
SEXEsin
sinsinh
sinhSn
SnSn1
Sn1Square
SquareSquare_Root
Square_RootStop
Stoptan
tantanh
tanhTen_Power
Ten_PowerVER
Extended function VerifyX_Equal_0
X_Equal_0X_Equal_F
X_Equal_FX_Greater_Equal_0
X_Greater_Equal_0X_Greater_Equal_F
X_Greater_Equal_FX_M00
X_M00X_M10
X_M10X_M1F
X_M1FX_MF
X_MFX_Y
X_YxD
xDxDEL
xDELxMean
xMeanXOR
Extended function Exclusive ORπ
Pi
-
Field Summary
Fields Modifier and Type Field Description static short
ExFn
Extended function Prefixstatic short
ExFn_End
last ExtFn Opcodestatic short
ExFn_Mask
Mask to turn exffn opcodes into standart opcodes.static short
ExFn_Start
First ExtFn Opcodestatic short
Group
the tokens are grouped in 16 elements.static int
Mask_High_Byte
static short
Null
Null Token.short
Opcode
numeric id of the tokenstatic short
P1_
GSP and P 10 … 19static short
P1_End
GSP and P 10 … 19static short
P1_Start
GSP and P 10 … 19static short
Plus_M_20
Plus_M_20static short
Plus_M_20_End
last ExtFn Opcodestatic short
Plus_M_20_Start
First ExtFn Opcodestatic short
Plus_M_40
Plus_M_40static short
Plus_M_40_End
last ExtFn Opcodestatic short
Plus_M_40_Start
First ExtFn Opcodestatic short
Plus_M_60
Plus_M_60static short
Plus_M_60_End
last ExtFn Opcodestatic short
Plus_M_60_Start
First ExtFn Opcodestatic short
Plus_M_80
Plus_M_80static short
Plus_M_80_End
last ExtFn Opcodestatic short
Plus_M_80_Start
First ExtFn Opcode@NotNull String
Text
string representation used for example serial IO.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static short @Nullable []
Digits_To_Opcode(@Nullable CharSequence Text)
convert a string with digits (including hex) to opcodesstatic boolean
Is_Compare(short Test_Token)
Test if a token is a program token (P0 ..(package private) static boolean
Is_End_Program(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is an end of program — which is either the stop token or begin of another programstatic boolean
Is_EXE(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is a program token (P0 ..static boolean
Is_ExtFn(short Opcode)
test if the opcode is an exfn opcodestatic boolean
Is_Goto(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is a program token (P0 ..static boolean
Is_HLT(short Test_Token)
Test if a token is a program token (P0 ..static boolean
Is_Label(short Test_Token)
Test if a token is a program token (P0 ..static boolean
Is_Num(short Test_Token)
Test if a token is a numeric token (0 .. 9)static boolean
Is_P1_(short Opcode)
static boolean
Is_Plane_Switch(short Test_Token)
Test if a token is a plane switch token (Alpha ..static boolean
Is_Plane_Switch_Or_Alpha(short Test_Token)
Test if a token is invisible (Plus_M_20 ..static boolean
Is_Plus_M_20(short Opcode)
static boolean
Is_Plus_M_40(short Opcode)
static boolean
Is_Plus_M_60(short Opcode)
static boolean
Is_Plus_M_80(short Opcode)
static boolean
Is_Program(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is a program token (P0 ..static boolean
Is_Rnd(short Test_Token)
Test if a token is a numeric token (0 .. 9)static short
Memory_Opcode(@NotNull Token Base_M_Token, @NotNull Token Base_MF_Token, @NotNull String Number_Text)
Create opcode forint
Opcode_High()
int
Opcode_Low()
static int
Opcode_To_Num(short Opcode)
Convert a numeric token to the its numeric value.static @Nullable String
Opcode_To_Text(short Opcode)
get m database value.static short
String_To_Opcode(@NotNull String Text)
get Token from string@NotNull String
toString()
static @NotNull Token
value(short Opcode)
get Token from op codestatic Token
valueOf(String name)
Returns the enum constant of this type with the specified name.static Token[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
abc
public static final Token abc
a b/c
-
ABS
public static final Token ABS
ABS
-
AC
public static final Token AC
AC
-
Alpha
public static final Token Alpha
Alpha
-
AND
public static final Token AND
Extended function Logical AND
-
Arc_Cos
public static final Token Arc_Cos
arccos
-
Arc_CosH
public static final Token Arc_CosH
arccosh
-
Arc_Sin
public static final Token Arc_Sin
arcsin
-
Arc_SinH
public static final Token Arc_SinH
arcsinh
-
Arc_Tan
public static final Token Arc_Tan
arctan
-
ArcTanH
public static final Token ArcTanH
arctanh
-
BIN
public static final Token BIN
Extended function Comp
-
Comp
public static final Token Comp
Extended function Comp
-
Cos
public static final Token Cos
cos
-
CosH
public static final Token CosH
cosh
-
dc
public static final Token dc
d/c
-
DEC
public static final Token DEC
Extended function Comp
-
DEG
public static final Token DEG
DEG
-
Div
public static final Token Div
Div
-
DMS
public static final Token DMS
Degree
-
Dot
public static final Token Dot
Dot
-
DSZ
public static final Token DSZ
DSZ
-
E_Power
public static final Token E_Power
E_Power
-
ENG
public static final Token ENG
ENG
-
Equal
public static final Token Equal
Equal
-
EXE
public static final Token EXE
EXE
-
EXP
public static final Token EXP
EXP
-
Factorial
public static final Token Factorial
factorial
-
FEXE
public static final Token FEXE
Extended function 2ndF EXE
-
FIX0
public static final Token FIX0
FIX0
-
FIX1
public static final Token FIX1
FIX1
-
FIX2
public static final Token FIX2
FIX2
-
FIX3
public static final Token FIX3
FIX3
-
FIX4
public static final Token FIX4
FIX4
-
FIX5
public static final Token FIX5
FIX5
-
FIX6
public static final Token FIX6
FIX6
-
FIX7
public static final Token FIX7
FIX7
-
FIX8
public static final Token FIX8
FIX8
-
FIX9
public static final Token FIX9
FIX9
-
Frac
public static final Token Frac
FRAC
-
GOTO0
public static final Token GOTO0
GOTO0
-
GOTO1
public static final Token GOTO1
GOTO1
-
GOTO2
public static final Token GOTO2
GOTO2
-
GOTO3
public static final Token GOTO3
GOTO3
-
GOTO4
public static final Token GOTO4
GOTO4
-
GOTO5
public static final Token GOTO5
GOTO5
-
GOTO6
public static final Token GOTO6
GOTO6
-
GOTO7
public static final Token GOTO7
GOTO7
-
GOTO8
public static final Token GOTO8
GOTO8
-
GOTO9
public static final Token GOTO9
GOTO9
-
GRA
public static final Token GRA
GRA
-
GSB0
public static final Token GSB0
GSB0
-
GSBP0
public static final Token GSBP0
GSBP0
-
GSBP1
public static final Token GSBP1
GSBP1
-
GSBP10
public static final Token GSBP10
GSBP10
-
GSBP11
public static final Token GSBP11
GSBP11
-
GSBP12
public static final Token GSBP12
GSBP12
-
GSBP13
public static final Token GSBP13
GSBP13
-
GSBP14
public static final Token GSBP14
GSBP14
-
GSBP15
public static final Token GSBP15
GSBP15
-
GSBP16
public static final Token GSBP16
GSBP16
-
GSBP17
public static final Token GSBP17
GSBP17
-
GSBP18
public static final Token GSBP18
GSBP18
-
GSBP19
public static final Token GSBP19
GSBP19
-
GSBP2
public static final Token GSBP2
GSBP2
-
GSBP3
public static final Token GSBP3
GSBP3
-
GSBP4
public static final Token GSBP4
GSBP4
-
GSBP5
public static final Token GSBP5
GSBP5
-
GSBP6
public static final Token GSBP6
GSBP6
-
GSBP7
public static final Token GSBP7
GSBP7
-
GSBP8
public static final Token GSBP8
GSBP8
-
GSBP9
public static final Token GSBP9
GSBP9
-
HEX
public static final Token HEX
Extended function Comp
-
HLT
public static final Token HLT
HLT
-
IND
public static final Token IND
IND
-
INT
public static final Token INT
INT
-
invENG
public static final Token invENG
invENG
-
ISZ
public static final Token ISZ
ISZ
-
LBL0
public static final Token LBL0
LBL0
-
LBL1
public static final Token LBL1
LBL1
-
LBL2
public static final Token LBL2
LBL2
-
LBL3
public static final Token LBL3
LBL3
-
LBL4
public static final Token LBL4
LBL4
-
LBL5
public static final Token LBL5
LBL5
-
LBL6
public static final Token LBL6
LBL6
-
LBL7
public static final Token LBL7
LBL7
-
LBL8
public static final Token LBL8
LBL8
-
LBL9
public static final Token LBL9
LBL9
-
ln
public static final Token ln
ln
-
LOAD
public static final Token LOAD
LOAD
-
log
public static final Token log
log
-
M_Minus_00
public static final Token M_Minus_00
M_Minus_00
-
M_Minus_10
public static final Token M_Minus_10
M_Minus_10
-
M_Minus_1F
public static final Token M_Minus_1F
M_Minus_1F
-
M_Minus_F
public static final Token M_Minus_F
M_Minus_F
-
M_Plus_00
public static final Token M_Plus_00
M_Plus_00
-
M_Plus_10
public static final Token M_Plus_10
M_Plus_10
-
M_Plus_1F
public static final Token M_Plus_1F
M_Plus_1F
-
M_Plus_F
public static final Token M_Plus_F
M_Plus_F
-
MAC
public static final Token MAC
MAC
-
Min00
public static final Token Min00
Min00
-
Min10
public static final Token Min10
Min10
-
Min1F
public static final Token Min1F
Min1F
-
MinF
public static final Token MinF
MinF
-
Minus
public static final Token Minus
Minus
-
MR00
public static final Token MR00
MR00
-
MR10
public static final Token MR10
MR10
-
MR1F
public static final Token MR1F
MR1F
-
MRF
public static final Token MRF
MRF
-
Mult
public static final Token Mult
Mult
-
NEG
public static final Token NEG
Extended function Negate
-
NOP
public static final Token NOP
NOP
-
NOT
public static final Token NOT
Extended function Bitwise not
-
Num_0
public static final Token Num_0
Num_0
-
Num_1
public static final Token Num_1
Num_1
-
Num_2
public static final Token Num_2
Num_2
-
Num_3
public static final Token Num_3
Num_3
-
Num_4
public static final Token Num_4
Num_4
-
Num_5
public static final Token Num_5
Num_5
-
Num_6
public static final Token Num_6
Num_6
-
Num_7
public static final Token Num_7
Num_7
-
Num_8
public static final Token Num_8
Num_8
-
Num_9
public static final Token Num_9
Num_9
-
Num_a
public static final Token Num_a
Extended function HEX number A
-
Num_B
public static final Token Num_B
Extended function HEX number B
-
Num_C
public static final Token Num_C
Extended function HEX number C
-
Num_D
public static final Token Num_D
Extended function HEX number D
-
Num_E
public static final Token Num_E
Extended function HEX number E
-
Num_F
public static final Token Num_F
Extended function HEX number A
-
OCT
public static final Token OCT
Extended function Comp
-
One_Div
public static final Token One_Div
One_Div
-
OR
public static final Token OR
Extended function Logical OR
-
P_Close
public static final Token P_Close
P_Close
-
P_Open
public static final Token P_Open
P_Open
-
P_R
public static final Token P_R
P_R
-
P0
public static final Token P0
P0
-
P1
public static final Token P1
P1
-
P10
public static final Token P10
P0
-
P11
public static final Token P11
P1
-
P12
public static final Token P12
P2
-
P13
public static final Token P13
P3
-
P14
public static final Token P14
P4
-
P15
public static final Token P15
P5
-
P16
public static final Token P16
P6
-
P17
public static final Token P17
P7
-
P18
public static final Token P18
P8
-
P19
public static final Token P19
P9
-
P2
public static final Token P2
P2
-
P3
public static final Token P3
P3
-
P4
public static final Token P4
P4
-
P5
public static final Token P5
P5
-
P6
public static final Token P6
P6
-
P7
public static final Token P7
P7
-
P8
public static final Token P8
P8
-
P9
public static final Token P9
P9
-
PAUSE
public static final Token PAUSE
PAUSE
-
PEEK
public static final Token PEEK
Extended function PEEK Memory
-
Percent
public static final Token Percent
Percent
-
Plus
public static final Token Plus
Plus
-
Plus_Minus
public static final Token Plus_Minus
Plus_Minus
-
POKE
public static final Token POKE
Extended function POKE Memory
-
Power
public static final Token Power
Power
-
PRT
public static final Token PRT
Extended function Print
-
R_P
public static final Token R_P
R_P
-
RAD
public static final Token RAD
RAD
-
RAN
public static final Token RAN
RAN
-
RND0
public static final Token RND0
RND0
-
RND1
public static final Token RND1
RND1
-
RND2
public static final Token RND2
RND2
-
RND3
public static final Token RND3
RND3
-
RND4
public static final Token RND4
RND4
-
RND5
public static final Token RND5
RND5
-
RND6
public static final Token RND6
RND6
-
RND7
public static final Token RND7
RND7
-
RND8
public static final Token RND8
RND8
-
RND9
public static final Token RND9
RND9
-
Root
public static final Token Root
Root
-
RSLOAD
public static final Token RSLOAD
Extended function RS232 Save
-
RSSAVE
public static final Token RSSAVE
Extended function RS232 Save
-
SAC
public static final Token SAC
SAC
-
SAVE
public static final Token SAVE
SAVE
-
SDMS
public static final Token SDMS
invDegree
-
SEXE
public static final Token SEXE
SEXE
-
sin
public static final Token sin
sin
-
sinh
public static final Token sinh
sinh
-
Sn
public static final Token Sn
Sn
-
Sn1
public static final Token Sn1
Sn1
-
Square
public static final Token Square
Square
-
Square_Root
public static final Token Square_Root
Square_Root
-
Stop
public static final Token Stop
Stop
-
tan
public static final Token tan
tan
-
tanh
public static final Token tanh
tanh
-
Ten_Power
public static final Token Ten_Power
Ten_Power
-
VER
public static final Token VER
Extended function Verify
-
X_Equal_0
public static final Token X_Equal_0
X_Equal_0
-
X_Equal_F
public static final Token X_Equal_F
X_Equal_F
-
X_Greater_Equal_0
public static final Token X_Greater_Equal_0
X_Greater_Equal_0
-
X_Greater_Equal_F
public static final Token X_Greater_Equal_F
X_Greater_Equal_F
-
X_M00
public static final Token X_M00
X_M00
-
X_M10
public static final Token X_M10
X_M10
-
X_M1F
public static final Token X_M1F
X_M1F
-
X_MF
public static final Token X_MF
X_MF
-
X_Y
public static final Token X_Y
X_Y
-
xD
public static final Token xD
xD
-
xDEL
public static final Token xDEL
xDEL
-
xMean
public static final Token xMean
xMean
-
XOR
public static final Token XOR
Extended function Exclusive OR
-
π
public static final Token π
Pi
-
-
Field Detail
-
ExFn
public static final short ExFn
Extended function Prefix
- See Also:
- Constant Field Values
-
ExFn_End
public static final short ExFn_End
last ExtFn Opcode- See Also:
- Constant Field Values
-
ExFn_Mask
public static final short ExFn_Mask
Mask to turn exffn opcodes into standart opcodes.- See Also:
- Constant Field Values
-
ExFn_Start
public static final short ExFn_Start
First ExtFn Opcode- See Also:
- Constant Field Values
-
Group
public static final short Group
the tokens are grouped in 16 elements.- See Also:
- Constant Field Values
-
Mask_High_Byte
public static final int Mask_High_Byte
- See Also:
- Constant Field Values
-
Null
public static final short Null
Null Token.
- See Also:
- Constant Field Values
-
P1_
public static final short P1_
GSP and P 10 … 19
- See Also:
- Constant Field Values
-
P1_End
public static final short P1_End
GSP and P 10 … 19
- See Also:
- Constant Field Values
-
P1_Start
public static final short P1_Start
GSP and P 10 … 19
- See Also:
- Constant Field Values
-
Plus_M_20
public static final short Plus_M_20
Plus_M_20
- See Also:
- Constant Field Values
-
Plus_M_20_End
public static final short Plus_M_20_End
last ExtFn Opcode- See Also:
- Constant Field Values
-
Plus_M_20_Start
public static final short Plus_M_20_Start
First ExtFn Opcode- See Also:
- Constant Field Values
-
Plus_M_40
public static final short Plus_M_40
Plus_M_40
- See Also:
- Constant Field Values
-
Plus_M_40_End
public static final short Plus_M_40_End
last ExtFn Opcode- See Also:
- Constant Field Values
-
Plus_M_40_Start
public static final short Plus_M_40_Start
First ExtFn Opcode- See Also:
- Constant Field Values
-
Plus_M_60
public static final short Plus_M_60
Plus_M_60
- See Also:
- Constant Field Values
-
Plus_M_60_End
public static final short Plus_M_60_End
last ExtFn Opcode- See Also:
- Constant Field Values
-
Plus_M_60_Start
public static final short Plus_M_60_Start
First ExtFn Opcode- See Also:
- Constant Field Values
-
Plus_M_80
public static final short Plus_M_80
Plus_M_80
- See Also:
- Constant Field Values
-
Plus_M_80_End
public static final short Plus_M_80_End
last ExtFn Opcode- See Also:
- Constant Field Values
-
Plus_M_80_Start
public static final short Plus_M_80_Start
First ExtFn Opcode- See Also:
- Constant Field Values
-
Opcode
public final short Opcode
numeric id of the token
-
Text
@NotNull public final @NotNull String Text
string representation used for example serial IO. Null if there is no string representation
-
-
Constructor Detail
-
Token
private Token(short Opcode, @NotNull @NotNull String Text)
-
-
Method Detail
-
values
public static Token[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Token c : Token.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Token valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
Digits_To_Opcode
@Contract("!null -> !null; null -> null") public static short @Nullable [] Digits_To_Opcode(@Nullable @Nullable CharSequence Text)
convert a string with digits (including hex) to opcodes
- Parameters:
Text
- the string to- Returns:
- array of opcodes
-
Is_Compare
public static boolean Is_Compare(short Test_Token)
Test if a token is a program token (P0 .. P9)- Parameters:
Test_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Is_EXE
@Contract(pure=true) public static boolean Is_EXE(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is a program token (P0 .. P9)- Parameters:
Plane
- Currently active token planeTest_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Is_End_Program
@Contract(pure=true) static boolean Is_End_Program(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is an end of program — which is either the stop token or begin of another program- Parameters:
Plane
- Currently active token planeTest_Token
- Token to test- Returns:
- true if Test_Token in P0..P9 or Stop
-
Is_ExtFn
@Contract(pure=true) public static boolean Is_ExtFn(short Opcode)
test if the opcode is an exfn opcode
- Parameters:
Opcode
- opcode to test- Returns:
- true wenn it is an extfn opcode
-
Is_Goto
@Contract(pure=true) public static boolean Is_Goto(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is a program token (P0 .. P9)- Parameters:
Plane
- Currently active token planeTest_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Is_HLT
@Contract(pure=true) public static boolean Is_HLT(short Test_Token)
Test if a token is a program token (P0 .. P9)- Parameters:
Test_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Is_Label
@Contract(pure=true) public static boolean Is_Label(short Test_Token)
Test if a token is a program token (P0 .. P9)- Parameters:
Test_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Is_Num
@Contract(pure=true) public static boolean Is_Num(short Test_Token)
Test if a token is a numeric token (0 .. 9)- Parameters:
Test_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Is_P1_
@Contract(pure=true) public static boolean Is_P1_(short Opcode)
-
Is_Plane_Switch
public static boolean Is_Plane_Switch(short Test_Token)
Test if a token is a plane switch token (Alpha .. Plus_M_80)- Parameters:
Test_Token
- token to test- Returns:
- true is Test_Token in Alpha .. Plus_M_80
-
Is_Plane_Switch_Or_Alpha
public static boolean Is_Plane_Switch_Or_Alpha(short Test_Token)
Test if a token is invisible (Plus_M_20 .. Plus_M_80)- Parameters:
Test_Token
- token to test- Returns:
- true is Test_Token in Plus_M_20 .. Plus_M_80
-
Is_Plus_M_20
public static boolean Is_Plus_M_20(short Opcode)
-
Is_Plus_M_40
public static boolean Is_Plus_M_40(short Opcode)
-
Is_Plus_M_60
public static boolean Is_Plus_M_60(short Opcode)
-
Is_Plus_M_80
public static boolean Is_Plus_M_80(short Opcode)
-
Is_Program
public static boolean Is_Program(Calculator.Token_Plane_Type Plane, short Test_Token)
Test if a token is a program token (P0 .. P9)- Parameters:
Plane
- Currently active token planeTest_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Is_Rnd
public static boolean Is_Rnd(short Test_Token)
Test if a token is a numeric token (0 .. 9)- Parameters:
Test_Token
- Token to test- Returns:
- true if Test_Token in P0..P9
-
Memory_Opcode
public static short Memory_Opcode(@NotNull @NotNull Token Base_M_Token, @NotNull @NotNull Token Base_MF_Token, @NotNull @NotNull String Number_Text) throws NumberFormatException
Create opcode for
- Parameters:
Base_M_Token
- Base (register 0) opcodeBase_MF_Token
- Base (register 0) opcode for F register operationsNumber_Text
- T- Returns:
- opcode for the memory operation
- Throws:
NumberFormatException
- the number of an memory command could not be parsed
-
Opcode_To_Num
public static int Opcode_To_Num(short Opcode)
Convert a numeric token to the its numeric value. Note: No error handling, shit in shit out!- Parameters:
Opcode
- Token to convert (Num_0 .. Num_3, Num_4 .. Num_9)- Returns:
- 0 .. 9
-
Opcode_To_Text
@Nullable public static @Nullable String Opcode_To_Text(short Opcode)
get m database value.
- Parameters:
Opcode
- 0 … 3- Returns:
- the voucher type
- Throws:
ArrayIndexOutOfBoundsException
- pos was not 0 … 1
-
String_To_Opcode
public static short String_To_Opcode(@NotNull @NotNull String Text) throws IllegalArgumentException
get Token from string
- Parameters:
Text
- Some Token text- Returns:
- Token for the opcode
- Throws:
IllegalArgumentException
- string could not be convertedNumberFormatException
- the number of an memory command could not be parsed
-
value
@NotNull public static @NotNull Token value(short Opcode) throws IllegalArgumentException
get Token from op code
- Parameters:
Opcode
- 0x000 … 0x6ff- Returns:
- Token for the opcode
- Throws:
IllegalArgumentException
- pos was not 0 … 1
-
Opcode_High
public int Opcode_High()
-
Opcode_Low
public int Opcode_Low()
-
-