Skip to main content
summaryrefslogtreecommitdiffstats
blob: 40843aba4cfc000cefed61133c5b9fd3aa8fe58f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*******************************************************************************
 * 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
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.wst.jsdt.core.ast;

import org.eclipse.wst.jsdt.core.infer.InferredType;

/**
 * <p>
 * Representation of an assignment expression
 * </p>
 *  
 *@noimplement This interface is not intended to be implemented by clients.
 */
public interface IAssignment extends IExpression {

	/**
	 * get the expression being assigned
	 * @return expression
	 */
	IExpression getExpression();

	/**
	 * The assignment target
	 * @return
	 */
	IExpression getLeftHandSide();
	
	IJsDoc getJsDoc();
	
	/**
	 * Set the inferred type of the assignment
	 * @param inferred type
	 */
	public void setInferredType(InferredType type);
	/**
	 * Get the inferred type of the assignment
	 * @return inferred type
	 */
	public InferredType getInferredType();
	
	/**
	 * @param isType
	 *            <code>true</code> if this assignment is actually a assigning
	 *            a type, rather then the instance of a type.
	 *            <code>false</code> if this assignment is a assigning an
	 *            instance of a type rather then the type itself.
	 */
	public void setIsType(boolean isType);

	/**
	 * @return <code>true</code> if this assignment is actually a assigning a
	 *         type, rather then the instance of a type. <code>false</code> if
	 *         this assignment is a assigning an instance of a type rather
	 *         then the type itself.
	 */
	public boolean isType();
}

Back to the top