public abstract class AbstractElementSignatureProvider extends java.lang.Object implements ElementSignatureProvider
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ELEMENT_TOKENS_SEPARATOR |
protected static java.lang.String |
ELEMENTS_SEPARATOR |
EP_NAME
Constructor and Description |
---|
AbstractElementSignatureProvider() |
Modifier and Type | Method and Description |
---|---|
protected static java.lang.String |
escape(java.lang.String name) |
protected static <T extends PsiNamedElement> |
getChildIndex(T element,
PsiElement parent,
java.lang.String name,
java.lang.Class<? extends T> hisClass) |
PsiElement |
restoreBySignature(PsiFile file,
java.lang.String signature,
java.lang.StringBuilder processingInfoStorage) |
protected abstract PsiElement |
restoreBySignatureTokens(PsiFile file,
PsiElement parent,
java.lang.String type,
java.util.StringTokenizer tokenizer,
java.lang.StringBuilder processingInfoStorage) |
protected static <T extends PsiNamedElement> |
restoreElementInternal(PsiElement parent,
java.lang.String name,
int index,
java.lang.Class<T> hisClass) |
protected static java.lang.String |
unescape(java.lang.String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSignature
protected static final java.lang.String ELEMENTS_SEPARATOR
protected static final java.lang.String ELEMENT_TOKENS_SEPARATOR
public PsiElement restoreBySignature(PsiFile file, java.lang.String signature, java.lang.StringBuilder processingInfoStorage)
restoreBySignature
in interface ElementSignatureProvider
protected abstract PsiElement restoreBySignatureTokens(PsiFile file, PsiElement parent, java.lang.String type, java.util.StringTokenizer tokenizer, java.lang.StringBuilder processingInfoStorage)
protected static <T extends PsiNamedElement> int getChildIndex(T element, PsiElement parent, java.lang.String name, java.lang.Class<? extends T> hisClass)
parent
has too many children and calculating child index would be too slowprotected static <T extends PsiNamedElement> T restoreElementInternal(PsiElement parent, java.lang.String name, int index, java.lang.Class<T> hisClass)
protected static java.lang.String escape(java.lang.String name)
protected static java.lang.String unescape(java.lang.String name)