Package: CommentBodySpec

CommentBodySpec

nameinstructionbranchcomplexitylinemethod
CommentBodySpec()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
toString()
M: 23 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2012 Obeo.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * Obeo - initial API and implementation
10: *******************************************************************************/
11: package org.eclipse.acceleo.model.mtl.impl.spec;
12:
13: import org.eclipse.acceleo.common.IAcceleoConstants;
14: import org.eclipse.acceleo.model.mtl.impl.CommentBodyImpl;
15:
16: /**
17: * Specializes the comment body implementation.
18: *
19: * @author <a href="mailto:stephane.begaudeau@obeo.fr">Stephane Begaudeau</a>
20: */
21: public class CommentBodySpec extends CommentBodyImpl {
22:
23:         /**
24:          * {@inheritDoc}
25:          *
26:          * @see org.eclipse.acceleo.model.mtl.impl.CommentBodyImpl#toString()
27:          */
28:         @Override
29:         public String toString() {
30:                 StringBuffer result = new StringBuffer();
31:                 result.append(IAcceleoConstants.COMMENT + ' ' + this.getStartPosition() + '-' + this.getEndPosition());
32:                 return result.toString();
33:         }
34: }