diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/cpp/ICPPASTAliasDeclaration.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/cpp/ICPPASTAliasDeclaration.java index 9cc57d8e179..04e6d5beedf 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/cpp/ICPPASTAliasDeclaration.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/cpp/ICPPASTAliasDeclaration.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2012 Institute for Software, HSR Hochschule fuer Technik + * Copyright (c) 2012 Institute for Software, HSR Hochschule fuer Technik * Rapperswil, University of applied sciences. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 @@ -19,19 +19,20 @@ import org.eclipse.cdt.core.dom.ast.IASTNameOwner; /** * This interface represents a C++ alias declaration. * e.g. struct Type {}; using Alias = Type; - * + * + * Experimental API. May change without notice. * @noextend This interface is not intended to be extended by clients. * @noimplement This interface is not intended to be implemented by clients. */ public interface ICPPASTAliasDeclaration extends IASTDeclaration, IASTNameOwner { - public static final ICPPASTAliasDeclaration[] EMPTY_USINGDIRECTIVE_ARRAY = new ICPPASTAliasDeclaration[0]; + public static final ICPPASTAliasDeclaration[] EMPTY_USINGDIRECTIVE_ARRAY = {}; /** * ALIAS_NAME is the name that is brought into local * scope. */ public static final ASTNodeProperty ALIAS_NAME = new ASTNodeProperty( - "ICPPASTAliasDeclaration.ALIAS_NAME - New alias name introduced"); //$NON-NLS-1$ + "ICPPASTAliasDeclaration.ALIAS_NAME - Introduced alias name"); //$NON-NLS-1$ /** * MAPPING_TYPE represents the pre-existing type id which @@ -39,37 +40,35 @@ public interface ICPPASTAliasDeclaration extends IASTDeclaration, IASTNameOwner */ public static final ASTNodeProperty TARGET_TYPEID = new ASTNodeProperty( "ICPPASTAliasDeclaration.TARGET_TYPEID - Pre-existing type ID the new symbol aliases"); //$NON-NLS-1$ - + /** * Get the alias name. - * + * * @return IASTName */ public IASTName getAlias(); - + /** * Set the alias name. - * - * @param aliasName - * IASTName + * + * @param aliasName IASTName */ public void setAlias(IASTName aliasName); /** * Get the mapping type id. - * + * * @return ICPPASTTypeId */ public ICPPASTTypeId getMappingTypeId(); /** * Set the mapping type id. - * - * @param mappingTypeId - * ICPPASTTypeId + * + * @param mappingTypeId ICPPASTTypeId */ public void setMappingTypeId(ICPPASTTypeId mappingTypeId); - + @Override public ICPPASTAliasDeclaration copy();