org.mule.devkit.model.code
Class GeneratedInvocation

java.lang.Object
  extended by org.mule.devkit.model.code.AbstractExpression
      extended by org.mule.devkit.model.code.GeneratedInvocation
All Implemented Interfaces:
Generable, GeneratedExpression, Statement

public final class GeneratedInvocation
extends AbstractExpression
implements Statement

Method invocation


Method Summary
 GeneratedInvocation arg(GeneratedExpression arg)
          Add an expression to this invocation's argument list
 GeneratedInvocation arg(String v)
          Adds a literal argument.
 void generate(Formatter f)
           
 GeneratedExpression[] listArgs()
          Returns all arguments of the invocation.
 void state(Formatter f)
           
 String toString()
           
 
Methods inherited from class org.mule.devkit.model.code.AbstractExpression
_instanceof, band, bor, cand, complement, component, cor, decr, div, eq, gt, gte, incr, invoke, invoke, isNotNull, isNull, lt, lte, minus, minus, mod, mul, ne, not, plus, ref, ref, shl, shr, shrz, xor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

arg

public GeneratedInvocation arg(GeneratedExpression arg)
Add an expression to this invocation's argument list

Parameters:
arg - Argument to add to argument list

arg

public GeneratedInvocation arg(String v)
Adds a literal argument.

Short for arg(JExpr.lit(v))


listArgs

public GeneratedExpression[] listArgs()
Returns all arguments of the invocation.

Returns:
If there's no arguments, an empty array will be returned.

generate

public void generate(Formatter f)
Specified by:
generate in interface Generable

state

public void state(Formatter f)
Specified by:
state in interface Statement

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.