# Interface: com.pnfsoftware.jeb.core.units.code.java.IJavaPredicate_LEGACY

Java AST interface to represent a Java predicate. 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.

## Method: duplicate
- return type: `com.pnfsoftware.jeb.core.units.code.java.IJavaPredicate_LEGACY`


## Method: isLitteralFalse
- return type: `boolean`

Description: Determine if the predicate represents the simple literal value 'false' \( `null IDENT 'false'`\).
return: true if the predicate represents the literal false

## Method: isLitteralTrue
- return type: `boolean`

Description: Determine if the predicate represents the simple literal value 'true' \( `null IDENT 'true'`\).
return: true if the predicate represents the literal true

## Method: reverse

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

## Method: simplify
- return type: `boolean`

Description: Recursively simplify predicates like: "x == true", "x \!= true", "x == false", "x \!= false" to things like "x" or "\!x"
return: true if at least one simplification was performed

