blob: 12a5372aaa528b87871234e94c51ea305a5e1b53 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jdt.internal.core;
import org.eclipse.jdt.internal.compiler.env.ISourceImport;
/**
* Element info for IImportDeclaration elements.
* @see org.eclipse.jdt.core.IImportDeclaration
*/
public class ImportDeclarationElementInfo extends MemberElementInfo implements ISourceImport{
char[] name;
// record if import is on demand, the import name doesn't have trailing start
boolean onDemand;
public char[] getName() {
return this.name;
}
/* (non-Javadoc)
* @see org.eclipse.jdt.internal.compiler.env.ISourceImport#onDemand()
*/
public boolean onDemand() {
return this.onDemand;
}
public void setOnDemand(boolean onDemand) {
this.onDemand = onDemand;
}
}