public interface PsiExpressionCodeFragment extends JavaCodeFragment
JavaCodeFragment.ExceptionHandler, JavaCodeFragment.VisibilityCheckerEMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_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, setVisibilityCheckerimportClassforceResolveScope, getForcedResolveScopeclearCaches, getContainingDirectory, getFileElementType, getFileType, getModificationStamp, getNode, getOriginalFile, getParent, getPsiRoots, getViewProvider, getVirtualFile, subtreeChangedgetName, isDirectory, processChildrencheckSetNamesetNamegetPresentationcanNavigate, canNavigateToSource, navigatePsiExpression getExpression()
PsiType getExpectedType()
void setExpectedType(PsiType type)
type - the expected type of the expression.