public interface

IJavaConditionalExpression

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

Class Overview

Java AST interface to represent a conditional expression.

Conditional expressions in Java use the ternary operator ?:.

Example:

 a ? b: c
 

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaConditionalExpression duplicate()
Duplicate this element.
abstract IJavaExpression getExpressionFalse()
Get the 'evaluated on false' right expression.
abstract IJavaExpression getExpressionTrue()
Get the 'evaluated on true' right expression.
abstract IJavaExpression getPredicate()
Get the 'condition' left expression.
abstract void setExpressionFalse(IJavaExpression expF)
abstract void setExpressionTrue(IJavaExpression expT)
abstract void setPredicate(IJavaExpression pred)
[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 IJavaConditionalExpression duplicate ()

Duplicate this element.

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

public abstract IJavaExpression getExpressionFalse ()

Get the 'evaluated on false' right expression.

Returns
  • the left expression

public abstract IJavaExpression getExpressionTrue ()

Get the 'evaluated on true' right expression.

Returns
  • the left expression

public abstract IJavaExpression getPredicate ()

Get the 'condition' left expression.

Returns
  • the left expression

public abstract void setExpressionFalse (IJavaExpression expF)

public abstract void setExpressionTrue (IJavaExpression expT)

public abstract void setPredicate (IJavaExpression pred)