/******************************************************************************* * 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 *******************************************************************************/ package org.eclipse.cdt.core.dom.ast.cpp; import org.eclipse.cdt.core.dom.ast.IASTDeclaration; /** * C++ allows for visibility labels to be mixed interdeclaration in class * specifiers. * * @noextend This interface is not intended to be extended by clients. * @noimplement This interface is not intended to be implemented by clients. */ public interface ICPPASTVisibilityLabel extends IASTDeclaration { /** * <code>v_public</code> == public: */ public static final int v_public = 1; /** * <code>v_protected</code> == protected: */ public static final int v_protected = 2; /** * <code>v_private</code> == private: */ public static final int v_private = 3; /** * Get the visibility. * * @return int */ public int getVisibility(); /** * Set visibility. * * @param visibility * int */ public void setVisibility(int visibility); /** * @since 5.1 */ public ICPPASTVisibilityLabel copy(); /** * @since 5.3 */ public ICPPASTVisibilityLabel copy(CopyStyle style); }