Enum Class COperatorType

java.lang.Object
java.lang.Enum<COperatorType>
com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.COperatorType
All Implemented Interfaces:
Serializable, Comparable<COperatorType>, Constable

@Ser public enum COperatorType extends Enum<COperatorType>
Operator types are used to build operators used by AST components, eg, in operations.

All types are regular except the CUSTOM and CAST types, which are used to build custom operators.

See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static COperatorType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static COperatorType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getOperandCount

      public int getOperandCount()
      Get the number of operands accepted by this operator.
      Returns:
    • getPrecedence

      public int getPrecedence()
      Provide precedence information about the operation type.
      Returns:
      a positive value (lower means "higher precedence"), 0 if unknown
    • getAssociativity

      public COperatorType.Associativity getAssociativity()
      Provide associativity (left, right) information about the operation type.
      Returns:
      the associativity, or null if irrelevant
    • toString

      public String toString()
      Overrides:
      toString in class Enum<COperatorType>
    • reverse

      public COperatorType reverse()
      Retrieve a reverse of this operator.
      Returns:
      the reverse operator or null
    • mirror

      public COperatorType mirror()
      Retrieve a mirror of this operator.
      Returns:
      the mirror operator or null