public interface PsiTypeCodeFragment extends JavaCodeFragment
| Modifier and Type | Interface and Description |
|---|---|
static class |
PsiTypeCodeFragment.IncorrectTypeException |
static class |
PsiTypeCodeFragment.NoTypeException |
static class |
PsiTypeCodeFragment.TypeSyntaxException |
JavaCodeFragment.ExceptionHandler, JavaCodeFragment.VisibilityCheckerEMPTY_ARRAYEMPTY_NAVIGATABLE_ELEMENT_ARRAYEMPTY_NAVIGATION_ITEM_ARRAY| Modifier and Type | Method and Description |
|---|---|
PsiType |
getType()
Returns the type referenced by the code fragment.
|
boolean |
isVoidValid()
Checks if
void is treated as a valid type for the contents of
the code fragment. |
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, navigatePsiType getType() throws PsiTypeCodeFragment.TypeSyntaxException, PsiTypeCodeFragment.NoTypeException
PsiTypeCodeFragment.TypeSyntaxException - if the code fragment contains a syntax error.PsiTypeCodeFragment.NoTypeException - if the contents of the code fragment is not a Java type.boolean isVoidValid()
void is treated as a valid type for the contents of
the code fragment.void is a valid type, false otherwise.