org.mule.devkit.model.code
Class AbstractExpression

java.lang.Object
  extended by org.mule.devkit.model.code.AbstractExpression
All Implemented Interfaces:
Generable, GeneratedExpression
Direct Known Subclasses:
Assignment, EnumConstant, GeneratedArray, GeneratedCast, GeneratedFieldReference, GeneratedInvocation, GeneratedVariable, StringLiteral

public abstract class AbstractExpression
extends Object
implements GeneratedExpression

Provides default implementations for GeneratedExpression.


Constructor Summary
AbstractExpression()
           
 
Method Summary
 GeneratedExpression _instanceof(Type right)
          Returns "[this] instanceof [right]"
 GeneratedExpression band(GeneratedExpression right)
          Bit-wise AND '&'.
 GeneratedExpression bor(GeneratedExpression right)
          Bit-wise OR '|'.
 GeneratedExpression cand(GeneratedExpression right)
          Logical AND '&&'.
 GeneratedExpression complement()
          Returns "~[this]" from "[this]".
 org.mule.devkit.model.code.ArrayCompRef component(GeneratedExpression index)
           
 GeneratedExpression cor(GeneratedExpression right)
          Logical OR '||'.
 GeneratedExpression decr()
          Returns "[this]--" from "[this]".
 GeneratedExpression div(GeneratedExpression right)
          Returns "[this]/[right]"
 GeneratedExpression eq(GeneratedExpression right)
           
 GeneratedExpression gt(GeneratedExpression right)
           
 GeneratedExpression gte(GeneratedExpression right)
           
 GeneratedExpression incr()
          Returns "[this]++" from "[this]".
 GeneratedInvocation invoke(GeneratedMethod method)
          Returns "[this].[method]".
 GeneratedInvocation invoke(String method)
          Returns "[this].[method]".
 GeneratedExpression isNotNull()
           
 GeneratedExpression isNull()
           
 GeneratedExpression lt(GeneratedExpression right)
           
 GeneratedExpression lte(GeneratedExpression right)
           
 GeneratedExpression minus()
          Returns "-[this]" from "[this]".
 GeneratedExpression minus(GeneratedExpression right)
          Returns "[this]-[right]"
 GeneratedExpression mod(GeneratedExpression right)
          Returns "[this]%[right]"
 GeneratedExpression mul(GeneratedExpression right)
          Returns "[this]*[right]"
 GeneratedExpression ne(GeneratedExpression right)
           
 GeneratedExpression not()
          Logical not '!x'.
 GeneratedExpression plus(GeneratedExpression right)
          Returns "[this]+[right]"
 GeneratedFieldReference ref(GeneratedVariable field)
           
 GeneratedFieldReference ref(String field)
           
 GeneratedExpression shl(GeneratedExpression right)
          Returns "[this]<<[right]"
 GeneratedExpression shr(GeneratedExpression right)
          Returns "[this]>>[right]"
 GeneratedExpression shrz(GeneratedExpression right)
          Returns "[this]>>>[right]"
 GeneratedExpression xor(GeneratedExpression right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.devkit.model.code.Generable
generate
 

Constructor Detail

AbstractExpression

public AbstractExpression()
Method Detail

minus

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

Specified by:
minus in interface GeneratedExpression

not

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

Specified by:
not in interface GeneratedExpression

complement

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

Specified by:
complement in interface GeneratedExpression

incr

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

Specified by:
incr in interface GeneratedExpression

decr

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

Specified by:
decr in interface GeneratedExpression

plus

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

Specified by:
plus in interface GeneratedExpression

minus

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

Specified by:
minus in interface GeneratedExpression

mul

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

Specified by:
mul in interface GeneratedExpression

div

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

Specified by:
div in interface GeneratedExpression

mod

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

Specified by:
mod in interface GeneratedExpression

shl

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

Specified by:
shl in interface GeneratedExpression

shr

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

Specified by:
shr in interface GeneratedExpression

shrz

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

Specified by:
shrz in interface GeneratedExpression

band

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

Specified by:
band in interface GeneratedExpression

bor

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

Specified by:
bor in interface GeneratedExpression

cand

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

Specified by:
cand in interface GeneratedExpression

cor

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

Specified by:
cor in interface GeneratedExpression

xor

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

lt

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

lte

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

gt

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

gte

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

eq

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

ne

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

_instanceof

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

Specified by:
_instanceof in interface GeneratedExpression

invoke

public final GeneratedInvocation invoke(GeneratedMethod method)
Description copied from interface: GeneratedExpression
Returns "[this].[method]".

Arguments shall be added to the returned GeneratedInvocation object.

Specified by:
invoke in interface GeneratedExpression

invoke

public final GeneratedInvocation invoke(String method)
Description copied from interface: GeneratedExpression
Returns "[this].[method]".

Arguments shall be added to the returned GeneratedInvocation object.

Specified by:
invoke in interface GeneratedExpression

ref

public final GeneratedFieldReference ref(GeneratedVariable field)
Specified by:
ref in interface GeneratedExpression

ref

public final GeneratedFieldReference ref(String field)
Specified by:
ref in interface GeneratedExpression

component

public final org.mule.devkit.model.code.ArrayCompRef component(GeneratedExpression index)
Specified by:
component in interface GeneratedExpression

isNull

public final GeneratedExpression isNull()
Specified by:
isNull in interface GeneratedExpression

isNotNull

public final GeneratedExpression isNotNull()
Specified by:
isNotNull in interface GeneratedExpression


Copyright © 2010-2013 MuleSoft, Inc.. All Rights Reserved.