1
/*******************************************************************************
2
* Copyright (c) 2009, 2011 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.internal.core.lrparser.xlc.ast;
13
import org.eclipse.cdt.core.lrparser.xlc.ast.IXlcCASTVectorTypeSpecifier;
14
import org.eclipse.cdt.internal.core.dom.parser.c.CASTSimpleDeclSpecifier;
16
@SuppressWarnings("restriction")
17
public class XlcCASTVectorTypeSpecifier extends CASTSimpleDeclSpecifier implements IXlcCASTVectorTypeSpecifier {
19
private boolean isPixel;
20
private boolean isBool;
22
public XlcCASTVectorTypeSpecifier() {
27
public XlcCASTVectorTypeSpecifier copy() {
28
return copy(CopyStyle.withoutLocations);
32
public XlcCASTVectorTypeSpecifier copy(CopyStyle style) {
33
XlcCASTVectorTypeSpecifier copy = new XlcCASTVectorTypeSpecifier();
34
copySimpleDeclSpec(copy, style);
35
copy.isPixel = isPixel;
37
if(style == CopyStyle.withLocations) {
38
copy.setCopyLocation(this);
43
public boolean isPixel() {
47
public void setPixel(boolean isPixel) {
48
this.isPixel = isPixel;
51
public boolean isBool() {
55
public void setBool(boolean isBool) {