public abstract class PsiFragment
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PsiAnchor[] |
myElementAnchors |
Constructor and Description |
---|
PsiFragment(java.util.List<? extends PsiElement> elements) |
PsiFragment(java.util.List<? extends PsiElement> elements,
int from,
int to) |
PsiFragment(PsiElement element) |
PsiFragment(PsiElement element,
int cost) |
Modifier and Type | Method and Description |
---|---|
protected Language |
calcLanguage(PsiElement element) |
boolean |
contains(PsiFragment f) |
boolean |
containsMultipleFragments() |
protected PsiAnchor |
createAnchor(PsiElement element) |
boolean |
equals(java.lang.Object o) |
int |
getCost() |
PsiElement[] |
getElements() |
int |
getEndOffset() |
PsiFile |
getFile() |
Language |
getLanguage() |
int[][] |
getOffsets() |
int |
getStartOffset() |
UsageInfo |
getUsageInfo() |
int |
hashCode() |
boolean |
intersectsWith(PsiFragment f) |
abstract boolean |
isEqual(PsiElement[] elements,
int discardCost) |
boolean |
isNested() |
void |
markDuplicate() |
void |
setCost(int c) |
void |
setParent(PsiFragment f) |
java.lang.String |
toString() |
protected final PsiAnchor[] myElementAnchors
public PsiFragment(PsiElement element)
public PsiFragment(PsiElement element, int cost)
public PsiFragment(java.util.List<? extends PsiElement> elements)
public PsiFragment(java.util.List<? extends PsiElement> elements, int from, int to)
protected Language calcLanguage(PsiElement element)
protected PsiAnchor createAnchor(PsiElement element)
public void setCost(int c)
public void markDuplicate()
public boolean isNested()
public void setParent(PsiFragment f)
public PsiElement[] getElements()
public PsiFile getFile()
public int getStartOffset()
public int getEndOffset()
public boolean intersectsWith(PsiFragment f)
public boolean contains(PsiFragment f)
public abstract boolean isEqual(PsiElement[] elements, int discardCost)
public UsageInfo getUsageInfo()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int getCost()
public int[][] getOffsets()
public boolean containsMultipleFragments()
public Language getLanguage()