Enum Symbol

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Symbol>

    public enum Symbol
    extends java.lang.Enum<Symbol>
    Types of low level operators which can be applied in the code
    • Enum Constant Detail

      • PLUS

        public static final Symbol PLUS
      • MINUS

        public static final Symbol MINUS
      • TIMES

        public static final Symbol TIMES
      • LDIVIDE

        public static final Symbol LDIVIDE
      • RDIVIDE

        public static final Symbol RDIVIDE
      • POWER

        public static final Symbol POWER
      • PERIOD

        public static final Symbol PERIOD
      • ELEMENT_TIMES

        public static final Symbol ELEMENT_TIMES
      • ELEMENT_DIVIDE

        public static final Symbol ELEMENT_DIVIDE
      • ELEMENT_POWER

        public static final Symbol ELEMENT_POWER
      • ASSIGN

        public static final Symbol ASSIGN
      • PAREN_LEFT

        public static final Symbol PAREN_LEFT
      • PAREN_RIGHT

        public static final Symbol PAREN_RIGHT
      • BRACKET_LEFT

        public static final Symbol BRACKET_LEFT
      • BRACKET_RIGHT

        public static final Symbol BRACKET_RIGHT
      • GREATER_THAN

        public static final Symbol GREATER_THAN
      • LESS_THAN

        public static final Symbol LESS_THAN
      • GREATER_THAN_EQ

        public static final Symbol GREATER_THAN_EQ
      • LESS_THAN_EQ

        public static final Symbol LESS_THAN_EQ
      • COMMA

        public static final Symbol COMMA
      • TRANSPOSE

        public static final Symbol TRANSPOSE
      • COLON

        public static final Symbol COLON
      • SEMICOLON

        public static final Symbol SEMICOLON
    • Method Detail

      • values

        public static Symbol[] 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 (Symbol c : Symbol.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Symbol valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • lookup

        public static Symbol lookup​(char c)
      • lookupElementWise

        public static Symbol lookupElementWise​(char c)