public interface PsiTypeElement extends PsiElement, PsiAnnotationOwner
Iconable.IconFlags, Iconable.LastComputedIcon| Modifier and Type | Field and Description |
|---|---|
static ArrayFactory<PsiTypeElement> |
ARRAY_FACTORY |
static PsiTypeElement[] |
EMPTY_ARRAY
The empty array of PSI directories which can be reused to avoid unnecessary allocations.
|
ICON_FLAG_IGNORE_MASK, ICON_FLAG_OPEN, ICON_FLAG_READ_STATUS, ICON_FLAG_VISIBILITY| Modifier and Type | Method and Description |
|---|---|
PsiJavaCodeReferenceElement |
getInnermostComponentReferenceElement()
Returns the reference element pointing to the referenced type, or if the type element
is an array, the reference element for the innermost component type of the array.
|
PsiType |
getType()
Returns the type referenced by the type element.
|
default boolean |
isInferredType()
Returns
true when a variable is declared as var name;
The actual type should be inferred according to the JEP 286: Local-Variable Type Inference
(http://openjdk.java.net/jeps/286). |
accept, acceptChildren, add, addAfter, addBefore, addRange, addRangeAfter, addRangeBefore, checkAdd, checkDelete, copy, delete, deleteChildRange, findElementAt, findReferenceAt, getChildren, getContainingFile, getContext, getCopyableUserData, getFirstChild, getLanguage, getLastChild, getManager, getNavigationElement, getNextSibling, getNode, getOriginalElement, getOwnReferences, getParent, getPrevSibling, getProject, getReference, getReferences, getResolveScope, getStartOffsetInParent, getText, getTextLength, getTextOffset, getTextRange, getTextRangeInParent, getUseScope, isEquivalentTo, isPhysical, isValid, isWritable, processDeclarations, putCopyableUserData, replace, textContains, textMatches, textMatches, textToCharArray, toStringgetUserData, putUserDataaddAnnotation, findAnnotation, getAnnotations, getApplicableAnnotations, hasAnnotationstatic final PsiTypeElement[] EMPTY_ARRAY
static final ArrayFactory<PsiTypeElement> ARRAY_FACTORY
PsiType getType()
Note: when a containing element (field, method etc.) has C-style array declarations, the result of this method may differ from an actual type.
PsiField.getType(),
PsiMethod.getReturnType(),
PsiParameter.getType(),
PsiVariable.getType()PsiJavaCodeReferenceElement getInnermostComponentReferenceElement()
default boolean isInferredType()
true when a variable is declared as var name;
The actual type should be inferred according to the JEP 286: Local-Variable Type Inference
(http://openjdk.java.net/jeps/286).
Applicable to local variables with initializers, foreach parameters, try-with-resources variables