Package jetbrains.mps.text
Class BasicTextAreaFactory
- java.lang.Object
 - 
- jetbrains.mps.text.BasicTextAreaFactory
 
 
- 
- All Implemented Interfaces:
 TextAreaFactory
public final class BasicTextAreaFactory extends Object implements TextAreaFactory
Standard supplier ofTextArea, suitable for most uses.- Since:
 - 3.3
 
 
- 
- 
Constructor Summary
Constructors Constructor Description BasicTextAreaFactory()BasicTextAreaFactory(String lineSeparator, int defaultBufferSize, char indentChar, int indentSize) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextAreacreate()StringgetLineSeparator()CharSequencevalue(TextArea area) 
 - 
 
- 
- 
Method Detail
- 
create
@NotNull public TextArea create()
- Specified by:
 createin interfaceTextAreaFactory- Returns:
 - new instance of 
TextArea. 
 
- 
getLineSeparator
@NotNull public String getLineSeparator()
Description copied from interface:TextAreaFactoryAlthough this might be attribute ofTextAreaitself, I'd like to keepTextAreainterface focused on append/indent operations only.- Specified by:
 getLineSeparatorin interfaceTextAreaFactory- Returns:
 - line separator 
TextAreainstances coming from this factory use. 
 
- 
value
@NotNull public CharSequence value(@NotNull TextArea area)
- Specified by:
 valuein interfaceTextAreaFactory- Parameters:
 area- instance earlier obtained fromTextAreaFactory.create().- Returns:
 - present textual content of the text chunk.
 
 
 - 
 
 -