public class UsageInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static UsageInfo[] |
EMPTY_ARRAY |
boolean |
isNonCodeUsage |
protected boolean |
myDynamicUsage |
Constructor and Description |
---|
UsageInfo(PsiElement element) |
UsageInfo(PsiElement element,
boolean isNonCodeUsage) |
UsageInfo(PsiElement element,
int startOffset,
int endOffset) |
UsageInfo(PsiElement originalElement,
int startOffset,
int endOffset,
boolean isNonCodeUsage) |
UsageInfo(PsiFile psiFile) |
UsageInfo(PsiQualifiedReferenceElement reference) |
UsageInfo(PsiReference reference) |
UsageInfo(SmartPsiElementPointer<?> smartPointer,
SmartPsiFileRange psiFileRange,
boolean dynamicUsage,
boolean nonCodeUsage) |
Modifier and Type | Method and Description |
---|---|
int |
compareToByStartOffset(UsageInfo info) |
UsageInfo |
copy() |
boolean |
equals(java.lang.Object o) |
PsiElement |
getElement() |
PsiFile |
getFile() |
int |
getNavigationOffset() |
Segment |
getNavigationRange() |
Project |
getProject() |
SmartPsiFileRange |
getPsiFileRange() |
ProperTextRange |
getRangeInElement() |
PsiReference |
getReference() |
Segment |
getSegment() |
SmartPsiElementPointer<?> |
getSmartPointer() |
java.lang.String |
getTooltipText()
Override this method if you want a tooltip to be displayed for this usage
|
VirtualFile |
getVirtualFile() |
int |
hashCode() |
boolean |
isDynamicUsage() |
protected boolean |
isFileOrBinary() |
boolean |
isNonCodeUsage() |
boolean |
isValid() |
boolean |
isWritable() |
void |
setDynamicUsage(boolean dynamicUsage) |
java.lang.String |
toString() |
public static final UsageInfo[] EMPTY_ARRAY
public final boolean isNonCodeUsage
protected boolean myDynamicUsage
public UsageInfo(PsiElement originalElement, int startOffset, int endOffset, boolean isNonCodeUsage)
public UsageInfo(SmartPsiElementPointer<?> smartPointer, SmartPsiFileRange psiFileRange, boolean dynamicUsage, boolean nonCodeUsage)
public UsageInfo(PsiFile psiFile)
public UsageInfo(PsiElement element, boolean isNonCodeUsage)
public UsageInfo(PsiElement element, int startOffset, int endOffset)
public UsageInfo(PsiReference reference)
public UsageInfo(PsiQualifiedReferenceElement reference)
public UsageInfo(PsiElement element)
public SmartPsiElementPointer<?> getSmartPointer()
public SmartPsiFileRange getPsiFileRange()
public boolean isNonCodeUsage()
public void setDynamicUsage(boolean dynamicUsage)
public PsiElement getElement()
public PsiReference getReference()
public ProperTextRange getRangeInElement()
public java.lang.String getTooltipText()
public int getNavigationOffset()
public Segment getNavigationRange()
public boolean isValid()
protected boolean isFileOrBinary()
public Segment getSegment()
public int compareToByStartOffset(UsageInfo info)
public Project getProject()
public final boolean isWritable()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public PsiFile getFile()
public VirtualFile getVirtualFile()
public boolean isDynamicUsage()
public UsageInfo copy()