blob: 99a843ec20177371d1657a2cdf4217c35b69875b (
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
|
/*******************************************************************************
* 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>
* Abstract representation of a var.
* </p>
*
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface IAbstractVariableDeclaration extends IStatement{
/**
* Set the inferred type of the var
* @param inferred type
*/
public void setInferredType(InferredType type);
/**
* Get the inferred type of the var
* @return inferred type
*/
public InferredType getInferredType();
/**
* get the var name
* @return name
*/
public char[] getName();
/**
* Get the initialization expression of the var
* @return initialization expression
*/
public IExpression getInitialization();
/**
* get the JSDoc for the var
* @return jsdoc
*/
public IJsDoc getJsDoc();
/**
* @param isType
* <code>true</code> if this variable declaration is actually a
* reference to a type, rather then the instance of a type.
* <code>false</code> if this variable is a reference to an
* instance of a type rather then the type itself.
*/
public void setIsType(boolean isType);
/**
* @return <code>true</code> if this variable declaration is actually a
* reference to a type, rather then the instance of a type.
* <code>false</code> if this variable is a reference to an
* instance of a type rather then the type itself.
*/
public boolean isType();
}
|