| /******************************************************************************* |
| * Copyright (c) 2011, 2016 Wind River Systems, Inc. and others. |
| * |
| * This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Markus Schorn (Wind River Systems) - Initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.cdt.core.dom.ast; |
| |
| /** |
| * @noextend This interface is not intended to be extended by clients. |
| * @noimplement This interface is not intended to be implemented by clients. |
| * @since 5.3 |
| */ |
| public interface IASTBinaryTypeIdExpression extends IASTExpression { |
| public static final ASTNodeProperty OPERAND1 = new ASTNodeProperty( |
| "IASTBinaryTypeIdExpression.OPERAND1 [IASTTypeId]"); //$NON-NLS-1$ |
| public static final ASTNodeProperty OPERAND2 = new ASTNodeProperty( |
| "IASTBinaryTypeIdExpression.OPERAND2 [IASTTypeId]"); //$NON-NLS-1$ |
| |
| /** |
| * Built-in type traits of g++. |
| */ |
| public static enum Operator { |
| __is_base_of, |
| /** @since 6.0 */ |
| __is_trivially_assignable, |
| /** |
| * @since 7.1 |
| */ |
| __is_same, |
| } |
| |
| /** |
| * Returns the operator for the expression. |
| */ |
| public Operator getOperator(); |
| |
| /** |
| * Returns the first operand. |
| */ |
| public IASTTypeId getOperand1(); |
| |
| /** |
| * Returns the second operand, or <code>null</code> if it was not provided (content assist). |
| */ |
| public IASTTypeId getOperand2(); |
| |
| /** |
| * Sets the operator for the expression. |
| */ |
| public void setOperator(Operator value); |
| |
| /** |
| * Sets the first operand. |
| */ |
| public void setOperand1(IASTTypeId typeId); |
| |
| /** |
| * Sets the second operand. |
| */ |
| public void setOperand2(IASTTypeId typeId); |
| |
| @Override |
| public IASTBinaryTypeIdExpression copy(); |
| |
| @Override |
| public IASTBinaryTypeIdExpression copy(CopyStyle style); |
| } |