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.VisibilityChecker
EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_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, 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
PsiType 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.