public interface PsiExpressionCodeFragment extends JavaCodeFragment
JavaCodeFragment.ExceptionHandler, JavaCodeFragment.VisibilityChecker
EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
Modifier and Type | Method and Description |
---|---|
PsiType |
getExpectedType()
Returns the expected type of the expression (not used by the expression itself,
but can be used by its clients).
|
PsiExpression |
getExpression()
Returns the expression contained in the fragment.
|
void |
setExpectedType(PsiType type)
Sets the expected type of the expression (not used by the expression itself,
but can be used by its clients).
|
addImportsFromString, getExceptionHandler, getSuperType, getThisType, getVisibilityChecker, importsToString, setExceptionHandler, setSuperType, setThisType, setVisibilityChecker
importClass
forceResolveScope, getForcedResolveScope
clearCaches, getContainingDirectory, getFileElementType, getFileType, getModificationStamp, getNode, getOriginalFile, getParent, getPsiRoots, getViewProvider, getVirtualFile, subtreeChanged
getName, isDirectory, processChildren
checkSetName
setName
getPresentation
canNavigate, canNavigateToSource, navigate
PsiExpression getExpression()
PsiType getExpectedType()
void setExpectedType(PsiType type)
type
- the expected type of the expression.