com.pnfsoftware.jeb.core.units.code.java.IJavaPredicate |
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.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract IJavaPredicate |
duplicate()
Duplicate this element.
| ||||||||||
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.
| ||||||||||
abstract boolean |
simplify()
Recursively simplify predicates like: "x == true", "x != true", "x == false", "x != false" to
things like "x" or "!x"
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaElement
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaExpression
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.java.IJavaOperation
|
Duplicate this element.
Determine if the predicate represents the simple literal value 'false' (
null IDENT 'false'
).
Determine if the predicate represents the simple literal value 'true' (
null IDENT 'true'
).
Reverse the predicate. Example: "x == 3" becomes "x != 3".
Recursively simplify predicates like: "x == true", "x != true", "x == false", "x != false" to
things like "x" or "!x"