public static final class CommonDataflow.DataflowResult
extends java.lang.Object
Constructor and Description |
---|
DataflowResult(RunnerResult result) |
Modifier and Type | Method and Description |
---|---|
boolean |
cannotFailByContract(PsiCallExpression call)
Returns true if given call cannot fail according to its contracts
(e.g.
|
boolean |
expressionWasAnalyzed(PsiExpression expression)
Returns true if given expression was visited by dataflow.
|
DfType |
getDfType(PsiExpression expression) |
java.util.Set<java.lang.Object> |
getExpressionValues(PsiExpression expression)
Returns a set of expression values if known.
|
public DataflowResult(RunnerResult result)
public boolean expressionWasAnalyzed(PsiExpression expression)
expression
- expression to check, not parenthesizedpublic boolean cannotFailByContract(PsiCallExpression call)
Optional.get()
executed under Optional.isPresent()
).call
- call to checkpublic java.util.Set<java.lang.Object> getExpressionValues(PsiExpression expression)
expression
- an expression to get its valuepublic DfType getDfType(PsiExpression expression)
expression
- an expression to infer the DfType, must be deparenthesized.DfTypes.TOP
if no information from dataflow is known about this expression