public interface

IJavaConditionalExpression

implements IJavaExpression INonStatement
com.pnfsoftware.jeb.core.units.code.java.IJavaConditionalExpression

Class Overview

Java AST interface to represent conditional expressions.

Conditional expressions in Java use the ternary operator ?:.

Examples:

  • a ? b : c

Note: Currently, conditional expressions are read-only elements.

Summary

Public Methods
abstract IJavaExpression getLeft()
Get the 'condition' left expression.
abstract IJavaExpression getRight0()
Get the 'evaluated on true' right expression.
abstract IJavaExpression getRight1()
Get the 'evaluated on false' right expression.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement

Public Methods

public abstract IJavaExpression getLeft ()

Get the 'condition' left expression.

Returns
  • the left expression

public abstract IJavaExpression getRight0 ()

Get the 'evaluated on true' right expression.

Returns
  • the left expression

public abstract IJavaExpression getRight1 ()

Get the 'evaluated on false' right expression.

Returns
  • the left expression