|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ASDeclarationStatement
A statement that declares variables, such as
var a = 1;.
A declaration-statement may declare multiple variables, each optionally specifying a type and an initialiser-value.
StatementContainer.newDeclaration(Expression)| Method Summary | |
|---|---|
Expression |
getFirstVarInitializer()
|
java.lang.String |
getFirstVarName()
|
java.lang.String |
getFirstVarTypeName()
|
java.util.List |
getVars()
Returns a list of ASVarDeclarationFragment objects. |
boolean |
isConstant()
Returns false if this is a declaration using the var
keyword (the default), and true is this is a declaration using the
const keyword. |
void |
setConstant(boolean constant)
If given true, this declaration will use the const
keyword, if given false, this declaration will use the
var keyword. |
| Method Detail |
|---|
boolean isConstant()
var
keyword (the default), and true is this is a declaration using the
const keyword.
void setConstant(boolean constant)
const
keyword, if given false, this declaration will use the
var keyword.
java.util.List getVars()
ASVarDeclarationFragment objects.
java.lang.String getFirstVarName()
java.lang.String getFirstVarTypeName()
Expression getFirstVarInitializer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||