com.sun.codemodel
Class JInvocation

java.lang.Object  extended by com.sun.codemodel.JExpressionImpl      extended by com.sun.codemodel.JInvocation
All Implemented Interfaces:
JExpression, JGenerable, JStatement

public final class JInvocation
extends JExpressionImpl
implements JStatement

JMethod invocation


Method Summary
 JInvocationarg(JExpression arg)
          Add an expression to this invocation's argument list
 JInvocationarg(String v)
          Adds a literal argument.
 voidgenerate(JFormatter f)
           
 JExpression[]listArgs()
          Returns all arguments of the invocation.
 voidstate(JFormatter f)
           
 
Methods inherited from class com.sun.codemodel.JExpressionImpl
_instanceof, band, bor, cand, complement, component, cor, decr, div, eq, gt, gte, incr, invoke, invoke, 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, toString, wait, wait, wait
 

Method Detail

arg

public JInvocation arg(JExpression arg)
Add an expression to this invocation's argument list

Parameters:
arg - Argument to add to argument list

arg

public JInvocation arg(String v)
Adds a literal argument. Short for arg(JExpr.lit(v))


listArgs

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

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

generate

public void generate(JFormatter f)
Specified by:
generate in interface JGenerable

state

public void state(JFormatter f)
Specified by:
state in interface JStatement


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