| java.lang.Object de.uka.ilkd.key.java.JavaSourceElement de.uka.ilkd.key.java.JavaProgramElement de.uka.ilkd.key.java.JavaNonTerminalProgramElement de.uka.ilkd.key.java.statement.BranchImp de.uka.ilkd.key.java.statement.Case
Constructor Summary | |
public | Case() Case. | public | Case(Expression e) Case. | public | Case(Expression e, Statement[] body) Case. | public | Case(ExtList children, Expression expr, PositionInfo pos) Constructor for the transformation of COMPOST ASTs to KeY.
Parameters: children - the children of this AST element as KeY classes.May contain: Commentsa Statement (as the statement following case)Must NOT contain: an Expression indicating the condition of the caseas there are classes that are Expression and Statement, so they mightget mixed up. |
body | final protected ArrayOfStatement body(Code) | | Body.
|
Case | public Case(Expression e, Statement[] body)(Code) | | Case.
Parameters: e - an expression. Parameters: body - a statement mutable list. |
Case | public Case(ExtList children, Expression expr, PositionInfo pos)(Code) | | Constructor for the transformation of COMPOST ASTs to KeY.
Parameters: children - the children of this AST element as KeY classes.May contain: Commentsa Statement (as the statement following case)Must NOT contain: an Expression indicating the condition of the caseas there are classes that are Expression and Statement, so they mightget mixed up. Use the second parameter of this constructor for theexpression. Parameters: expr - the expression of the case |
getBody | public ArrayOfStatement getBody()(Code) | | The body may be empty (null), to define a fall-through.
Attaching an
EmptyStatement would create a single ";".
|
getChildAt | public ProgramElement getChildAt(int index)(Code) | | Returns the child at the specified index in this node's "virtual"
child array
Parameters: index - an index into this node's "virtual" child array the program element at the given position exception: ArrayIndexOutOfBoundsException - if index is outof bounds |
getChildCount | public int getChildCount()(Code) | | Returns the number of children of this node.
an int giving the number of children of this node |
getExpression | public Expression getExpression()(Code) | | Get expression.
the expression. |
getExpressionCount | public int getExpressionCount()(Code) | | Get the number of expressions in this container.
the number of expressions. |
getStatementCount | public int getStatementCount()(Code) | | Get the number of statements in this container.
the number of statements. |
visit | public void visit(Visitor v)(Code) | | calls the corresponding method of a visitor in order to
perform some action/transformation on this element
Parameters: v - the Visitor |
|
|