/******************************************************************************* * Copyright (c) 2015 Nathan Ridge. * 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: * Nathan Ridge - Initial API and implementation *******************************************************************************/ package org.eclipse.cdt.internal.core.dom.parser.cpp; import org.eclipse.cdt.core.dom.ast.IASTAlignmentSpecifier; import org.eclipse.cdt.core.dom.ast.IASTAttribute; import org.eclipse.cdt.core.dom.ast.IASTExpression; import org.eclipse.cdt.core.dom.ast.IASTNode; import org.eclipse.cdt.core.dom.ast.IASTTypeId; import org.eclipse.cdt.core.dom.ast.cpp.ICPPASTAlignmentSpecifier; import org.eclipse.cdt.internal.core.dom.parser.ASTAmbiguousNode; public class CPPASTAmbiguousAlignmentSpecifier extends ASTAmbiguousNode implements ICPPASTAlignmentSpecifier { IASTAlignmentSpecifier fExpression; IASTAlignmentSpecifier fTypeId; CPPASTAmbiguousAlignmentSpecifier(IASTAlignmentSpecifier expression, IASTAlignmentSpecifier typeId) { fExpression = expression; fTypeId = typeId; } @Override public IASTExpression getExpression() { return fExpression.getExpression(); } @Override public IASTTypeId getTypeId() { return fTypeId.getTypeId(); } @Override public ICPPASTAlignmentSpecifier copy() { throw new UnsupportedOperationException(); } @Override public ICPPASTAlignmentSpecifier copy(CopyStyle style) { throw new UnsupportedOperationException(); } @Override public IASTNode[] getNodes() { return new IASTNode[] { fExpression, fTypeId }; } @Deprecated @Override public IASTAttribute[] getAttributes() { return null; } @Deprecated @Override public void addAttribute(IASTAttribute attribute) { } }