public abstract class JExpressionImpl extends Object implements JExpression
JExpression
.Constructor and Description |
---|
JExpressionImpl() |
Modifier and Type | Method and Description |
---|---|
JExpression |
_instanceof(JType right)
Returns "[this] instanceof [right]"
|
JExpression |
band(JExpression right)
Bit-wise AND '&'.
|
JExpression |
bor(JExpression right)
Bit-wise OR '|'.
|
JExpression |
cand(JExpression right)
Logical AND '&&'.
|
JExpression |
complement()
Returns "~[this]" from "[this]".
|
com.sun.codemodel.JArrayCompRef |
component(JExpression index) |
JExpression |
cor(JExpression right)
Logical OR '||'.
|
JExpression |
decr()
Returns "[this]--" from "[this]".
|
JExpression |
div(JExpression right)
Returns "[this]/[right]"
|
JExpression |
eq(JExpression right) |
JExpression |
gt(JExpression right) |
JExpression |
gte(JExpression right) |
JExpression |
incr()
Returns "[this]++" from "[this]".
|
JInvocation |
invoke(JMethod method)
Returns "[this].[method]".
|
JInvocation |
invoke(String method)
Returns "[this].[method]".
|
JExpression |
lt(JExpression right) |
JExpression |
lte(JExpression right) |
JExpression |
minus()
Returns "-[this]" from "[this]".
|
JExpression |
minus(JExpression right)
Returns "[this]-[right]"
|
JExpression |
mod(JExpression right)
Returns "[this]%[right]"
|
JExpression |
mul(JExpression right)
Returns "[this]*[right]"
|
JExpression |
ne(JExpression right) |
JExpression |
not()
Logical not
'!x' . |
JExpression |
plus(JExpression right)
Returns "[this]+[right]"
|
JFieldRef |
ref(JVar field) |
JFieldRef |
ref(String field) |
JExpression |
shl(JExpression right)
Returns "[this]<<[right]"
|
JExpression |
shr(JExpression right)
Returns "
[this]>>[right] " |
JExpression |
shrz(JExpression right)
Returns "
[this]>>>[right] " |
JExpression |
xor(JExpression right) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate
public final JExpression minus()
JExpression
minus
in interface JExpression
public final JExpression not()
'!x'
.not
in interface JExpression
public final JExpression complement()
JExpression
complement
in interface JExpression
public final JExpression incr()
JExpression
incr
in interface JExpression
public final JExpression decr()
JExpression
decr
in interface JExpression
public final JExpression plus(JExpression right)
JExpression
plus
in interface JExpression
public final JExpression minus(JExpression right)
JExpression
minus
in interface JExpression
public final JExpression mul(JExpression right)
JExpression
mul
in interface JExpression
public final JExpression div(JExpression right)
JExpression
div
in interface JExpression
public final JExpression mod(JExpression right)
JExpression
mod
in interface JExpression
public final JExpression shl(JExpression right)
JExpression
shl
in interface JExpression
public final JExpression shr(JExpression right)
JExpression
[this]>>[right]
"shr
in interface JExpression
public final JExpression shrz(JExpression right)
JExpression
[this]>>>[right]
"shrz
in interface JExpression
public final JExpression band(JExpression right)
JExpression
band
in interface JExpression
public final JExpression bor(JExpression right)
JExpression
bor
in interface JExpression
public final JExpression cand(JExpression right)
JExpression
cand
in interface JExpression
public final JExpression cor(JExpression right)
JExpression
cor
in interface JExpression
public final JExpression xor(JExpression right)
xor
in interface JExpression
public final JExpression lt(JExpression right)
lt
in interface JExpression
public final JExpression lte(JExpression right)
lte
in interface JExpression
public final JExpression gt(JExpression right)
gt
in interface JExpression
public final JExpression gte(JExpression right)
gte
in interface JExpression
public final JExpression eq(JExpression right)
eq
in interface JExpression
public final JExpression ne(JExpression right)
ne
in interface JExpression
public final JExpression _instanceof(JType right)
JExpression
_instanceof
in interface JExpression
public final JInvocation invoke(JMethod method)
JExpression
JInvocation
object.invoke
in interface JExpression
public final JInvocation invoke(String method)
JExpression
JInvocation
object.invoke
in interface JExpression
public final JFieldRef ref(JVar field)
ref
in interface JExpression
public final JFieldRef ref(String field)
ref
in interface JExpression
public final com.sun.codemodel.JArrayCompRef component(JExpression index)
component
in interface JExpression
Copyright © 2019 JBoss by Red Hat. All rights reserved.