public class FieldReference extends VariableReference implements MemberReference, ReferenceSuffix, TypeReferenceContainer, ExpressionContainer
| Modifier and Type | Field and Description | 
|---|---|
protected ReferencePrefix | 
prefix
Reference prefix. 
 | 
variable| Modifier | Constructor and Description | 
|---|---|
protected  | 
FieldReference()  | 
  | 
FieldReference(ExtList children,
              ReferencePrefix prefix)  | 
  | 
FieldReference(ProgramVariable pv,
              ReferencePrefix prefix)  | 
  | 
FieldReference(ProgramVariable pv,
              ReferencePrefix prefix,
              PositionInfo pi)  | 
| 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. 
 | 
Expression | 
getExpressionAt(int index)  | 
int | 
getExpressionCount()
Get the number of expressions in this container. 
 | 
SourceElement | 
getFirstElement()
Finds the source element that occurs first in the source. 
 | 
SourceElement | 
getFirstElementIncludingBlocks()
Finds the source element that occurs first in the source. 
 | 
ReferencePrefix | 
getReferencePrefix()
Get reference prefix. 
 | 
TypeReference | 
getTypeReferenceAt(int index)  | 
int | 
getTypeReferenceCount()
Get the number of type references in this container. 
 | 
private void | 
initPrefix(ProgramVariable pv,
          ReferencePrefix prefix)  | 
boolean | 
isSingleDeref()
are there "dots" in the prefix? 
 | 
void | 
prettyPrint(PrettyPrinter p)
pretty print 
 | 
boolean | 
referencesOwnInstanceField()  | 
ReferencePrefix | 
setReferencePrefix(ReferencePrefix rp)
Set reference prefix. 
 | 
void | 
visit(Visitor v)
calls the corresponding method of a visitor in order to
 perform some action/transformation on this element 
 | 
getIdentifier, getKeYJavaType, getKeYJavaType, getKeYJavaType, getName, getProgramElementName, getProgramVariablecompatibleBlockSize, 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 ReferencePrefix prefix
protected FieldReference()
public FieldReference(ProgramVariable pv, ReferencePrefix prefix)
public FieldReference(ExtList children, ReferencePrefix prefix)
public FieldReference(ProgramVariable pv, ReferencePrefix prefix, PositionInfo pi)
private void initPrefix(ProgramVariable pv, ReferencePrefix prefix)
public int getChildCount()
getChildCount in interface NonTerminalProgramElementgetChildCount in class VariableReferencepublic ProgramElement getChildAt(int index)
getChildAt in interface NonTerminalProgramElementgetChildAt in class VariableReferenceindex - an index into this node's "virtual" child arrayjava.lang.ArrayIndexOutOfBoundsException - if index is out
                 of boundspublic ReferencePrefix getReferencePrefix()
getReferencePrefix in interface ReferencePrefixgetReferencePrefix in class VariableReferencepublic boolean referencesOwnInstanceField()
public ReferencePrefix setReferencePrefix(ReferencePrefix rp)
setReferencePrefix in class VariableReferencepublic int getTypeReferenceCount()
getTypeReferenceCount in interface TypeReferenceContainerpublic TypeReference getTypeReferenceAt(int index)
getTypeReferenceAt in interface TypeReferenceContainerpublic int getExpressionCount()
getExpressionCount in interface ExpressionContainerpublic Expression getExpressionAt(int index)
getExpressionAt in interface ExpressionContainerpublic SourceElement getFirstElement()
JavaSourceElementgetFirstElement in interface SourceElementgetFirstElement in class VariableReferenceJavaSourceElement.toSource(), 
JavaSourceElement.getStartPosition()public SourceElement getFirstElementIncludingBlocks()
SourceElementgetFirstElementIncludingBlocks in interface SourceElementgetFirstElementIncludingBlocks in class JavaSourceElementSourceElement.getStartPosition()public void prettyPrint(PrettyPrinter p) throws java.io.IOException
prettyPrint in interface SourceElementprettyPrint in class VariableReferencep - a pretty printer.java.io.IOException - occasionally thrown.public void visit(Visitor v)
visit in interface SourceElementvisit in class VariableReferencev - the Visitorpublic boolean isSingleDeref()