private final void switchBlock ( Data data , Body body ) throws TemplateException { while ( data . srcCode . isValidIndex ( ) ) { comments ( data ) ; if ( data . srcCode . isCurrent ( "case " ) || data . srcCode . isCurrent ( "default" , ' ' ) || data . srcCode . isCurrent ( ' ' ) ) return ; Body prior = data . setParent ( body ) ; statement ( data , body , CTX_SWITCH ) ; data . setParent ( prior ) ; } }
Liest ein Switch Block ein