public class FoldingPolicy
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getSignature(PsiElement element) |
static PsiElement |
restoreBySignature(PsiFile file,
java.lang.String signature) |
static PsiElement |
restoreBySignature(PsiFile file,
java.lang.String signature,
java.lang.StringBuilder processingInfoStorage)
Tries to restore target PSI element from the given file by the given signature.
|
public static java.lang.String getSignature(PsiElement element)
public static PsiElement restoreBySignature(PsiFile file, java.lang.String signature)
public static PsiElement restoreBySignature(PsiFile file, java.lang.String signature, java.lang.StringBuilder processingInfoStorage)
file
- target PSI filesignature
- target element's signatureprocessingInfoStorage
- buffer used for tracing 'restore element' processing (if necessary)null
otherwise