| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private Map | |
| private ExpressionFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Visitor visitor)
Overrides org. Implements org. Accept the visitor and allow it to perform actions on this Node. |
| public void | |
| public void | |
| public Expression | |
| public void | |
| public IfStatement | |
| public void | |
| public void | |
| public SwitchStatement | |
| public void | |
| public TryStatement | |
| public WhileStatement | |
| public List | |
| private void | |
| public ExpressionFactory | exprFactory()
Return the ExpressionFactory that must be used to create any expressions occuring either in expressions added to the body, or in other statements immediately contained in this BlockStatement. |
| public Variable | |
| public boolean |
| body | back to summary |
|---|---|
| private List<Statement> body | |
| definitions | back to summary |
|---|---|
| private Map<String, DefinitionStatement> definitions | |
| efactory | back to summary |
|---|---|
| private ExpressionFactory efactory | |
| BlockStatement | back to summary |
|---|---|
| pack-priv BlockStatement(Node parent) | |
| accept | back to summary |
|---|---|
| public void accept(Visitor visitor) Overrides org. Implements org. Doc from org. Accept the visitor and allow it to perform actions on this Node.
| |
| addAssign | back to summary |
|---|---|
| public void addAssign(Expression left, Expression right) | |
| addBreak | back to summary |
|---|---|
| public void addBreak() Add a break statement to this BlockStatement. | |
| addDefinition | back to summary |
|---|---|
| public Expression addDefinition(Type type, String ident, Expression value) | |
| addExpression | back to summary |
|---|---|
| public void addExpression(Expression expr) | |
| addIf | back to summary |
|---|---|
| public IfStatement addIf(Expression cond) | |
| addReturn | back to summary |
|---|---|
| public void addReturn() Add an empty return to this BlockStatement. The enclosing MethodGenerator must have a void return type. | |
| addReturn | back to summary |
|---|---|
| public void addReturn(Expression expr) Add a return with an expression to this BlockStatement. The enclosing MethodGenerator must have a return type that is assignment compatible with the type of expr. | |
| addSwitch | back to summary |
|---|---|
| public SwitchStatement addSwitch(Expression value) | |
| addThrow | back to summary |
|---|---|
| public void addThrow(Expression expr) | |
| addTry | back to summary |
|---|---|
| public TryStatement addTry() | |
| addWhile | back to summary |
|---|---|
| public WhileStatement addWhile(Expression expr) | |
| body | back to summary |
|---|---|
| public List Return the list of Statements in this BlockStatement. | |
| checkSwitchExpressionType | back to summary |
|---|---|
| private void checkSwitchExpressionType(Type type) | |
| exprFactory | back to summary |
|---|---|
| public ExpressionFactory exprFactory() Return the ExpressionFactory that must be used to create any expressions occuring either in expressions added to the body, or in other statements immediately contained in this BlockStatement. | |
| getVar | back to summary |
|---|---|
| public Variable getVar(String ident) Look up the ident to see if it has an associated Variable in this block. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Return true iff this BlockStatement contains no local variables or statements. | |