diff options
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/ast/IReturnStatement.java')
-rw-r--r-- | bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/ast/IReturnStatement.java | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/ast/IReturnStatement.java b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/ast/IReturnStatement.java index 6dabd13b..a9b77f19 100644 --- a/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/ast/IReturnStatement.java +++ b/bundles/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/core/ast/IReturnStatement.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2008 IBM Corporation and others. + * Copyright (c) 2005, 2012 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 @@ -11,20 +11,45 @@ package org.eclipse.wst.jsdt.core.ast; +import org.eclipse.wst.jsdt.core.infer.InferredType; + /** * - * Representation of a return statement. + * Representation of a return statement. * <p> - * This interface is not intended to be implemented by clients. + * @noimplement This interface is not intended to be implemented by clients. * </p> - * Provisional API: This class/interface is part of an interim API that is still under development and expected to - * change significantly before reaching stability. It is being made available at this early stage to solicit feedback - * from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken - * (repeatedly) as the API evolves. */ public interface IReturnStatement extends IStatement { IExpression getExpression(); + + /** + * @param type + * {@link InferredType} returned by this return statement + */ + void setInferredType(InferredType type); + + /** + * @return {@link InferredType} returned by this return statement + */ + InferredType getInferredType(); + + /** + * @param isType + * <code>true</code> if this return statement is actually + * returning a type, rather then the instance of a type. + * <code>false</code> if this return statement is returning an + * instance of a type rather then the type itself. + */ + public void setIsType(boolean isType); + /** + * @return <code>true</code> if this return statement is actually + * returning a type, rather then the instance of a type. + * <code>false</code> if this return statement is returning an + * instance of a type rather then the type itself. + */ + public boolean isType(); } |