Copyright (c) 2000, 2010 IBM Corporation and others. This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-2.0/ SPDX-License-Identifier: EPL-2.0 Contributors: IBM Corporation - initial API and implementation
/******************************************************************************* * Copyright (c) 2000, 2010 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/
package org.eclipse.jdt.internal.core; import org.eclipse.jdt.core.IJavaElement;
Holds cached structure and properties for a Java element. Subclassed to carry properties for specific kinds of elements.
/** * Holds cached structure and properties for a Java element. * Subclassed to carry properties for specific kinds of elements. */
public class JavaElementInfo implements Cloneable {
Shared empty collection used for efficiency.
/** * Shared empty collection used for efficiency. */
static Object[] NO_NON_JAVA_RESOURCES = new Object[] {}; @Override public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new Error(e); } } public IJavaElement[] getChildren() { return JavaElement.NO_ELEMENTS; } }