public static class AlignmentStrategy.AlignmentPerTypeStrategy extends AlignmentStrategy
AlignmentStrategy.AlignmentPerTypeStrategy
Modifier and Type | Method and Description |
---|---|
Alignment |
getAlignment(IElementType parentType,
IElementType childType)
Requests current strategy for alignment to use for the child of the given type assuming that parent node has the given type.
|
void |
renewAlignment(IElementType elementType) |
createAlignmentPerTypeStrategy, createAlignmentPerTypeStrategy, createAlignmentPerTypeStrategy, getAlignment, getNullStrategy, wrap, wrap
public Alignment getAlignment(IElementType parentType, IElementType childType)
AlignmentStrategy
getAlignment
in class AlignmentStrategy
parentType
- parent type to use for filtering (if not null
)childType
- child type to use for filtering (if not null
)public void renewAlignment(IElementType elementType)