Web Site

org.codehaus.janino
Class Java.SwitchBlockStatementGroup

java.lang.Object
  extended byorg.codehaus.janino.Java.Located
      extended byorg.codehaus.janino.Java.SwitchBlockStatementGroup
All Implemented Interfaces:
Java.Locatable
Enclosing class:
Java

public static class Java.SwitchBlockStatementGroup
extends org.codehaus.janino.Java.Located


Field Summary
 List blockStatements
           
 List caseLabels
           
 boolean hasDefaultLabel
           
 
Constructor Summary
Java.SwitchBlockStatementGroup(Location location)
           
 
Method Summary
 void addDefaultSwitchLabel()
           
 void addSwitchLabel(Java.Rvalue value)
           
 Location getLocation()
           
 void setBlockStatements(List blockStatements)
           
 void throwParseException(String message)
          Throw a Parser.ParseException with the given message and this object's location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

caseLabels

public final List caseLabels

hasDefaultLabel

public boolean hasDefaultLabel

blockStatements

public List blockStatements
Constructor Detail

Java.SwitchBlockStatementGroup

public Java.SwitchBlockStatementGroup(Location location)
Method Detail

addSwitchLabel

public void addSwitchLabel(Java.Rvalue value)

addDefaultSwitchLabel

public void addDefaultSwitchLabel()
                           throws Parser.ParseException
Throws:
Parser.ParseException

setBlockStatements

public void setBlockStatements(List blockStatements)

getLocation

public Location getLocation()
Specified by:
getLocation in interface Java.Locatable

throwParseException

public void throwParseException(String message)
                         throws Parser.ParseException
Description copied from interface: Java.Locatable
Throw a Parser.ParseException with the given message and this object's location.

Specified by:
throwParseException in interface Java.Locatable
Parameters:
message - The message to report
Throws:
Parser.ParseException

Web Site