public interface

IJavaOperation

implements IJavaExpression
com.pnfsoftware.jeb.core.units.code.java.IJavaOperation
Known Indirect Subclasses

Class Overview

Java AST interface to represent arithmetic and logical expressions.

An expression consists of one or two members (the left and right members) and an operator. The left member is optional, and should be null for unary operators.

Examples:

 a + 1
 a * ((int)b - foo())
 !x
 x ^ y | z
 

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaOperation duplicate()
Duplicate this element.
abstract IJavaExpression getLeft()
Get the left member sub-expression.
abstract IJavaOperator getOperator()
Get the expression's operator.
abstract IJavaExpression getRight()
Get the right sub-expression.
abstract void setLeft(IJavaExpression left)
abstract void setOperator(IJavaOperator operator)
Set the operator for the expression.
abstract void setRight(IJavaExpression right)
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaExpression

Public Methods

public abstract IJavaOperation duplicate ()

Duplicate this element.

Returns
  • a (possibly) duplicated object of the same type

public abstract IJavaExpression getLeft ()

Get the left member sub-expression.

Returns
  • the left expression, null if none

public abstract IJavaOperator getOperator ()

Get the expression's operator.

Returns
  • the operator

public abstract IJavaExpression getRight ()

Get the right sub-expression.

Returns
  • the right expression

public abstract void setLeft (IJavaExpression left)

public abstract void setOperator (IJavaOperator operator)

Set the operator for the expression. Dangerous method! the operator type is not checked, it is the caller's responsibility to do so.

Parameters
operator operator, cannot be null

public abstract void setRight (IJavaExpression right)