com.sun.codemodel
Class JExpressionImpl

java.lang.Object  extended by com.sun.codemodel.JExpressionImpl
All Implemented Interfaces:
JExpression, JGenerable
Direct Known Subclasses:
JArray, JAssignment, JEnumConstant, JFieldRef, JInvocation, JStringLiteral, JVar

public abstract class JExpressionImpl
extends Object
implements JExpression

Provides default implementations for JExpression.


Constructor Summary
JExpressionImpl()
           
 
Method Summary
 JExpression_instanceof(JType right)
          Returns "[this] instanceof [right]"
 JExpressionband(JExpression right)
          Bit-wise AND '&'.
 JExpressionbor(JExpression right)
          Bit-wise OR '|'.
 JExpressioncand(JExpression right)
          Logical AND '&&'.
 JExpressioncomplement()
          Returns "~[this]" from "[this]".
 com.sun.codemodel.JArrayCompRefcomponent(JExpression index)
           
 JExpressioncor(JExpression right)
          Logical OR '||'.
 JExpressiondecr()
          Returns "[this]--" from "[this]".
 JExpressiondiv(JExpression right)
          Returns "[this]/[right]"
 JExpressioneq(JExpression right)
           
 JExpressiongt(JExpression right)
           
 JExpressiongte(JExpression right)
           
 JExpressionincr()
          Returns "[this]++" from "[this]".
 JInvocationinvoke(JMethod method)
          Returns "[this].[method]".
 JInvocationinvoke(String method)
          Returns "[this].[method]".
 JExpressionlt(JExpression right)
           
 JExpressionlte(JExpression right)
           
 JExpressionminus()
          Returns "-[this]" from "[this]".
 JExpressionminus(JExpression right)
          Returns "[this]-[right]"
 JExpressionmod(JExpression right)
          Returns "[this]%[right]"
 JExpressionmul(JExpression right)
          Returns "[this]*[right]"
 JExpressionne(JExpression right)
           
 JExpressionnot()
          Logical not '!x'.
 JExpressionplus(JExpression right)
          Returns "[this]+[right]"
 JFieldRefref(JVar field)
           
 JFieldRefref(String field)
           
 JExpressionshl(JExpression right)
          Returns "[this]<<[right]"
 JExpressionshr(JExpression right)
          Returns "[this]>>[right]"
 JExpressionshrz(JExpression right)
          Returns "[this]>>>[right]"
 JExpressionxor(JExpression right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.codemodel.JGenerable
generate
 

Constructor Detail

JExpressionImpl

public JExpressionImpl()
Method Detail

minus

public final JExpression minus()
Description copied from interface: JExpression
Returns "-[this]" from "[this]".

Specified by:
minus in interface JExpression

not

public final JExpression not()
Logical not '!x'.

Specified by:
not in interface JExpression

complement

public final JExpression complement()
Description copied from interface: JExpression
Returns "~[this]" from "[this]".

Specified by:
complement in interface JExpression

incr

public final JExpression incr()
Description copied from interface: JExpression
Returns "[this]++" from "[this]".

Specified by:
incr in interface JExpression

decr

public final JExpression decr()
Description copied from interface: JExpression
Returns "[this]--" from "[this]".

Specified by:
decr in interface JExpression

plus

public final JExpression plus(JExpression right)
Description copied from interface: JExpression
Returns "[this]+[right]"

Specified by:
plus in interface JExpression

minus

public final JExpression minus(JExpression right)
Description copied from interface: JExpression
Returns "[this]-[right]"

Specified by:
minus in interface JExpression

mul

public final JExpression mul(JExpression right)
Description copied from interface: JExpression
Returns "[this]*[right]"

Specified by:
mul in interface JExpression

div

public final JExpression div(JExpression right)
Description copied from interface: JExpression
Returns "[this]/[right]"

Specified by:
div in interface JExpression

mod

public final JExpression mod(JExpression right)
Description copied from interface: JExpression
Returns "[this]%[right]"

Specified by:
mod in interface JExpression

shl

public final JExpression shl(JExpression right)
Description copied from interface: JExpression
Returns "[this]<<[right]"

Specified by:
shl in interface JExpression

shr

public final JExpression shr(JExpression right)
Description copied from interface: JExpression
Returns "[this]>>[right]"

Specified by:
shr in interface JExpression

shrz

public final JExpression shrz(JExpression right)
Description copied from interface: JExpression
Returns "[this]>>>[right]"

Specified by:
shrz in interface JExpression

band

public final JExpression band(JExpression right)
Description copied from interface: JExpression
Bit-wise AND '&'.

Specified by:
band in interface JExpression

bor

public final JExpression bor(JExpression right)
Description copied from interface: JExpression
Bit-wise OR '|'.

Specified by:
bor in interface JExpression

cand

public final JExpression cand(JExpression right)
Description copied from interface: JExpression
Logical AND '&&'.

Specified by:
cand in interface JExpression

cor

public final JExpression cor(JExpression right)
Description copied from interface: JExpression
Logical OR '||'.

Specified by:
cor in interface JExpression

xor

public final JExpression xor(JExpression right)
Specified by:
xor in interface JExpression

lt

public final JExpression lt(JExpression right)
Specified by:
lt in interface JExpression

lte

public final JExpression lte(JExpression right)
Specified by:
lte in interface JExpression

gt

public final JExpression gt(JExpression right)
Specified by:
gt in interface JExpression

gte

public final JExpression gte(JExpression right)
Specified by:
gte in interface JExpression

eq

public final JExpression eq(JExpression right)
Specified by:
eq in interface JExpression

ne

public final JExpression ne(JExpression right)
Specified by:
ne in interface JExpression

_instanceof

public final JExpression _instanceof(JType right)
Description copied from interface: JExpression
Returns "[this] instanceof [right]"

Specified by:
_instanceof in interface JExpression

invoke

public final JInvocation invoke(JMethod method)
Description copied from interface: JExpression
Returns "[this].[method]". Arguments shall be added to the returned JInvocation object.

Specified by:
invoke in interface JExpression

invoke

public final JInvocation invoke(String method)
Description copied from interface: JExpression
Returns "[this].[method]". Arguments shall be added to the returned JInvocation object.

Specified by:
invoke in interface JExpression

ref

public final JFieldRef ref(JVar field)
Specified by:
ref in interface JExpression

ref

public final JFieldRef ref(String field)
Specified by:
ref in interface JExpression

component

public final com.sun.codemodel.JArrayCompRef component(JExpression index)
Specified by:
component in interface JExpression


Copyright © 2005-2011
Oracle. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14