public final enum

COperatorType

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.pnfsoftware.jeb.core.units.code.asm.decompiler.ast.COperatorType

Class Overview

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

Summary

Nested Classes
enum COperatorType.Associativity Operator associativity (left, right). 
Enum Values
COperatorType  ADD   
COperatorType  AND   
COperatorType  CAST   
COperatorType  COND  ternary conditional operator  
COperatorType  CUSTOM   
COperatorType  DIV   
COperatorType  EQ   
COperatorType  GE   
COperatorType  GT   
COperatorType  LE   
COperatorType  LOG_AND   
COperatorType  LOG_IDENT  Logical pseudo-identity operator (no output); the opposite of LOG_NOT  
COperatorType  LOG_NOT   
COperatorType  LOG_OR   
COperatorType  LT   
COperatorType  MUL   
COperatorType  NE   
COperatorType  NEG   
COperatorType  NOT   
COperatorType  OR   
COperatorType  PTR   
COperatorType  REF   
COperatorType  REM   
COperatorType  SHL   
COperatorType  SHR   
COperatorType  SIZEOF   
COperatorType  SUB   
COperatorType  USHR   
COperatorType  XOR   
Public Methods
COperatorType.Associativity getAssociativity()
Provide associativity (left, right) information about the operation type.
int getOperandCount()
Get the number of operands accepted by this operator.
int getPrecedence()
Provide precedence information about the operation type.
COperatorType mirror()
Retrieve a mirror of this operator.
COperatorType reverse()
Retrieve a reverse of this operator.
String toString()
static COperatorType valueOf(String name)
final static COperatorType[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final COperatorType ADD

public static final COperatorType AND

public static final COperatorType CAST

public static final COperatorType COND

ternary conditional operator

public static final COperatorType CUSTOM

public static final COperatorType DIV

public static final COperatorType EQ

public static final COperatorType GE

public static final COperatorType GT

public static final COperatorType LE

public static final COperatorType LOG_AND

public static final COperatorType LOG_IDENT

Logical pseudo-identity operator (no output); the opposite of LOG_NOT

public static final COperatorType LOG_NOT

public static final COperatorType LOG_OR

public static final COperatorType LT

public static final COperatorType MUL

public static final COperatorType NE

public static final COperatorType NEG

public static final COperatorType NOT

public static final COperatorType OR

public static final COperatorType PTR

public static final COperatorType REF

public static final COperatorType REM

public static final COperatorType SHL

public static final COperatorType SHR

public static final COperatorType SIZEOF

public static final COperatorType SUB

public static final COperatorType USHR

public static final COperatorType XOR

Public Methods

public COperatorType.Associativity getAssociativity ()

Provide associativity (left, right) information about the operation type.

Returns
  • the associativity, or null if irrelevant

public int getOperandCount ()

Get the number of operands accepted by this operator.

public int getPrecedence ()

Provide precedence information about the operation type.

Returns
  • a positive value (lower means "higher precedence"), 0 if unknown

public COperatorType mirror ()

Retrieve a mirror of this operator.

Returns
  • the mirror operator or null

public COperatorType reverse ()

Retrieve a reverse of this operator.

Returns
  • the reverse operator or null

public String toString ()

public static COperatorType valueOf (String name)

public static final COperatorType[] values ()