public class JavaSliceProvider extends java.lang.Object implements SliceLanguageSupportProvider, SliceUsageTransformer
Constructor and Description |
---|
JavaSliceProvider() |
Modifier and Type | Method and Description |
---|---|
SliceUsage |
createRootUsage(PsiElement element,
SliceAnalysisParams params) |
PsiElement |
getElementForDescription(PsiElement element) |
PsiElement |
getExpressionAtCaret(PsiElement atCaret,
boolean dataFlowToThis) |
static JavaSliceProvider |
getInstance() |
SliceUsageCellRendererBase |
getRenderer() |
void |
registerExtraPanelActions(DefaultActionGroup actionGroup,
SliceTreeBuilder sliceTreeBuilder) |
void |
startAnalyzeLeafValues(AbstractTreeStructure structure,
java.lang.Runnable finalRunnable) |
void |
startAnalyzeNullness(AbstractTreeStructure structure,
java.lang.Runnable finalRunnable) |
java.util.Collection<SliceUsage> |
transform(SliceUsage usage)
The method returns list of SliceUsage which should replace original one and are specific to the transformer language
|
public static JavaSliceProvider getInstance()
public SliceUsage createRootUsage(PsiElement element, SliceAnalysisParams params)
createRootUsage
in interface SliceLanguageSupportProvider
public java.util.Collection<SliceUsage> transform(SliceUsage usage)
SliceUsageTransformer
transform
in interface SliceUsageTransformer
usage
- SliceUsage generated by the slicer corresponding to the language of the parent nodepublic PsiElement getExpressionAtCaret(PsiElement atCaret, boolean dataFlowToThis)
getExpressionAtCaret
in interface SliceLanguageSupportProvider
public PsiElement getElementForDescription(PsiElement element)
getElementForDescription
in interface SliceLanguageSupportProvider
public SliceUsageCellRendererBase getRenderer()
getRenderer
in interface SliceLanguageSupportProvider
public void startAnalyzeLeafValues(AbstractTreeStructure structure, java.lang.Runnable finalRunnable)
startAnalyzeLeafValues
in interface SliceLanguageSupportProvider
public void startAnalyzeNullness(AbstractTreeStructure structure, java.lang.Runnable finalRunnable)
startAnalyzeNullness
in interface SliceLanguageSupportProvider
public void registerExtraPanelActions(DefaultActionGroup actionGroup, SliceTreeBuilder sliceTreeBuilder)
registerExtraPanelActions
in interface SliceLanguageSupportProvider