com.sun.codemodel
Class JInvocation

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

public final class JInvocation
extends JExpressionImpl
implements JStatement

JMethod invocation


Method Summary
 JInvocation arg(JExpression arg)
          Add an expression to this invocation's argument list
 JInvocation arg(java.lang.String v)
          Adds a literal argument.
 void generate(JFormatter f)
           
 void state(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(java.lang.String v)
Adds a literal argument. Short for arg(JExpr.lit(v))


generate

public void generate(JFormatter f)

state

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


Copyright © 2005-2009 Sun Microsystems. All Rights Reserved.