public interface Let extends Statement
Statement
subinterface for local variable declarations. Although of
course 'let' is not a keyword, the concept implied by the let keyword in
other languages encapsulates the idea here. Multiple variables of the same
type can be initialized in the same Let
.Modifier and Type | Method and Description |
---|---|
Let |
addAssign(Assign assign)
Adds a new assignment to this variable declaration.
|
Let |
addAssign(String name,
Expression expr)
Adds a new assignment to this variable declaration.
|
List<Assign> |
getAssigns()
Gets the list of comma separated assignments as an list of
Assign
. |
Type |
getType()
Gets the type for this declaration.
|
boolean |
isFinal()
Getter method for the isFinal flag.
|
Let |
isFinal(boolean value)
Setter method for the isFinal flag.
|
Let |
setType(Type expr)
Sets the type for this declaration.
|
comment, getLabel, isAbruptCompletionStatement, setLabel
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vm
Let addAssign(String name, Expression expr)
List<Assign> getAssigns()
Assign
.Type getType()
boolean isFinal()
Let isFinal(boolean value)
Copyright © 2000–2018 jenesis4java. All rights reserved.