private final boolean caseStatement ( Data data , Switch swit ) throws TemplateException { if ( ! data . srcCode . forwardIfCurrentAndNoWordAfter ( "case" ) ) return false ; // int line=data.srcCode.getLine(); comments ( data ) ; Expression expr = super . expression ( data ) ; comments ( data ) ; if ( ! data . srcCode . forwardIfCurrent ( ' ' ) ) throw new TemplateException ( data . srcCode , "case body must start with [:]" ) ; Body body = new BodyBase ( data . factory ) ; switchBlock ( data , body ) ; swit . addCase ( expr , body ) ; return true ; }
Liest ein Case Statement ein