Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 53-64
Link Here
|
53 |
public StringBuffer printStatement(int tab, StringBuffer output) { |
53 |
public StringBuffer printStatement(int tab, StringBuffer output) { |
54 |
printIndent(tab, output); |
54 |
printIndent(tab, output); |
55 |
if (this.constantExpression == null) { |
55 |
if (this.constantExpression == null) { |
56 |
output.append("default : "); //$NON-NLS-1$ |
56 |
output.append("default :"); //$NON-NLS-1$ |
57 |
} else { |
57 |
} else { |
58 |
output.append("case "); //$NON-NLS-1$ |
58 |
output.append("case "); //$NON-NLS-1$ |
59 |
this.constantExpression.printExpression(0, output).append(" : "); //$NON-NLS-1$ |
59 |
this.constantExpression.printExpression(0, output).append(" :"); //$NON-NLS-1$ |
60 |
} |
60 |
} |
61 |
return output.append(';'); |
61 |
return output; |
62 |
} |
62 |
} |
63 |
|
63 |
|
64 |
/** |
64 |
/** |