protected void _format ( SarlAgent agent , IFormattableDocument document ) { formatAnnotations ( agent , document , XbaseFormatterPreferenceKeys . newLineAfterClassAnnotations ) ; formatModifiers ( agent , document ) ; final ISemanticRegionsFinder regionFor = this . textRegionExtensions . regionFor ( agent ) ; document . append ( regionFor . keyword ( this . keywords . getAgentKeyword ( ) ) , ONE_SPACE ) ; document . surround ( regionFor . keyword ( this . keywords . getExtendsKeyword ( ) ) , ONE_SPACE ) ; document . format ( agent . getExtends ( ) ) ; formatBody ( agent , document ) ; }
Format the given SARL agent .