public abstract class GenerationInfoBase extends java.lang.Object implements GenerationInfo
EMPTY_ARRAY
Constructor and Description |
---|
GenerationInfoBase() |
Modifier and Type | Method and Description |
---|---|
PsiElement |
findInsertionAnchor(PsiClass aClass,
PsiElement leaf) |
abstract PsiMember |
getPsiMember() |
abstract void |
insert(PsiClass aClass,
PsiElement anchor,
boolean before) |
void |
positionCaret(Editor editor,
boolean toEditMethodBody)
Position caret in generated element in correct way
|
public abstract void insert(PsiClass aClass, PsiElement anchor, boolean before) throws IncorrectOperationException
insert
in interface GenerationInfo
IncorrectOperationException
public abstract PsiMember getPsiMember()
getPsiMember
in interface GenerationInfo
public PsiElement findInsertionAnchor(PsiClass aClass, PsiElement leaf)
findInsertionAnchor
in interface GenerationInfo
leaf
- leaf element. Is guaranteed to be a tree descendant of aClass.GenerationInfo.insert(PsiClass, PsiElement, boolean)
method later.public void positionCaret(Editor editor, boolean toEditMethodBody)
GenerationInfo
positionCaret
in interface GenerationInfo