blob: d0300cd6705cdf48a085c294e62b40d9133c5535 [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 ClassDeclaration extends TypeDeclaration,
TypeParameterDeclarator {
/**
* @return whether this class is marked <code>final</code>
*/
boolean isFinal();
/**
* @return whether this class is marked <code>abstract</code>
*/
boolean isAbstract();
/**
* @return whether this class is marked <code>static</code>
*/
boolean isStatic();
/**
* @return whether this class is marked <code>strictfp</code>
*/
boolean isStrictFloatingPoint();
/**
* @return the super class of this class. If this class declaration
* represents the source AST this method returns <code>null</code>
* if no explicit super class is specified.
*/
TypeReference getExtendedClass();
/**
* @return the interfaces directly implemented by the class declaration
*/
Iterable<? extends TypeReference> getImplementedInterfaces();
}