public class MethodReference extends JavaNonTerminalProgramElement implements MethodOrConstructorReference, MemberReference, ReferencePrefix, ReferenceSuffix, ExpressionStatement, TypeReferenceContainer, NameReference
| Modifier and Type | Field and Description | 
|---|---|
protected ImmutableArray<? extends Expression> | 
arguments
Arguments. 
 | 
protected MethodName | 
name
Name. 
 | 
protected ReferencePrefix | 
prefix
Access path. 
 | 
| Constructor and Description | 
|---|
MethodReference(ExtList children,
               MethodName n,
               ReferencePrefix p)  | 
MethodReference(ExtList args,
               MethodName n,
               ReferencePrefix p,
               PositionInfo pos)  | 
MethodReference(ExtList children,
               MethodName n,
               ReferencePrefix p,
               PositionInfo pos,
               java.lang.String scope)  | 
MethodReference(ImmutableArray<? extends Expression> args,
               MethodName n,
               ReferencePrefix p)  | 
MethodReference(ImmutableArray<Expression> args,
               MethodName n,
               ReferencePrefix p,
               PositionInfo pos)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
checkArguments()  | 
KeYJavaType | 
determineStaticPrefixType(Services services,
                         ExecutionContext ec)
returns the static KeYJavaType of the methods prefix 
 | 
Expression | 
getArgumentAt(int index)
Gets index-th argument 
 | 
ImmutableArray<? extends Expression> | 
getArguments()
Get arguments. 
 | 
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. 
 | 
KeYJavaType | 
getKeYJavaType()  | 
KeYJavaType | 
getKeYJavaType(Services javaServ)  | 
KeYJavaType | 
getKeYJavaType(Services services,
              ExecutionContext ec)
returns the  
KeYJavaType of an expression | 
MethodName | 
getMethodName()  | 
ImmutableList<KeYJavaType> | 
getMethodSignature(Services services,
                  ExecutionContext ec)
determines the arguments types and constructs a signature of the current
 method 
 | 
java.lang.String | 
getName()
Get name. 
 | 
ProgramElementName | 
getProgramElementName()
Get identifier. 
 | 
ReferencePrefix | 
getReferencePrefix()
Get reference prefix. 
 | 
TypeReference | 
getTypeReferenceAt(int index)  | 
int | 
getTypeReferenceCount()
Get the number of type references in this container. 
 | 
boolean | 
implicit()  | 
IProgramMethod | 
method(Services services,
      KeYJavaType refPrefixType,
      ExecutionContext ec)  | 
IProgramMethod | 
method(Services services,
      KeYJavaType classType,
      ImmutableList<KeYJavaType> signature,
      KeYJavaType context)  | 
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
protected final MethodName name
protected final ImmutableArray<? extends Expression> arguments
public MethodReference(ExtList args, MethodName n, ReferencePrefix p, PositionInfo pos)
public MethodReference(ImmutableArray<? extends Expression> args, MethodName n, ReferencePrefix p)
public MethodReference(ImmutableArray<Expression> args, MethodName n, ReferencePrefix p, PositionInfo pos)
public MethodReference(ExtList children, MethodName n, ReferencePrefix p)
public MethodReference(ExtList children, MethodName n, ReferencePrefix p, PositionInfo pos, java.lang.String scope)
protected void checkArguments()
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 ReferencePrefix getReferencePrefix()
getReferencePrefix in interface ReferencePrefixpublic 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 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 final java.lang.String getName()
getName in interface NamedModelElementpublic ProgramElementName getProgramElementName()
getProgramElementName in interface NamedProgramElementpublic ImmutableArray<? extends Expression> getArguments()
getArguments in interface MethodOrConstructorReferencepublic Expression getArgumentAt(int index)
public ImmutableList<KeYJavaType> getMethodSignature(Services services, ExecutionContext ec)
public KeYJavaType determineStaticPrefixType(Services services, ExecutionContext ec)
public IProgramMethod method(Services services, KeYJavaType refPrefixType, ExecutionContext ec)
public IProgramMethod method(Services services, KeYJavaType classType, ImmutableList<KeYJavaType> signature, KeYJavaType context)
services - the Services class offering access to metamodel 
 informationclassType - the KeYJavaType where to start looking for the 
 declared methodsignature - the IListcontext - the KeYJavaType from where the method is calledpublic boolean implicit()
public MethodName getMethodName()
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.public KeYJavaType getKeYJavaType(Services services, ExecutionContext ec)
ExpressionKeYJavaType of an expressiongetKeYJavaType in interface Expressionpublic KeYJavaType getKeYJavaType(Services javaServ)
public KeYJavaType getKeYJavaType()