public class ExactInstanceof extends TypeOperator
typeReference
Constructor and Description |
---|
ExactInstanceof(Expression unaryChild,
TypeReference typeref) |
ExactInstanceof(ExtList children)
Instanceof.
|
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.
|
SourceElement |
getLastElement()
Finds the source element that occurs last in the source.
|
int |
getNotation()
Get notation.
|
int |
getPrecedence()
Get precedence.
|
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, getTypeReferenceCount
getArguments, getExpressionAt, getExpressionCount, getFirstElement, getFirstElementIncludingBlocks, isLeftAssociative, isToBeParenthesized, precedes, reuseSignature
compatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildren
getComments, hashCode, prettyPrintMain
getEndPosition, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComments, match
equalsModRenaming, getEndPosition, getFirstElement, getFirstElementIncludingBlocks, getPositionInfo, getRelativePosition, getStartPosition
public ExactInstanceof(ExtList children)
children
- an ExtList with all children of this node
the first children in list will be the expression on the left
side, the second the one on the right side a type reference.public ExactInstanceof(Expression unaryChild, TypeReference typeref)
public int getChildCount()
getChildCount
in interface NonTerminalProgramElement
getChildCount
in class Operator
public SourceElement getLastElement()
JavaSourceElement
getLastElement
in interface SourceElement
getLastElement
in class Operator
JavaSourceElement.toSource()
,
JavaSourceElement.getEndPosition()
public ProgramElement getChildAt(int index)
getChildAt
in interface NonTerminalProgramElement
getChildAt
in class Operator
index
- an index into this node's "virtual" child arrayjava.lang.ArrayIndexOutOfBoundsException
- if index is out
of boundspublic int getArity()
public int getPrecedence()
getPrecedence
in class Operator
public int getNotation()
getNotation
in class Operator
public void visit(Visitor v)
v
- the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElement
prettyPrint
in interface SourceElement
prettyPrint
in class JavaProgramElement
p
- a pretty printer.java.io.IOException
- occasionally thrown.