mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics
This commit is contained in:
parent
0603a4dc4d
commit
05cbba85c6
11 changed files with 30 additions and 38 deletions
|
@ -16,9 +16,8 @@ package org.eclipse.cdt.core.dom.ast;
|
||||||
* @noimplement This interface is not intended to be implemented by clients.
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface IEnumeration extends IBinding, IType {
|
public interface IEnumeration extends IBinding, IType {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* returns an array of the IEnumerators declared in this enumeration
|
* Returns an array of the IEnumerators declared in this enumeration
|
||||||
* @throws DOMException
|
* @throws DOMException
|
||||||
*/
|
*/
|
||||||
IEnumerator[] getEnumerators() throws DOMException;
|
IEnumerator[] getEnumerators() throws DOMException;
|
||||||
|
|
|
@ -18,7 +18,7 @@ package org.eclipse.cdt.core.dom.ast;
|
||||||
*/
|
*/
|
||||||
public interface IEnumerator extends IBinding {
|
public interface IEnumerator extends IBinding {
|
||||||
/**
|
/**
|
||||||
* returns the type of this enumeration. The type of an enumerator
|
* Returns the type of this enumeration. The type of an enumerator
|
||||||
* is the enumeration in which it is declared.
|
* is the enumeration in which it is declared.
|
||||||
*
|
*
|
||||||
* @return the type of the enumeration
|
* @return the type of the enumeration
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Doug Schaefer (IBM) - Initial API and implementation
|
* Doug Schaefer (IBM) - Initial API and implementation
|
||||||
* Markus Schorn (Wind River Systems)
|
* Markus Schorn (Wind River Systems)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.core.dom.ast;
|
package org.eclipse.cdt.core.dom.ast;
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,8 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Markus Schorn - initial API and implementation
|
* Markus Schorn - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.core.dom.ast;
|
package org.eclipse.cdt.core.dom.ast;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.index.IIndexFile;
|
import org.eclipse.cdt.core.index.IIndexFile;
|
||||||
|
|
|
@ -15,14 +15,13 @@ package org.eclipse.cdt.core.dom.ast;
|
||||||
* @noimplement This interface is not intended to be implemented by clients.
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface IFunctionType extends IType {
|
public interface IFunctionType extends IType {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the return type of this function type
|
* Returns the return type of this function type
|
||||||
*/
|
*/
|
||||||
public IType getReturnType();
|
public IType getReturnType();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the adjusted parameter types
|
* Returns the adjusted parameter types
|
||||||
* ISO C99 6.7.5.3, ISO C++98 8.3.4-3
|
* ISO C99 6.7.5.3, ISO C++98 8.3.4-3
|
||||||
*/
|
*/
|
||||||
public IType[] getParameterTypes();
|
public IType[] getParameterTypes();
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* IBM - Initial API and implementation
|
* IBM - Initial API and implementation
|
||||||
* Markus Schorn (Wind River Systems)
|
* Markus Schorn (Wind River Systems)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.core.dom.ast;
|
package org.eclipse.cdt.core.dom.ast;
|
||||||
|
|
||||||
|
@ -18,7 +18,6 @@ package org.eclipse.cdt.core.dom.ast;
|
||||||
* @noimplement This interface is not intended to be implemented by clients.
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface IMacroBinding extends IBinding {
|
public interface IMacroBinding extends IBinding {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns <code>true</code> if this is a function-style macro.
|
* Returns <code>true</code> if this is a function-style macro.
|
||||||
* @since 5.0
|
* @since 5.0
|
||||||
|
|
|
@ -17,7 +17,7 @@ package org.eclipse.cdt.core.dom.ast;
|
||||||
*/
|
*/
|
||||||
public interface IPointerType extends IType {
|
public interface IPointerType extends IType {
|
||||||
/**
|
/**
|
||||||
* get the type that this is a pointer to
|
* Returns the type that this is a pointer to
|
||||||
*/
|
*/
|
||||||
public IType getType();
|
public IType getType();
|
||||||
|
|
||||||
|
@ -37,5 +37,4 @@ public interface IPointerType extends IType {
|
||||||
* @since 5.3
|
* @since 5.3
|
||||||
*/
|
*/
|
||||||
boolean isRestrict();
|
boolean isRestrict();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2004, 2010 IBM Corporation and others.
|
* Copyright (c) 2004, 2010 IBM Corporation and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Andrew Niefer (IBM Corporation) - initial API and implementation
|
* Andrew Niefer (IBM Corporation) - initial API and implementation
|
||||||
* Markus Schorn (Wind River Systems)
|
* Markus Schorn (Wind River Systems)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
@ -18,7 +18,6 @@ package org.eclipse.cdt.core.dom.ast;
|
||||||
* @noextend This interface is not intended to be extended by clients.
|
* @noextend This interface is not intended to be extended by clients.
|
||||||
*/
|
*/
|
||||||
public interface IProblemBinding extends IBinding, IScope, IType, ISemanticProblem {
|
public interface IProblemBinding extends IBinding, IScope, IType, ISemanticProblem {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the AST node that this problem was created for
|
* Returns the AST node that this problem was created for
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,7 +29,7 @@ public interface IQualifierType extends IType {
|
||||||
public boolean isVolatile();
|
public boolean isVolatile();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the type that this is qualifying
|
* Returns the type that this is qualifying
|
||||||
*/
|
*/
|
||||||
public IType getType();
|
public IType getType();
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* IBM - Initial API and implementation
|
* IBM - Initial API and implementation
|
||||||
* Markus Schorn (Wind River Systems)
|
* Markus Schorn (Wind River Systems)
|
||||||
* Bryan Wilkinson (QNX)
|
* Bryan Wilkinson (QNX)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.core.dom.ast;
|
package org.eclipse.cdt.core.dom.ast;
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ import org.eclipse.cdt.core.index.IIndexFileSet;
|
||||||
* @noimplement This interface is not intended to be implemented by clients.
|
* @noimplement This interface is not intended to be implemented by clients.
|
||||||
*/
|
*/
|
||||||
public interface IScope {
|
public interface IScope {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Classifies the scope.
|
* Classifies the scope.
|
||||||
* @since 5.1
|
* @since 5.1
|
||||||
|
@ -32,13 +31,13 @@ public interface IScope {
|
||||||
EScopeKind getKind();
|
EScopeKind getKind();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the IName for this scope, may be null
|
* Returns the IName for this scope, may be null
|
||||||
* @return The name of this scope.
|
* @return The name of this scope.
|
||||||
*/
|
*/
|
||||||
public IName getScopeName();
|
public IName getScopeName();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The method returns the first enclosing non-template scope, or <code>null</code> if this
|
* Returns the first enclosing non-template scope, or <code>null</code> if this
|
||||||
* is the global scope.
|
* is the global scope.
|
||||||
* <p>
|
* <p>
|
||||||
* For scopes obtained from an index, <code>null</code> is returned to indicate that the
|
* For scopes obtained from an index, <code>null</code> is returned to indicate that the
|
||||||
|
@ -58,32 +57,32 @@ public interface IScope {
|
||||||
public IBinding[] find(String name);
|
public IBinding[] find(String name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the binding in this scope that the given name would resolve to. Could
|
* Returns the binding in this scope that the given name would resolve to. Could
|
||||||
* return null if there is no matching binding in this scope, if the binding has not
|
* return null if there is no matching binding in this scope, if the binding has not
|
||||||
* yet been cached in this scope, or if resolve == false and the appropriate binding
|
* yet been cached in this scope, or if resolve == false and the appropriate binding
|
||||||
* has not yet been resolved.
|
* has not yet been resolved.
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
* @param resolve :
|
* @param resolve
|
||||||
* whether or not to resolve the matching binding if it has not
|
* whether or not to resolve the matching binding if it has not
|
||||||
* been so already.
|
* been so already.
|
||||||
* @return : the binding in this scope that matches the name, or null
|
* @return the binding in this scope that matches the name, or null
|
||||||
*/
|
*/
|
||||||
public IBinding getBinding(IASTName name, boolean resolve);
|
public IBinding getBinding(IASTName name, boolean resolve);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the binding in this scope that the given name would resolve to. Could
|
* Returns the binding in this scope that the given name would resolve to. Could
|
||||||
* return null if there is no matching binding in this scope, if the binding has not
|
* return null if there is no matching binding in this scope, if the binding has not
|
||||||
* yet been cached in this scope, or if resolve == false and the appropriate binding
|
* yet been cached in this scope, or if resolve == false and the appropriate binding
|
||||||
* has not yet been resolved. Accepts file local bindings from the index for the files
|
* has not yet been resolved. Accepts file local bindings from the index for the files
|
||||||
* int the given set, only.
|
* in the given set, only.
|
||||||
*
|
*
|
||||||
* @param name
|
* @param name
|
||||||
* @param resolve :
|
* @param resolve
|
||||||
* whether or not to resolve the matching binding if it has not
|
* whether or not to resolve the matching binding if it has not
|
||||||
* been so already.
|
* been so already.
|
||||||
* @param acceptLocalBindings a set of files for which to accept local bindings.
|
* @param acceptLocalBindings a set of files for which to accept local bindings.
|
||||||
* @return : the binding in this scope that matches the name, or null
|
* @return the binding in this scope that matches the name, or null
|
||||||
*/
|
*/
|
||||||
public IBinding getBinding(IASTName name, boolean resolve, IIndexFileSet acceptLocalBindings);
|
public IBinding getBinding(IASTName name, boolean resolve, IIndexFileSet acceptLocalBindings);
|
||||||
|
|
||||||
|
@ -189,5 +188,4 @@ public interface IScope {
|
||||||
* @since 5.5
|
* @since 5.5
|
||||||
*/
|
*/
|
||||||
public IBinding[] getBindings(ScopeLookupData lookup);
|
public IBinding[] getBindings(ScopeLookupData lookup);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Markus Schorn - initial API and implementation
|
* Markus Schorn - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.core.dom.ast;
|
package org.eclipse.cdt.core.dom.ast;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue