public class TypeCast extends TypeOperator
typeReference| Constructor and Description |
|---|
TypeCast()
Type cast.
|
TypeCast(Expression child,
TypeReference typeref)
Note: The ordering of the arguments does not match the syntactical
appearance of a Java type case, but the order in the superclass
TypeOperator.
|
TypeCast(ExtList children)
Constructor for the transformation of COMPOST ASTs to KeY.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getArity()
Get arity.
|
ProgramElement |
getChildAt(int index)
Returns the child at the specified index in this node's "virtual"
child array
|
int |
getChildCount()
Returns the number of children of this node.
|
int |
getNotation()
Get notation.
|
int |
getPrecedence()
Get precedence.
|
boolean |
isLeftAssociative()
Checks if this operator is left or right associative.
|
void |
prettyPrint(PrettyPrinter p)
Pretty printing the source element.
|
void |
visit(Visitor v)
calls the corresponding method of a visitor in order to
perform some action/transformation on this element
|
getKeYJavaType, getKeYJavaType, getTypeReference, getTypeReferenceAt, getTypeReferenceCountgetArguments, getExpressionAt, getExpressionCount, getFirstElement, getFirstElementIncludingBlocks, getLastElement, hashCode, isToBeParenthesized, precedes, reuseSignaturecompatibleBlockSize, equals, equalsModRenaming, getArrayPos, match, matchChildrengetComments, prettyPrintMaingetEndPosition, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComments, matchequalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getLastElement, getPositionInfo, getRelativePosition, getStartPositionpublic TypeCast()
public TypeCast(Expression child, TypeReference typeref)
public TypeCast(ExtList children)
children - the children of this AST element as KeY classes.public int getChildCount()
getChildCount in interface NonTerminalProgramElementgetChildCount in class Operatorpublic ProgramElement getChildAt(int index)
getChildAt in interface NonTerminalProgramElementgetChildAt in class Operatorindex - an index into this node's "virtual" child arrayArrayIndexOutOfBoundsException - if index is out
of boundspublic int getArity()
public int getPrecedence()
getPrecedence in class Operatorpublic int getNotation()
getNotation in class Operatorpublic boolean isLeftAssociative()
isLeftAssociative in class Operatortrue, if the operator is left associative,
false otherwise.public void visit(Visitor v)
v - the Visitorpublic void prettyPrint(PrettyPrinter p) throws IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.IOException - occasionally thrown.