public class ArrayLengthReference extends JavaNonTerminalProgramElement implements Reference, Expression, ReferenceSuffix
a.length!
  Use JavaInfo.getArrayLength() instead.| Modifier and Type | Field and Description | 
|---|---|
protected ReferencePrefix | 
prefix
Reference prefix. 
 | 
| Constructor and Description | 
|---|
ArrayLengthReference()
Array length reference. 
 | 
ArrayLengthReference(ExtList children)
Constructor for the transformation of COMPOST ASTs to KeY. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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 | 
getFirstElement()
Finds the source element that occurs first in the source. 
 | 
SourceElement | 
getFirstElementIncludingBlocks()
Finds the source element that occurs first in the source. 
 | 
KeYJavaType | 
getKeYJavaType(Services javaServ)  | 
KeYJavaType | 
getKeYJavaType(Services javaServ,
              ExecutionContext ec)
returns the  
KeYJavaType of an expression | 
ReferencePrefix | 
getReferencePrefix()
Get reference prefix. 
 | 
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 
 | 
compatibleBlockSize, computeHashCode, equals, equalsModRenaming, getArrayPos, match, matchChildrengetComments, hashCode, prettyPrintMain, reuseSignaturegetEndPosition, getLastElement, getParentClass, getPositionInfo, getRelativePosition, getStartPosition, setParentClass, toSource, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetComments, matchequalsModRenaming, getEndPosition, getLastElement, getPositionInfo, getRelativePosition, getStartPositionprotected final ReferencePrefix prefix
public ArrayLengthReference()
public ArrayLengthReference(ExtList children)
children - the children of this AST element as KeY classes.
     May contain: 
        a ReferencePrefix (for the array length),
        Commentspublic int getChildCount()
getChildCount in interface NonTerminalProgramElementpublic ProgramElement getChildAt(int index)
getChildAt in interface NonTerminalProgramElementindex - an index into this node's "virtual" child arrayjava.lang.ArrayIndexOutOfBoundsException - if index is out
                 of boundspublic KeYJavaType getKeYJavaType(Services javaServ)
public KeYJavaType getKeYJavaType(Services javaServ, ExecutionContext ec)
ExpressionKeYJavaType of an expressiongetKeYJavaType in interface Expressionpublic ReferencePrefix getReferencePrefix()
public SourceElement getFirstElement()
JavaSourceElementgetFirstElement in interface SourceElementgetFirstElement in class JavaSourceElementJavaSourceElement.toSource(), 
JavaSourceElement.getStartPosition()public SourceElement getFirstElementIncludingBlocks()
SourceElementgetFirstElementIncludingBlocks in interface SourceElementgetFirstElementIncludingBlocks in class JavaSourceElementSourceElement.getStartPosition()public void visit(Visitor v)
visit in interface SourceElementv - the Visitorpublic void prettyPrint(PrettyPrinter p) throws java.io.IOException
JavaSourceElementprettyPrint in interface SourceElementprettyPrint in class JavaProgramElementp - a pretty printer.java.io.IOException - occasionally thrown.