public class PsiExpressionCodeFragmentImpl extends PsiCodeFragmentImpl implements PsiExpressionCodeFragment
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 |
---|
PsiExpressionCodeFragmentImpl(Project project,
boolean isPhysical,
java.lang.String name,
java.lang.CharSequence text,
PsiType expectedType,
PsiElement context) |
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).
|
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 PsiExpressionCodeFragmentImpl(Project project, boolean isPhysical, java.lang.String name, java.lang.CharSequence text, PsiType expectedType, PsiElement context)
public PsiExpression getExpression()
PsiExpressionCodeFragment
getExpression
in interface PsiExpressionCodeFragment
public PsiType getExpectedType()
PsiExpressionCodeFragment
getExpectedType
in interface PsiExpressionCodeFragment
public void setExpectedType(PsiType type)
PsiExpressionCodeFragment
setExpectedType
in interface PsiExpressionCodeFragment
type
- the expected type of the expression.