Enum 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 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

    • 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 name
        NullPointerException - 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 plane
        Test_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 plane
        Test_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 plane
        Test_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 plane
        Test_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) opcode
        Base_MF_Token - Base (register 0) opcode for F register operations
        Number_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
      • Opcode_High

        public int Opcode_High()
      • Opcode_Low

        public int Opcode_Low()