| 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.declaration.VariableSpecification
All known Subclasses: de.uka.ilkd.key.java.declaration.FieldSpecification,
VariableSpecification | public class VariableSpecification extends JavaNonTerminalProgramElement implements NamedProgramElement,ExpressionContainer,Variable(Code) | | Variable specification that defines a variable name. This is a part of a
recoder.java.declaration.VariableDeclaration and does not
contain a type reference or own modifiers. Note that calls to modifiers
are delegated to the enclosing variable declaration and are therefore
discouraged. This was necessary to subtype Declaration as analyses are
interested in the exact location of a variable name.
author: AL |
Constructor Summary | |
public | VariableSpecification() | public | VariableSpecification(IProgramVariable var) | public | VariableSpecification(IProgramVariable var, Type type) | public | VariableSpecification(IProgramVariable var, Expression init, Type type) | public | VariableSpecification(IProgramVariable var, int dim, Expression init, Type type) | public | VariableSpecification(IProgramVariable var, int dim, Expression init, Type type, PositionInfo pi) | public | VariableSpecification(ExtList children, IProgramVariable var, int dim, Type type) Constructor for the transformation of RECODER ASTs to KeY. |
dimensions | final protected int dimensions(Code) | | Dimensions.
|
VariableSpecification | public VariableSpecification()(Code) | | |
VariableSpecification | public VariableSpecification(ExtList children, IProgramVariable var, int dim, Type type)(Code) | | Constructor for the transformation of RECODER ASTs to KeY.
Parameters: children - the children of this AST element as KeY classes.May contain:an Expression (as initializer of the variable)a Comment Parameters: dim - the dimension of this type |
equalsModRenaming | public boolean equalsModRenaming(SourceElement se, NameAbstractionTable nat)(Code) | | equals modulo renaming is described in the corresponding
comment in class SourceElement. The variables declared in the
local variable declaration have to be added to the
NameAbstractionTable.
|
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 |
getDimensions | public int getDimensions()(Code) | | Get dimensions.
the int value. |
getExpressionCount | public int getExpressionCount()(Code) | | Get the number of expressions in this container.
the number of expressions. |
getInitializer | public Expression getInitializer()(Code) | | Get initializer.
the expression. |
getName | final public String getName()(Code) | | Get name.
the string. |
getProgramVariable | public IProgramVariable getProgramVariable()(Code) | | Get program variable
the program variable. |
hasInitializer | public boolean hasInitializer()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isFinal | public boolean isFinal()(Code) | | |
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 |
|
|