/*******************************************************************************
* Copyright (c) 2004, 2011 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:
* John Camelon (IBM) - Initial API and implementation
* Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp;
import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
import org.eclipse.cdt.core.dom.ast.IASTExpression;
import org.eclipse.cdt.core.dom.ast.IASTInitializer;
/**
* Functional cast expressions:
* simple-type-specifier (expression-list?)
* simple-type-specifier braced-init-list
* typename-specifier (expression-list?)
* typename-specifier braced-init-list
*
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ICPPASTSimpleTypeConstructorExpression extends IASTExpression {
/**
* @since 5.2
*/
public static final ASTNodeProperty TYPE_SPECIFIER = new ASTNodeProperty(
"ICPPASTSimpleTypeConstructorExpression.TYPE_SPECIFIER [ICPPASTSimpleDeclSpecifier]"); //$NON-NLS-1$
/**
* @since 5.2
*/
public static final ASTNodeProperty INITIALIZER = new ASTNodeProperty(
"ICPPASTSimpleTypeConstructorExpression.INITIALIZER [IASTInitializer]"); //$NON-NLS-1$
/**
* Returns the declaration specifier that specifies the type.
* @since 5.2
*/
public ICPPASTDeclSpecifier getDeclSpecifier();
/**
* Returns the argument for initialization. Can be {@link ICPPASTConstructorInitializer} or
* {@link ICPPASTInitializerList}
* @since 5.2
*/
public IASTInitializer getInitializer();
/**
* @since 5.1
*/
public ICPPASTSimpleTypeConstructorExpression copy();
/**
* @since 5.3
*/
public ICPPASTSimpleTypeConstructorExpression copy(CopyStyle style);
/**
* Not allowed on frozen ast.
* @since 5.2
*/
public void setDeclSpecifier(ICPPASTDeclSpecifier declSpec);
/**
* Not allowed on frozen ast.
* @since 5.2
*/
public void setInitializer(IASTInitializer initializer);
@Deprecated public static final int t_unspecified = 0;
@Deprecated public static final int t_void = 1;
@Deprecated public static final int t_char = 2;
@Deprecated public static final int t_int = 3;
@Deprecated public static final int t_float = 4;
@Deprecated public static final int t_double = 5;
@Deprecated public static final int t_bool = 6;
@Deprecated public static final int t_wchar_t = 7;
@Deprecated public static final int t_short = 8;
@Deprecated public static final int t_long = 9;
@Deprecated public static final int t_signed = 10;
@Deprecated public static final int t_unsigned = 11;
@Deprecated public static final int t_last = t_unsigned;
/**
* @deprecated Replaced by {@link #getDeclSpecifier()}.
*/
@Deprecated
public int getSimpleType();
/**
* @deprecated Replaced by {@link #setDeclSpecifier(ICPPASTDeclSpecifier)}
*/
@Deprecated
public void setSimpleType(int value);
/**
* @deprecated Replaced by {@link #INITIALIZER}.
*/
@Deprecated
public static final ASTNodeProperty INITIALIZER_VALUE = INITIALIZER;
/**
* @deprecated Replaced by {@link #getInitializer()}
*/
@Deprecated
public IASTExpression getInitialValue();
/**
* @deprecated Replaced by {@link #setInitializer(IASTInitializer)}
*/
@Deprecated
public void setInitialValue(IASTExpression expression);
}