public class MethodCallInstruction extends ExpressionPushingInstruction<PsiExpression>
Constructor and Description |
---|
MethodCallInstruction(PsiCall call,
DfaValue precalculatedReturnValue,
java.util.List<? extends MethodContract> contracts) |
MethodCallInstruction(PsiMethodReferenceExpression reference,
java.util.List<? extends MethodContract> contracts) |
Modifier and Type | Method and Description |
---|---|
DfaInstructionState[] |
accept(DataFlowRunner runner,
DfaMemoryState stateBefore,
InstructionVisitor visitor) |
int |
getArgCount() |
Nullability |
getArgRequiredNullability(int index) |
PsiElement |
getArgumentAnchor(int index)
Returns a PsiElement which at best represents an argument with given index
|
PsiCall |
getCallExpression() |
PsiElement |
getContext() |
java.util.List<MethodContract> |
getContracts() |
DfaValue |
getPrecalculatedReturnValue() |
PsiType |
getResultType() |
Nullability |
getReturnNullability() |
PsiMethod |
getTargetMethod() |
boolean |
isVarArgCall() |
static boolean |
isVarArgCall(PsiMethod method,
PsiSubstitutor substitutor,
PsiExpression[] args,
PsiParameter[] parameters) |
boolean |
shouldFlushFields() |
java.lang.String |
toString() |
getExpression, getExpressionRange
getIndex, nextInstruction, setIndex
public MethodCallInstruction(PsiMethodReferenceExpression reference, java.util.List<? extends MethodContract> contracts)
public MethodCallInstruction(PsiCall call, DfaValue precalculatedReturnValue, java.util.List<? extends MethodContract> contracts)
public PsiElement getArgumentAnchor(int index)
index
- an argument index, must be from 0 to getArgCount()
-1.public static boolean isVarArgCall(PsiMethod method, PsiSubstitutor substitutor, PsiExpression[] args, PsiParameter[] parameters)
public PsiType getResultType()
public int getArgCount()
public boolean shouldFlushFields()
public PsiMethod getTargetMethod()
public boolean isVarArgCall()
public Nullability getArgRequiredNullability(int index)
public java.util.List<MethodContract> getContracts()
public DfaInstructionState[] accept(DataFlowRunner runner, DfaMemoryState stateBefore, InstructionVisitor visitor)
accept
in class Instruction
public PsiCall getCallExpression()
public PsiElement getContext()
public DfaValue getPrecalculatedReturnValue()
public Nullability getReturnNullability()
public java.lang.String toString()
toString
in class java.lang.Object