public class CommonDataflow
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CommonDataflow.DataflowResult
Represents the result of dataflow applied to some code fragment (usually a method)
|
Constructor and Description |
---|
CommonDataflow() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
computeValue(PsiExpression expression)
Returns the value of given expression calculated via dataflow; or null if value is null or unknown.
|
static CommonDataflow.DataflowResult |
getDataflowResult(PsiExpression context)
Returns the dataflow result for code fragment which contains given context
|
static DfType |
getDfType(PsiExpression expression) |
static LongRangeSet |
getExpressionRange(PsiExpression expression)
Returns long range set for expression or null if range is unknown.
|
public static CommonDataflow.DataflowResult getDataflowResult(PsiExpression context)
context
- a context to get the dataflow resultpublic static DfType getDfType(PsiExpression expression)
expression
- an expression to infer the DfTypeDfTypes.TOP
if no information from dataflow is known about this expressionpublic static LongRangeSet getExpressionRange(PsiExpression expression)
ConstantExpressionEvaluator
and only then calls getDfType(PsiExpression)
.expression
- expression to get its rangepublic static java.lang.Object computeValue(PsiExpression expression)
expression
- expression to analyze