com.sun.codemodel
Class JSwitch

java.lang.Object
  extended by com.sun.codemodel.JSwitch
All Implemented Interfaces:
JStatement

public final class JSwitch
extends Object
implements JStatement

Switch statement


Method Summary
 JCase _case(JExpression label)
           
 JCase _default()
           
 Iterator<JCase> cases()
           
 void state(JFormatter f)
           
 JExpression test()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

test

public JExpression test()

cases

public Iterator<JCase> cases()

_case

public JCase _case(JExpression label)

_default

public JCase _default()

state

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


Copyright © 2005-2012 Oracle. All Rights Reserved.