1
/*******************************************************************************
2
* Copyright (c) 2006, 2008 IBM Corporation and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* IBM Corporation - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.core.dom.upc.ast;
13
import org.eclipse.cdt.core.dom.ast.ASTNodeProperty;
14
import org.eclipse.cdt.core.dom.ast.IASTExpression;
15
import org.eclipse.cdt.core.dom.ast.c.ICASTDeclSpecifier;
17
public interface IUPCASTDeclSpecifier extends ICASTDeclSpecifier {
19
public static final ASTNodeProperty BLOCK_SIZE_EXPRESSION = new ASTNodeProperty(
20
"IUPCASTDeclSpecifier.BLOCK_SIZE_EXPRESSION - IUPCASTDeclSpecifier block size expression"); //$NON-NLS-1$
23
public static final int rt_unspecified = 0;
25
public static final int rt_strict = 1;
27
public static final int rt_relaxed = 2;
31
public static final int sh_not_shared = 0;
33
public static final int sh_shared_default_block_size = 1;
35
public static final int sh_shared_pure_allocation = 2;
37
public static final int sh_shared_indefinite_allocation = 3;
39
public static final int sh_shared_constant_expression = 4;
43
public int getReferenceType();
45
public void setReferenceType(int referenceType);
49
public int getSharedQualifier();
51
public void setSharedQualifier(int shared);
55
public IASTExpression getBlockSizeExpression();
57
public void setBlockSizeExpression(IASTExpression expr);
60
public IUPCASTDeclSpecifier copy();