blob: 70e9dd4922a930ccdb83f13eca63e8c5207b4691 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 itemis AG (http://www.itemis.eu) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.xtend.lib.macro.declaration;
import com.google.common.annotations.Beta;
/**
* @author Sven Efftinge
* @noimplement This interface is not intended to be implemented by clients.
*/
@Beta
public interface EnumerationTypeDeclaration extends TypeDeclaration {
/**
* @return the values directly declared and contained in the enumeration type declaration
*/
Iterable<? extends EnumerationValueDeclaration> getDeclaredValues();
/**
* @param name of the feature
* @return the declared value with the given name or <code>null</code> of no such value exists.
*/
EnumerationValueDeclaration findDeclaredValue(String name);
}