Top Description Fields Constructors Methods
com.sun.codemodel

public final Class JCase

extends Object
implements JStatement
Class Inheritance
All Implemented Interfaces
com.sun.codemodel.JStatement

Case statement

Field Summary

Modifier and TypeField and Description
private JBlock
body

JBlock of statements which makes up body of this While statement

private boolean
isDefaultCase

is this a regular case statement or a default case statement?

private JExpression
label

label part of the case statement

Constructor Summary

AccessConstructor and Description
pack-priv
JCase(JExpression label)

Construct a case statement

pack-priv
JCase(JExpression label, boolean isDefaultCase)

Construct a case statement.

Method Summary

Modifier and TypeMethod and Description
public JBlock
body()

public JExpression
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bodyback to summary
private JBlock body

JBlock of statements which makes up body of this While statement

isDefaultCaseback to summary
private boolean isDefaultCase

is this a regular case statement or a default case statement?

labelback to summary
private JExpression label

label part of the case statement

Constructor Detail

JCaseback to summary
pack-priv JCase(JExpression label)

Construct a case statement

JCaseback to summary
pack-priv JCase(JExpression label, boolean isDefaultCase)

Construct a case statement. If isDefaultCase is true, then label should be null since default cases don't have a label.

Method Detail

bodyback to summary
public JBlock body()
labelback to summary
public JExpression label()
stateback to summary
public void state(JFormatter f)

Implements com.sun.codemodel.JStatement.state.

Annotations
@Override