public interface

IJavaPredicate

implements IJavaArithmeticExpression
com.pnfsoftware.jeb.core.units.code.java.IJavaPredicate

Class Overview

Java AST interface to represent Java predicates. A predicate is a boolean expression that evaluates to true or false.

Note: Currently, logical expressions using non short-circuiting operators OR (|), AND (&), or XOR(^) are not allowed.

Summary

Public Methods
abstract boolean isLitteralFalse()
Determine if the predicate represents the simple literal value 'false' ( null IDENT 'false').
abstract boolean isLitteralTrue()
Determine if the predicate represents the simple literal value 'true' ( null IDENT 'true').
abstract void reverse()
Reverse the predicate.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaArithmeticExpression
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement

Public Methods

public abstract boolean isLitteralFalse ()

Determine if the predicate represents the simple literal value 'false' ( null IDENT 'false').

Returns
  • true if the predicate represents the literal false

public abstract boolean isLitteralTrue ()

Determine if the predicate represents the simple literal value 'true' ( null IDENT 'true').

Returns
  • true if the predicate represents the literal true

public abstract void reverse ()

Reverse the predicate. Example: "x == 3" becomes "x != 3".