public abstract class JavaStubElementType<StubT extends StubElement,PsiT extends PsiElement> extends ILightStubElementType<StubT,PsiT> implements ICompositeElementType
IElementType.PredicateARRAY_FACTORY, EMPTY_ARRAY, FIRST_TOKEN_INDEX, TRUE| Modifier | Constructor and Description |
|---|---|
protected |
JavaStubElementType(java.lang.String debugName) |
protected |
JavaStubElementType(java.lang.String debugName,
boolean leftBound) |
| Modifier and Type | Method and Description |
|---|---|
abstract PsiT |
createPsi(ASTNode node) |
StubT |
createStub(PsiT psi,
StubElement parentStub) |
java.lang.String |
getExternalId() |
protected StubPsiFactory |
getPsiFactory(StubT stub) |
boolean |
isCompiled(StubT stub) |
boolean |
isLeftBound()
Controls whitespace balancing behavior of PsiBuilder.
|
createStub, shouldCreateStubcheckNotInstantiatedTooLate, createPsi, shouldCreateStubenumerate, find, getIndex, getLanguage, hashCode, toString, unregisterElementTypes, unregisterElementTypesclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitcreateCompositeNodedeserialize, indexStub, serializeprotected JavaStubElementType(java.lang.String debugName)
protected JavaStubElementType(java.lang.String debugName,
boolean leftBound)
public java.lang.String getExternalId()
getExternalId in interface ObjectStubSerializer<StubT extends StubElement,StubElement>protected StubPsiFactory getPsiFactory(StubT stub)
public boolean isCompiled(StubT stub)
public final StubT createStub(PsiT psi, StubElement parentStub)
createStub in class IStubElementType<StubT extends StubElement,PsiT extends PsiElement>public boolean isLeftBound()
IElementTypeBy default, empty composite elements (containing no children) are bounded to the right (previous) neighbour, forming following tree:
[previous_element]
[whitespace]
[empty_element]
<empty>
[next_element]
Left-bound elements are bounded to the left (next) neighbour instead:
[previous_element]
[empty_element]
<empty>
[whitespace]
[next_element]
See com.intellij.lang.impl.PsiBuilderImpl.prepareLightTree() for details.
isLeftBound in class IElementType