org.glassfish.pfl.dynamic.codegen.impl
Class SwitchStatement

java.lang.Object
  extended by org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
      extended by org.glassfish.pfl.dynamic.codegen.impl.NodeBase
          extended by org.glassfish.pfl.dynamic.codegen.impl.StatementBase
              extended by org.glassfish.pfl.dynamic.codegen.impl.SwitchStatement
All Implemented Interfaces:
AttributedObject, Node, Statement, CopyInterceptor

public final class SwitchStatement
extends StatementBase

Author:
Ken Cavanaugh

Method Summary
 void accept(Visitor visitor)
          Accept the visitor and allow it to perform actions on this Node.
 CaseBranch addCase(int value)
           
 Map<Integer,CaseBranch> cases()
           
 BlockStatement defaultCase()
           
 ExpressionInternal expr()
           
 
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
copy, copy, getAncestor, id, parent, parent, postCopy, preCopy, toString
 
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
attributes, get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.Node
copy, copy, getAncestor, id, parent, parent
 
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.AttributedObject
attributes, get, set
 

Method Detail

cases

public Map<Integer,CaseBranch> cases()

defaultCase

public BlockStatement defaultCase()

expr

public ExpressionInternal expr()

addCase

public CaseBranch addCase(int value)

accept

public void accept(Visitor visitor)
Description copied from interface: Node
Accept the visitor and allow it to perform actions on this Node.

Specified by:
accept in interface Node
Overrides:
accept in class NodeBase


Copyright © 2013 Oracle. All Rights Reserved.