Class MethodCall
java.lang.Object
org.checkerframework.dataflow.expression.JavaExpression
org.checkerframework.dataflow.expression.MethodCall
A call to a @Deterministic method.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final List<JavaExpression>The arguments.protected final ExecutableElementThe method being called.protected final JavaExpressionThe receiver argument.Fields inherited from class org.checkerframework.dataflow.expression.JavaExpressiontype
- 
Constructor SummaryConstructorsConstructorDescriptionMethodCall(TypeMirror type, ExecutableElement method, JavaExpression receiver, List<JavaExpression> arguments) Creates a new MethodCall.
- 
Method SummaryModifier and TypeMethodDescription<R,P> R accept(JavaExpressionVisitor<R, P> visitor, P p) Accept method of the visitor pattern.booleancontainsModifiableAliasOf(Store<?> store, JavaExpression other) Returns true if and only ifotherappears anywhere in this or an expression appears in this such thatothermight alias this expression, and that expression is modifiable.booleancontainsOfClass(Class<? extends JavaExpression> clazz) booleanReturns true if and only if this contains a JavaExpression that is syntactically equal toother.booleanReturns the method call arguments (for inspection only - do not modify any of the arguments).Returns the ExecutableElement for the method call.Returns the method call receiver (for inspection only - do not modify).inthashCode()booleanisDeterministic(AnnotationProvider provider) Returns true if the expression is deterministic.booleanReturns true if and only if the value this expression stands for cannot be changed (with respect to ==) by a method call.booleanReturns true if and only if the value this expression stands for cannot be changed by a method call, including changes to any of its fields.booleanReturns true if and only if the two Java expressions are syntactically identical.toString()Methods inherited from class org.checkerframework.dataflow.expression.JavaExpressionatConstructorInvocation, atFieldAccess, atMethodBody, atMethodInvocation, atMethodInvocation, containsUnknown, fromArrayAccess, fromNode, fromNodeFieldAccess, fromTree, fromVariableTree, getFormalParameters, getImplicitReceiver, getParametersAsLocalVariables, getPseudoReceiver, getReceiver, getType, listContainsSyntacticEqualJavaExpression, listIsDeterministic, syntacticEqualsList, toStringDebug
- 
Field Details- 
methodThe method being called.
- 
receiverThe receiver argument.
- 
argumentsThe arguments.
 
- 
- 
Constructor Details- 
MethodCallpublic MethodCall(TypeMirror type, ExecutableElement method, JavaExpression receiver, List<JavaExpression> arguments) Creates a new MethodCall.- Parameters:
- type- the type of the method call
- method- the method being called
- receiver- the receiver argument
- arguments- the arguments
 
 
- 
- 
Method Details- 
getElementReturns the ExecutableElement for the method call.- Returns:
- the ExecutableElement for the method call
 
- 
getReceiverReturns the method call receiver (for inspection only - do not modify).- Returns:
- the method call receiver (for inspection only - do not modify)
 
- 
getArgumentsReturns the method call arguments (for inspection only - do not modify any of the arguments).- Returns:
- the method call arguments (for inspection only - do not modify any of the arguments)
 
- 
containsOfClass- Specified by:
- containsOfClassin class- JavaExpression
 
- 
isDeterministicDescription copied from class:JavaExpressionReturns true if the expression is deterministic.- Specified by:
- isDeterministicin class- JavaExpression
- Parameters:
- provider- an annotation provider (a type factory)
- Returns:
- true if this expression is deterministic
 
- 
isUnassignableByOtherCodepublic boolean isUnassignableByOtherCode()Description copied from class:JavaExpressionReturns true if and only if the value this expression stands for cannot be changed (with respect to ==) by a method call. This is the case for local variables, the self reference, final field accesses whose receiver isJavaExpression.isUnassignableByOtherCode(), and operations whose operands are allJavaExpression.isUnmodifiableByOtherCode().- Specified by:
- isUnassignableByOtherCodein class- JavaExpression
- See Also:
 
- 
isUnmodifiableByOtherCodepublic boolean isUnmodifiableByOtherCode()Description copied from class:JavaExpressionReturns true if and only if the value this expression stands for cannot be changed by a method call, including changes to any of its fields.Approximately, this returns true if the expression is JavaExpression.isUnassignableByOtherCode()and its type is immutable.- Specified by:
- isUnmodifiableByOtherCodein class- JavaExpression
- See Also:
 
- 
syntacticEqualsDescription copied from class:JavaExpressionReturns true if and only if the two Java expressions are syntactically identical.This exists for use by JavaExpression.containsSyntacticEqualJavaExpression(org.checkerframework.dataflow.expression.JavaExpression).- Specified by:
- syntacticEqualsin class- JavaExpression
- Parameters:
- je- the other Java expression to compare to this one
- Returns:
- true if and only if the two Java expressions are syntactically identical
 
- 
containsSyntacticEqualJavaExpressionDescription copied from class:JavaExpressionReturns true if and only if this contains a JavaExpression that is syntactically equal toother.- Specified by:
- containsSyntacticEqualJavaExpressionin class- JavaExpression
- Parameters:
- other- the JavaExpression to search for
- Returns:
- true if and only if this contains a JavaExpression that is syntactically equal to
     other
 
- 
containsModifiableAliasOfDescription copied from class:JavaExpressionReturns true if and only ifotherappears anywhere in this or an expression appears in this such thatothermight alias this expression, and that expression is modifiable.This is always true, except for cases where the Java type information prevents aliasing and none of the subexpressions can alias 'other'. - Overrides:
- containsModifiableAliasOfin class- JavaExpression
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
- 
acceptDescription copied from class:JavaExpressionAccept method of the visitor pattern.- Specified by:
- acceptin class- JavaExpression
- Type Parameters:
- R- result type of the operation
- P- parameter type
- Parameters:
- visitor- the visitor to be applied to this JavaExpression
- p- the parameter for this operation
- Returns:
- the result of visiting this
 
 
-