< prev index next >
src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JOp.java
Print this page
*** 75,85 ****
public static JExpression minus(JExpression e) {
return new UnaryOp("-", e);
}
/**
! * Logical not <tt>'!x'</tt>.
*/
public static JExpression not(JExpression e) {
if (e == JExpr.TRUE) return JExpr.FALSE;
if (e == JExpr.FALSE) return JExpr.TRUE;
return new UnaryOp("!", e);
--- 75,85 ----
public static JExpression minus(JExpression e) {
return new UnaryOp("-", e);
}
/**
! * Logical not {@code '!x'}.
*/
public static JExpression not(JExpression e) {
if (e == JExpr.TRUE) return JExpr.FALSE;
if (e == JExpr.FALSE) return JExpr.TRUE;
return new UnaryOp("!", e);
< prev index next >