/*******************************************************************************
 * Copyright (c) 2004, 2008 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    IBM - Initial API and implementation
 *    Emanuel Graf (IFS)
 *******************************************************************************/
package org.eclipse.cdt.core.dom.ast;

/**
 * This interface represent a preprocessor #ifdef statement.
 */
public interface IASTPreprocessorIfdefStatement extends	IASTPreprocessorStatement {

	/**
	 * Returns whether this branch was taken.
	 */
	public boolean taken();
	
	/**
	 * The condition of the ifdef-statement.
	 * @return the condition
	 */
	public char[] getCondition();
	
	/**
	 * Returns the macro reference, or <code>null</code> if the macro does not exist.
	 */
	IASTName getMacroReference();
}
