public class PsiTypeCodeFragmentImpl extends PsiCodeFragmentImpl implements PsiTypeCodeFragment
PsiTypeCodeFragment.IncorrectTypeException, PsiTypeCodeFragment.NoTypeException, PsiTypeCodeFragment.TypeSyntaxException
JavaCodeFragment.ExceptionHandler, JavaCodeFragment.VisibilityChecker
IntentionFilterOwner.IntentionActionsFilter
Queryable.Contributor, Queryable.PrintInfo, Queryable.Util
BUILDING_STUB, myContentElementType, myManager, myOriginalFile
FLAGS_LOCKED, ICON_PLACEHOLDER
EMPTY_ARRAY
EMPTY_NAVIGATABLE_ELEMENT_ARRAY
EMPTY_NAVIGATION_ITEM_ARRAY
BATCH_REFERENCE_PROCESSING
Constructor and Description |
---|
PsiTypeCodeFragmentImpl(Project project,
boolean isPhysical,
java.lang.String name,
java.lang.CharSequence text,
int flags,
PsiElement context) |
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. |
accept, addImportsFromString, clone, forceResolveScope, getContext, getExceptionHandler, getFileType, getForcedResolveScope, getIntentionActionsFilter, getLanguage, getResolveScope, getSuperType, getThisType, getViewProvider, getVisibilityChecker, importClass, importsToString, isPhysical, processDeclarations, setExceptionHandler, setIntentionActionsFilter, setSuperType, setThisType, setVisibilityChecker, toString
acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, assertReadAccessAllowed, beforeAstChange, calcStubTree, calcTreeElement, canNavigate, canNavigateToSource, checkAdd, checkDelete, checkSetName, clearCaches, cloneImpl, copy, createContentLeafElement, createFileElement, delete, deleteChildRange, derefStub, findChildByClass, findChildrenByClass, findElementAt, findReferenceAt, getChildren, getContainingDirectory, getContainingFile, getContentElementType, getElementTypeForStubBuilder, getFileElementType, getFirstChild, getGreenStub, getGreenStubTree, getLastChild, getManager, getModificationStamp, getName, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOriginalFile, getParent, getPresentation, getPrevSibling, getProject, getPsiRoots, getReference, getReferences, getStartOffsetInParent, getStub, getStubbedSpine, getStubTree, getText, getTextLength, getTextOffset, getTextRange, getTreeElement, getUseScope, getVirtualFile, init, isContentsLoaded, isDirectory, isEquivalentTo, isTemplateDataFile, isValid, isWritable, markInvalidated, navigate, onContentReload, processChildren, putInfo, putInfo, replace, setContentElementType, setName, setOriginalFile, setTreeElementPointer, subtreeChanged, textContains, textMatches, textMatches, textToCharArray
buildRowIcon, computeBaseIcon, createLayeredIcon, getAdjustedBaseIcon, getBaseIcon, getElementIcon, getIcon, iconWithVisibilityIfNeeded, isNativeFileType, isVisibilitySupported, overlayIcons, registerIconLayer, transformFlags
changeUserMap, clearUserData, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
public PsiTypeCodeFragmentImpl(Project project, boolean isPhysical, java.lang.String name, java.lang.CharSequence text, int flags, PsiElement context)
public PsiType getType() throws PsiTypeCodeFragment.TypeSyntaxException, PsiTypeCodeFragment.NoTypeException
PsiTypeCodeFragment
getType
in interface PsiTypeCodeFragment
PsiTypeCodeFragment.TypeSyntaxException
- if the code fragment contains a syntax error.PsiTypeCodeFragment.NoTypeException
- if the contents of the code fragment is not a Java type.public boolean isVoidValid()
PsiTypeCodeFragment
void
is treated as a valid type for the contents of
the code fragment.isVoidValid
in interface PsiTypeCodeFragment
void
is a valid type, false otherwise.