blob: a9f2fca712a0393a5757c717a7ffc776c6ff6e50 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.jsdt.core.tests.compiler.parser;
import org.eclipse.wst.jsdt.internal.compiler.classfmt.ClassFileConstants;
public class SourceInitializer extends SourceField {
public SourceInitializer(
int declarationStart,
int modifiers) {
super(declarationStart, modifiers, null, null, -1, -1, null);
}
public void setDeclarationSourceEnd(int declarationSourceEnd) {
this.declarationEnd = declarationSourceEnd;
}
public String toString(int tab) {
if (modifiers == ClassFileConstants.AccStatic) {
return tabString(tab) + "static {}";
}
return tabString(tab) + "{}";
}
}